Import line: | GObject = imports.gi.GObject; |
GIR File: | GObject-2.0.gir |
C documentation: | GClosure |
Struct : | Closure |
Properties | Defined By | |
---|---|---|
data : void*
read only
|
GObject.Closure | |
derivative_flag : guint32
read only
|
GObject.Closure | |
floating : guint32
read only
|
GObject.Closure | |
in_inotify : guint32
read only
|
GObject.Closure | |
in_marshal : guint32
|
GObject.Closure | |
is_invalid : guint32
|
GObject.Closure | |
marshal : [object Object]
read only
|
GObject.Closure | |
meta_marshal : guint32
read only
|
GObject.Closure | |
n_fnotifiers : guint32
read only
|
GObject.Closure | |
n_guards : guint32
read only
|
GObject.Closure | |
n_inotifiers : guint32
read only
|
GObject.Closure | |
notifiers : GObject.ClosureNotifyData
read only
|
GObject.Closure | |
ref_count : guint32
read only
|
GObject.Closure |
Method / Constructor | Defined By | |
---|---|---|
new GObject.Closure
()
Create a new GObject.Closure
Create a new GObject.Closure
|
||
Create a new GObject.Closure
Create a new GObject.Closure
|
||
Create a new GObject.Closure
Create a new GObject.Closure
|
||
invalidate
()
:
none
Sets a flag on the closure to indicate that its calling
environment has become invalid, and thus causes any future invocations of g_closure_invoke() on this closure to be ignored.
Sets a flag on the closure to indicate that its calling
environment has become invalid, and thus causes any future invocations of g_closure_invoke() on this closure to be ignored. Also, invalidation notifiers installed on the closure will be called at this point. Note that unless you are holding a reference to the closure yourself, the invalidation notifiers may unref the closure and cause it to be destroyed, so if you need to access the closure after calling g_closure_invalidate(), make sure that you've previously called g_closure_ref(). Note that g_closure_invalidate() will also be called when the reference count of a closure drops to zero (unless it has already been invalidated before).
|
GObject.Closure | |
invoke
(Value return_value, guint32 n_param_values, Array param_values, void* invocation_hint)
:
none
Invokes the closure, i.e.
Invokes the closure, i.e. executes the callback represented by the closure.
|
GObject.Closure | |
sink
()
:
none
Takes over the initial ownership of a closure.
Takes over the initial ownership of a closure. Each closure is
initially created in a means that the initial reference count is not owned by any caller. g_closure_sink() checks to see if the object is still floating, and if so, unsets the floating state and decreases the reference count. If the closure is not floating, g_closure_sink() does nothing. The reason for the existance of the floating state is to prevent cumbersome code sequences like: |[ closure = g_cclosure_new (cb_func, cb_data); g_source_set_closure (source, closure); g_closure_unref (closure); // XXX GObject doesn't really need this ]| Because g_source_set_closure() (and similar functions) take ownership of the initial reference count, if it is unowned, we instead can write: |[ g_source_set_closure (source, g_cclosure_new (cb_func, cb_data)); ]| Generally, this function is used together with g_closure_ref(). Ane example of storing a closure for later notification looks like: |[ static GClosure *notify_closure = NULL; void foo_notify_set_closure (GClosure *closure) { if (notify_closure) g_closure_unref (notify_closure); notify_closure = closure; if (notify_closure) { g_closure_ref (notify_closure); g_closure_sink (notify_closure); } } ]| Because g_closure_sink() may decrement the reference count of a closure (if it hasn't been called on closure yet) just like g_closure_unref(), g_closure_ref() should be called prior to this function.
|
GObject.Closure |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter.Alpha
Method |
Registers a global alpha function and returns its logical id
to be used by clutter_alpha_set_mode() or by ClutterAnimation. |
Clutter.Alpha
Method |
set_closure
(Closure closure)
:
none
Sets the GClosure used to compute the alpha value at each
frame of the ClutterTimeline bound to alpha. |
Clutter.BindingPool
Method |
install_closure
(String action_name, guint32 key_val, ModifierType modifiers, Closure closure)
:
none
A GClosure variant of clutter_binding_pool_install_action().
|
Clutter.BindingPool
Method |
A GClosure variant of clutter_binding_pool_override_action().
|
GObject
Method |
GObject.cclosure_marshal_BOOLEAN__BOXED_BOXED
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
|
GObject
Method |
GObject.cclosure_marshal_BOOLEAN__FLAGS
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
denotes a flags type. |
GObject
Method |
GObject.cclosure_marshal_STRING__OBJECT_POINTER
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__BOOLEAN
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__BOXED
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__CHAR
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__DOUBLE
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__ENUM
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__FLAGS
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__FLOAT
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__INT
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__LONG
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__OBJECT
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__PARAM
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__POINTER
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__STRING
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__UCHAR
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__UINT
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__UINT_POINTER
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__ULONG
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__VARIANT
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.cclosure_marshal_VOID__VOID
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
|
GObject
Method |
GObject.signal_connect_closure
(void* instance, String detailed_signal, Closure closure, gboolean after)
:
guint32
Connects a closure to a signal for a particular object.
|
GObject
Method |
GObject.signal_connect_closure_by_id
(void* instance, guint32 signal_id, guint32 detail, Closure closure, gboolean after)
:
guint32
Connects a closure to a signal for a particular object.
|
GObject
Method |
GObject.signal_handler_find
(void* instance, SignalMatchType mask, guint32 signal_id, guint32 detail, Closure closure, void* func, void* data)
:
guint32
Finds the first signal handler that matches certain selection criteria.
|
GObject
Method |
GObject.signal_handlers_block_matched
(void* instance, SignalMatchType mask, guint32 signal_id, guint32 detail, Closure closure, void* func, void* data)
:
guint32
Blocks all handlers on an instance that match a certain selection criteria.
|
GObject
Method |
GObject.signal_handlers_disconnect_matched
(void* instance, SignalMatchType mask, guint32 signal_id, guint32 detail, Closure closure, void* func, void* data)
:
guint32
Disconnects all handlers on an instance that match a certain
selection criteria. |
GObject
Method |
GObject.signal_handlers_unblock_matched
(void* instance, SignalMatchType mask, guint32 signal_id, guint32 detail, Closure closure, void* func, void* data)
:
guint32
Unblocks all handlers on an instance that match a certain selection
criteria. |
GObject
Method |
GObject.signal_override_class_closure
(guint32 signal_id, Number instance_type, Closure class_closure)
:
none
Overrides the class closure (i.e.
|
GObject
Method |
Creates a new closure which invokes the function found at the offset
identified by itype. |
GObject
Method |
Set the callback for a source as a GClosure.
|
GObject.InitiallyUnowned
Method |
GObject.InitiallyUnowned.bind_property_full
(void* source, String source_property, void* target, String target_property, BindingFlags flags, Closure transform_to, Closure transform_from)
:
GObject.Binding
Complete version of g_object_bind_property().
|
Gio
Method |
Gio.bus_own_name_on_connection
(DBusConnection connection, String name, BusNameOwnerFlags flags, Closure name_acquired_closure, Closure name_lost_closure)
:
guint32
Like g_bus_own_name() but takes a GDBusConnection instead of a
GBusType. |
Gio
Method |
Gio.bus_own_name
(BusType bus_type, String name, BusNameOwnerFlags flags, Closure bus_acquired_closure, Closure name_acquired_closure, Closure name_lost_closure)
:
guint32
Starts acquiring name on the bus specified by bus_type and calls
acquired respectively lost. |
Gio
Method |
Gio.bus_watch_name_on_connection
(DBusConnection connection, String name, BusNameWatcherFlags flags, Closure name_appeared_closure, Closure name_vanished_closure)
:
guint32
Like g_bus_watch_name() but takes a GDBusConnection instead of a
GBusType. |
Gio
Method |
Gio.bus_watch_name
(BusType bus_type, String name, BusNameWatcherFlags flags, Closure name_appeared_closure, Closure name_vanished_closure)
:
guint32
Starts watching name on the bus specified by bus_type and calls
known to have a owner respectively known to lose its owner. |
Gtk.AccelGroup
Method |
Finds the GtkAccelGroup to which closure is connected;
see gtk_accel_group_connect(). |
Gtk.AccelGroup
Method |
connect
(guint32 accel_key, ModifierType accel_mods, AccelFlags accel_flags, Closure closure)
:
none
Installs an accelerator in this group.
|
Gtk.AccelGroup
Method |
Installs an accelerator in this group, using an accelerator path to look
up the appropriate key and modifiers (see gtk_accel_map_add_entry()). |
Gtk.AccelGroup
Method |
Removes an accelerator previously installed through
gtk_accel_group_connect(). |
Gtk.AccelLabel
Property |
accel_closure : GObject.Closure
|
Gtk.AccelLabel
Method |
set_accel_closure
(Closure accel_closure)
:
none
Sets the closure to be monitored by this accelerator label.
|
Gtk.Action
Method |
get_accel_closure
()
:
GObject.Closure
Returns the accel closure for this action.
|
Nautilus
Method |
Nautilus.info_provider_update_complete_invoke
(Closure update_complete, InfoProvider provider, OperationHandle handle, OperationResult result)
:
none
|
Nautilus.InfoProvider
Method |
update_file_info
(FileInfo file, Closure update_complete, OperationHandle handle)
:
Nautilus.OperationResult
|