Constants

Details

Gimp.API_VERSION = '3.0'

New in version 2.2.

Gimp.CHECK_DARK = 0.4

The dark gray value for the default checkerboard pattern.

Gimp.CHECK_LIGHT = 0.6

The dark light value for the default checkerboard pattern.

Gimp.CHECK_SIZE = 8

The default checkerboard size in pixels. This is configurable in the core but GIMP plug-ins can’t access the user preference and should use this constant instead.

Gimp.CHECK_SIZE_SM = 4

The default small checkerboard size in pixels.

Gimp.CONFIG_PARAM_AGGREGATE = 2

The object property is to be treated as part of the parent object.

Gimp.CONFIG_PARAM_CONFIRM = 8

Changes to this property should be confirmed by the user before being applied.

Gimp.CONFIG_PARAM_DEFAULTS = 16

Don’t serialize this property if it has the default value.

Gimp.CONFIG_PARAM_DONT_COMPARE = 64

Ignore this property when comparing objects.

Gimp.CONFIG_PARAM_FLAGS = 7

The default flags that should be used for serializable Gimp.Config properties.

Gimp.CONFIG_PARAM_FLAG_SHIFT = 7

Minimum shift count to be used for core application defined [flags`GObject`.ParamFlags].

Gimp.CONFIG_PARAM_IGNORE = 32

This property exists for obscure reasons or is needed for backward compatibility. Ignore the value read and don’t serialize it.

Gimp.CONFIG_PARAM_RESTART = 4

Changes to this property take effect only after a restart.

Gimp.CONFIG_PARAM_SERIALIZE = 1

A property that can and should be serialized and deserialized.

Gimp.MAJOR_VERSION = 3

The major GIMP version number.

Gimp.MAX_IMAGE_SIZE = 524288

The maximum width and height of a GIMP image in pixels. This is a somewhat arbitrary value that can be used when an upper value for pixel sizes is needed; for example to give a spin button an upper limit.

Gimp.MAX_MEMSIZE = 0

A large but arbitrary value that can be used when an upper limit for a memory size (in bytes) is needed. It is smaller than GObject.G_MAXDOUBLE since the #GimpMemsizeEntry doesn’t handle larger values.

Gimp.MAX_RESOLUTION = 1048576.0

The maximum resolution of a GIMP image in pixels per inch. This is a somewhat arbitrary value that can be used to when an upper value for a resolution is needed. GIMP will not accept resolutions larger than this value.

Gimp.MICRO_VERSION = 2

The micro GIMP version number.

Gimp.MINOR_VERSION = 0

The minor GIMP version number.

Gimp.MIN_IMAGE_SIZE = 1

The minimum width and height of a GIMP image in pixels.

Gimp.MIN_RESOLUTION = 0.005

The minimum resolution of a GIMP image in pixels per inch. This is a somewhat arbitrary value that can be used when a lower value for a resolution is needed. GIMP will not accept resolutions smaller than this value.

Gimp.MODULE_ABI_VERSION = 5

The version of the module system’s ABI. Modules put this value into Gimp.ModuleInfo's abi_version field so the code loading the modules can check if it was compiled against the same module ABI the modules are compiled against.

Gimp.MODULE_ABI_VERSION is incremented each time one of the following changes:

  • the libgimpmodule implementation (if the change affects modules).

  • one of the classes implemented by modules (currently #GimpColorDisplay, #GimpColorSelector and #GimpController).

Gimp.PARAM_DONT_SERIALIZE = 2

This property will be ignored when serializing and deserializing. This is useful for Gimp.Procedure arguments for which you never want the last run values to be restored.

New in version 3.0.

Gimp.PARAM_FLAG_SHIFT = 2

Minimum shift count to be used for libgimpconfig defined [flags`GObject`.ParamFlags] (see libgimpconfig/gimpconfig-params.h).

Gimp.PARAM_NO_VALIDATE = 1

New in version 3.0.

Gimp.PARAM_READABLE = 1

New in version 2.4.

Gimp.PARAM_READWRITE = 3

New in version 2.4.

Gimp.PARAM_STATIC_STRINGS = 224

New in version 2.4.

Gimp.PARAM_WRITABLE = 2

New in version 2.4.

Gimp.PARASITE_ATTACH_GRANDPARENT = 8388608
Gimp.PARASITE_ATTACH_PARENT = 32768
Gimp.PARASITE_GRANDPARENT_PERSISTENT = 0
Gimp.PARASITE_GRANDPARENT_UNDOABLE = 0
Gimp.PARASITE_PARENT_PERSISTENT = 0
Gimp.PARASITE_PARENT_UNDOABLE = 0
Gimp.PARASITE_PERSISTENT = 1
Gimp.PARASITE_UNDOABLE = 2
Gimp.PIXPIPE_MAXDIM = 4
Gimp.VERSION = '3.0.2'

The GIMP version as a string.