Enums¶
Details¶
- class Gly.LoaderError(value)¶
 Bases:
GObject.GEnumErrors that can appear while loading images.
New in version 1.0.
- classmethod quark()¶
 - Returns:
 The error domain
- Return type:
 
Error quark for [error`GlyLoaderError`]
- FAILED = 0¶
 Generic type for all other errors.
- UNKNOWN_IMAGE_FORMAT = 1¶
 Unknown image format.
- class Gly.MemoryFormat(value)¶
 Bases:
GObject.GEnumMemory format
New in version 1.0.
- classmethod has_alpha(memory_format)¶
 - Parameters:
 memory_format (
Gly.MemoryFormat) –- Returns:
 Returns
TRUEif the memory format has an alpha channel- Return type:
 
Whether a memory format has an alpha channel
New in version 1.0.
- classmethod is_premultiplied(memory_format)¶
 - Parameters:
 memory_format (
Gly.MemoryFormat) –- Returns:
 Returns
TRUEif color channels are premultiplied- Return type:
 
Whether a memory format as an alpha channel an the color values are premultiplied with the alpha value
New in version 1.0.
- B8G8R8A8_PREMULTIPLIED = 0¶
 8-bit RGRA premultiplied
- A8R8G8B8_PREMULTIPLIED = 1¶
 8-bit ARGB premultiplied
- R16G16B16A16_PREMULTIPLIED = 10¶
 16-bit RGBA premultiplied
- R16G16B16A16 = 11¶
 16-bit RGBA
- R16G16B16_FLOAT = 12¶
 16-bit float RGB
- R16G16B16A16_FLOAT = 13¶
 16-bit float RGBA
- R32G32B32_FLOAT = 14¶
 32-bit float RGB
- R32G32B32A32_FLOAT_PREMULTIPLIED = 15¶
 32-bit float RGBA premultiplied
- R32G32B32A32_FLOAT = 16¶
 16-bit float RGBA
- G8A8_PREMULTIPLIED = 17¶
 8-bit gray with alpha premultiplied
- G8A8 = 18¶
 8-bit gray with alpha
- G8 = 19¶
 8-bit gray
- R8G8B8A8_PREMULTIPLIED = 2¶
 8-bit RGBA premultiplied
- G16A16_PREMULTIPLIED = 20¶
 16-bit gray with alpha premultiplied
- G16A16 = 21¶
 16-bit gray with alpha
- G16 = 22¶
 16-bit gray
- B8G8R8A8 = 3¶
 8-bit RGBA
- A8R8G8B8 = 4¶
 8-bit AGBR
- R8G8B8A8 = 5¶
 8-bit RGBA
- A8B8G8R8 = 6¶
 8-bit ABGR
- R8G8B8 = 7¶
 8-bit RGB
- B8G8R8 = 8¶
 8-bit BGR
- R16G16B16 = 9¶
 16-bit RGB
- class Gly.SandboxSelector(value)¶
 Bases:
GObject.GEnumSandbox mechanisms
::: warning Using
Gly.SandboxSelector.NOT_SANDBOXEDwill disable an important security layer that sandboxes loaders. It is only intended for testing and development purposes.New in version 1.0.
- AUTO = 0¶
 This mode selects
bwrapoutside of Flatpaks and usuallyflatpak-spawninside of Flatpaks. The sandbox is disabled automatically inside of Flatpak development environments. Inside of Flatpaks,flatpak-spawnis used to create the sandbox. This mechanism starts an installed Flatpak with the same app id. For development, Flatpak are usually not installed and the sandbox can therefore not be used. If the sandbox has been started viaflatpak-builder --run(i.e. without installed Flatpak) and the app id ends with.Devel, the sandbox is disabled.
- BWRAP = 1¶
 bwrap
- FLATPAK_SPAWN = 2¶
 flatpak-spawn
- NOT_SANDBOXED = 3¶
 Disable sandbox. Unsafe, only use for testing and development.