gi-gobject-2.0.31: GObject bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.GObject.Constants

Description

Synopsis

- pattern VALUE_NOCOPY_CONTENTS :: Int32
- pattern VALUE_INTERNED_STRING :: Int32
- pattern VALUE_COLLECT_FORMAT_MAX_LENGTH :: Int32
- pattern TYPE_RESERVED_USER_FIRST :: Int32
- pattern TYPE_RESERVED_GLIB_LAST :: Int32
- pattern TYPE_RESERVED_GLIB_FIRST :: Int32
- pattern TYPE_RESERVED_BSE_LAST :: Int32
- pattern TYPE_RESERVED_BSE_FIRST :: Int32
- pattern TYPE_FUNDAMENTAL_SHIFT :: Int32
- pattern TYPE_FUNDAMENTAL_MAX :: Int32
- pattern TYPE_FLAG_RESERVED_ID_BIT :: CSize
- pattern SIGNAL_MATCH_MASK :: Int32
- pattern SIGNAL_FLAGS_MASK :: Int32
- pattern PARAM_USER_SHIFT :: Int32
- pattern PARAM_STATIC_STRINGS :: Int32
- pattern PARAM_MASK :: Int32

# Documentation

pattern VALUE_NOCOPY_CONTENTS :: Int32 Source #

Flag to indicate that allocated data in a `Value` shouldn’t be copied.

If passed to `GObject.VALUE_COLLECT`, allocated data won’t be copied but used verbatim. This does not affect ref-counted types like objects.

This does not affect usage of `valueCopy`: the data will be copied if it is not ref-counted.

This flag should be checked by implementations of [callback`gObject`.TypeValueFreeFunc], [callback`gObject`.TypeValueCollectFunc] and [callback`gObject`.TypeValueLCopyFunc].

pattern VALUE_INTERNED_STRING :: Int32 Source #

Flag to indicate that a string in a `Value` is canonical and will exist for the duration of the process.

See `valueSetInternedString`.

This flag should be checked by implementations of [callback`gObject`.TypeValueFreeFunc], [callback`gObject`.TypeValueCollectFunc] and [callback`gObject`.TypeValueLCopyFunc].

Since: 2.66

pattern VALUE_COLLECT_FORMAT_MAX_LENGTH :: Int32 Source #

The maximal number of `GTypeCValues` which can be collected for a single `Value`.

pattern TYPE_RESERVED_USER_FIRST :: Int32 Source #

First available fundamental type number to create new fundamental type id with `G_TYPE_MAKE_FUNDAMENTAL()`.

pattern TYPE_RESERVED_GLIB_LAST :: Int32 Source #

Last fundamental type number reserved for GLib.

pattern TYPE_RESERVED_GLIB_FIRST :: Int32 Source #

First fundamental type number to create a new fundamental type id with `G_TYPE_MAKE_FUNDAMENTAL()` reserved for GLib.

pattern TYPE_RESERVED_BSE_LAST :: Int32 Source #

Last fundamental type number reserved for BSE.

pattern TYPE_RESERVED_BSE_FIRST :: Int32 Source #

First fundamental type number to create a new fundamental type id with `G_TYPE_MAKE_FUNDAMENTAL()` reserved for BSE.

pattern TYPE_FUNDAMENTAL_SHIFT :: Int32 Source #

Shift value used in converting numbers to type IDs.

pattern TYPE_FUNDAMENTAL_MAX :: Int32 Source #

An integer constant that represents the number of identifiers reserved for types that are assigned at compile-time.

pattern TYPE_FLAG_RESERVED_ID_BIT :: CSize Source #

A bit in the type number that's supposed to be left untouched.

pattern SIGNAL_MATCH_MASK :: Int32 Source #

A mask for all `SignalMatchType` bits.

pattern SIGNAL_FLAGS_MASK :: Int32 Source #

A mask for all `SignalFlags` bits.

pattern PARAM_USER_SHIFT :: Int32 Source #

Minimum shift count to be used for user defined flags, to be stored in `ParamSpec`.`flags`. The maximum allowed is 10.

pattern PARAM_STATIC_STRINGS :: Int32 Source #

`ParamFlags` value alias for `ParamFlagsStaticName` | `ParamFlagsStaticNick` | `ParamFlagsStaticBlurb`.

It is recommended to use this for all properties by default, as it allows for internal performance improvements in GObject.

It is very rare that a property would have a dynamically constructed name, nickname or blurb.

Since 2.13.0

pattern PARAM_MASK :: Int32 Source #

Mask containing the bits of `ParamSpec`.`flags` which are reserved for GLib.