Package ch.bailu.gtk.gobject
Klasse BindingGroup
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gobject.BindingGroup
- Alle implementierten Schnittstellen:
PointerInterface
`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].
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].
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Creates a binding between @source_property on the source object
and @target_property on @target.void
Creates a binding between @source_property on the source object
and @target_property on @target.void
bindFull
(Str source_property, Pointer target, Str target_property, int flags, BindingGroup.OnBindingTransformFunc transform_to, BindingGroup.OnBindingTransformFunc transform_from, Pointer user_data, BindingGroup.OnDestroyNotify user_data_destroy) 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.void
bindFull
(String source_property, Pointer target, String target_property, int flags, BindingGroup.OnBindingTransformFunc transform_to, BindingGroup.OnBindingTransformFunc transform_from, Pointer user_data, BindingGroup.OnDestroyNotify user_data_destroy) 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.void
bindWithClosures
(Str source_property, Pointer target, Str target_property, int flags, Closure transform_to, Closure 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.void
bindWithClosures
(String source_property, Pointer target, String target_property, int flags, Closure transform_to, Closure 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.Gets the source object used for binding properties.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
Sets @source as the source object used for creating property
bindings.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
BindingGroup
-
BindingGroup
public BindingGroup()Creates a new #GBindingGroup.
-
-
Methodendetails
-
getClassHandler
-
bind
public void bind(@Nonnull Str source_property, @Nonnull Pointer target, @Nonnull Str target_property, int 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.- Parameter:
source_property
- the property on the source to bindtarget
- the target #GObjecttarget_property
- the property on @target to bindflags
- the flags used to create the #GBinding
-
bind
public void bind(String source_property, @Nonnull Pointer target, String target_property, int 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.- Parameter:
source_property
- the property on the source to bindtarget
- the target #GObjecttarget_property
- the property on @target to bindflags
- the flags used to create the #GBinding
-
bindFull
public void bindFull(@Nonnull Str source_property, @Nonnull Pointer target, @Nonnull Str target_property, int flags, BindingGroup.OnBindingTransformFunc transform_to, BindingGroup.OnBindingTransformFunc transform_from, @Nullable Pointer user_data, BindingGroup.OnDestroyNotify user_data_destroy) 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.
See g_object_bind_property_full() for more information.- Parameter:
source_property
- the property on the source to bindtarget
- the target #GObjecttarget_property
- the property on @target to bindflags
- the flags used to create the #GBindingtransform_to
- the transformation function from the source object to the @target, or %NULL to use the defaulttransform_from
- the transformation function from the @target to the source object, or %NULL to use the defaultuser_data
- custom data to be passed to the transformation functions, or %NULLuser_data_destroy
- function to be called when disposing the binding, to free the resources used by the transformation functions
-
bindFull
public void bindFull(String source_property, @Nonnull Pointer target, String target_property, int flags, BindingGroup.OnBindingTransformFunc transform_to, BindingGroup.OnBindingTransformFunc transform_from, @Nullable Pointer user_data, BindingGroup.OnDestroyNotify user_data_destroy) 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.
See g_object_bind_property_full() for more information.- Parameter:
source_property
- the property on the source to bindtarget
- the target #GObjecttarget_property
- the property on @target to bindflags
- the flags used to create the #GBindingtransform_to
- the transformation function from the source object to the @target, or %NULL to use the defaulttransform_from
- the transformation function from the @target to the source object, or %NULL to use the defaultuser_data
- custom data to be passed to the transformation functions, or %NULLuser_data_destroy
- function to be called when disposing the binding, to free the resources used by the transformation functions
-
bindWithClosures
public void bindWithClosures(@Nonnull Str source_property, @Nonnull Pointer target, @Nonnull Str target_property, int flags, @Nullable Closure transform_to, @Nullable Closure 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.- Parameter:
source_property
- the property on the source to bindtarget
- the target #GObjecttarget_property
- the property on @target to bindflags
- the flags used to create the #GBindingtransform_to
- a #GClosure wrapping the transformation function from the source object to the @target, or %NULL to use the defaulttransform_from
- a #GClosure wrapping the transformation function from the @target to the source object, or %NULL to use the default
-
bindWithClosures
public void bindWithClosures(String source_property, @Nonnull Pointer target, String target_property, int flags, @Nullable Closure transform_to, @Nullable Closure 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.- Parameter:
source_property
- the property on the source to bindtarget
- the target #GObjecttarget_property
- the property on @target to bindflags
- the flags used to create the #GBindingtransform_to
- a #GClosure wrapping the transformation function from the source object to the @target, or %NULL to use the defaulttransform_from
- a #GClosure wrapping the transformation function from the @target to the source object, or %NULL to use the default
-
dupSource
Gets the source object used for binding properties.- Gibt zurück:
- a #GObject or %NULL.
-
setSource
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.- Parameter:
source
- the source #GObject, or %NULL to clear it
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-