Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: BindingGroup

[17:7] extends: object

GBindingGroup can be used to bind multiple properties from an object collectively. Use the various methods to bind properties from a single source object to multiple destination objects. Properties can be bound bidirectionally and are connected when the source object is set with [method@GObject.BindingGroup.set_source].

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • BindingGroup ()

    Creates a new #GBindingGroup.

  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setSource (object Value)

    The source object used for binding properties.

    • @p Value is the new property value.
    • @r None.
  • bind (string source_property, object target, string target_property, string flags)

    Creates a binding between @source_property on the source object and

    • @target_property on @target. Whenever the @source_property is changed the
    • @target_property is updated using the same value. The binding flag %G_BINDING_SYNC_CREATE is automatically specified. See g_object_bind_property() for more information.
    • @p source_property is the property on the source to bind.
    • @p target is the target #GObject.
    • @p target_property is the property on @target to bind.
    • @p flags is the flags used to create the #GBinding.
    • @r None.
  • bind_with_closures (string source_property, object target, string target_property, string flags, object transform_to, object transform_from)

    Creates a binding between @source_property on the source object and

    • @target_property on @target, allowing you to set the transformation functions to be used by the binding. The binding flag %G_BINDING_SYNC_CREATE is automatically specified. This function is the language bindings friendly version of g_binding_group_bind_property_full(), using #GClosures instead of function pointers. See g_object_bind_property_with_closures() for more information.
    • @p source_property is the property on the source to bind.
    • @p target is the target #GObject.
    • @p target_property is the property on @target to bind.
    • @p flags is the flags used to create the #GBinding.
    • @p transform_to is a #GClosure wrapping the transformation function from the source object to the @target, or %NULL to use the default.
    • @p transform_from is a #GClosure wrapping the transformation function from the @target to the source object, or %NULL to use the default.
    • @r None.
  • dup_source ()

    Gets the source object used for binding properties.

  • set_source (object source)

    Sets @source as the source object used for creating property bindings. If there is already a source object all bindings from it will be removed. Note that all properties that have been bound must exist on @source.

    • @p source is the source #GObject, or %NULL to clear it.
    • @r None.

class: BindingGroupMeta

[203:14] static extends: object

Generated metadata helpers for BindingGroup class surfaces.

Methods

  • properties ()

    Returns property metadata for BindingGroup.

    • @r A list.