Back to Seed Clases

GObject


Classes

Interfaces

Structs

Unions

Enums

Struct GObject.Value

Import line: GObject = imports.gi.GObject;
GIR File: GObject-2.0.gir
C documentation: GValue
Struct : Value
An opaque structure used to hold different types of values.
to functions within a GTypeValueTable structure, or implementations of
the g_value_*() API. That is, code portions which implement new fundamental
types.
GValue users can not make any assumptions about how data is stored
within the 2 element data union, and the g_type member should
only be accessed through the G_VALUE_TYPE() macro.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new GObject.Value ()
Create a new GObject.Value
Create a new GObject.Value
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Atk.Value
Method
get_current_value (Value value) : none
Gets the value of this object.
Atk.Value
Method
get_maximum_value (Value value) : none
Gets the maximum value of this object.
Atk.Value
Method
get_minimum_increment (Value value) : none
Gets the minimum increment by which the value of this object may be changed.
Atk.Value
Method
get_minimum_value (Value value) : none
Gets the minimum value of this object.
Atk.Value
Method
set_current_value (Value value) : gboolean
Sets the value of this object.
Clutter
Method
Clutter.value_get_color (Value value) : Clutter.Color
Gets the ClutterColor contained in value.
Clutter
Method
Clutter.value_get_fixed (Value value) : gint32
Gets the fixed point value stored inside value.
Clutter
Method
Clutter.value_get_shader_float (Value value, guint32 length) : gfloat
Retrieves the list of floating point values stored inside
the passed GValue.
Clutter
Method
Clutter.value_get_shader_int (Value value, guint32 length) : gint32
Retrieves the list of integer values stored inside the passed
GValue.
Clutter
Method
Clutter.value_get_shader_matrix (Value value, Object out_values) : Array
Retrieves a matrix of floating point values stored inside
the passed GValue.
Clutter
Method
Clutter.value_get_units (Value value) : Clutter.Units
Gets the ClutterUnits contained in value.
Clutter
Method
Clutter.value_set_color (Value value, Color color) : none
Sets value to color.
Clutter
Method
Clutter.value_set_fixed (Value value, gint32 fixed_) : none
Sets value to fixed_.
Clutter
Method
Clutter.value_set_shader_float (Value value, gint32 size, gfloat floats) : none
Sets floats as the contents of value.
Clutter
Method
Clutter.value_set_shader_int (Value value, gint32 size, gint32 ints) : none
Sets ints as the contents of value.
Clutter
Method
Clutter.value_set_shader_matrix (Value value, gint32 size, gfloat matrix) : none
Sets matrix as the contents of value.
Clutter
Method
Clutter.value_set_units (Value value, Units units) : none
Sets value to units
Clutter.Actor
Method
set_shader_param (String param, Value value) : none
Sets the value for a named parameter of the shader applied
to actor.
Clutter.Animatable
Method
animate_property (Animation animation, String property_name, Value initial_value, Value final_value, gdouble progress, Value value) : gboolean
Calls the animate_property() virtual function for animatable.
Clutter.Animatable
Method
get_initial_state (String property_name, Value value) : none
Retrieves the current state of property_name and sets value with it
Clutter.Animatable
Method
set_final_state (String property_name, Value value) : none
Sets the current state of property_name to value
Clutter.Animation
Method
bind (String property_name, Value final) : Clutter.Animation
Adds a single property with name property_name to the
animation animation.
Clutter.Animation
Method
update (String property_name, Value final) : Clutter.Animation
Updates the final value of the interval for property_name
Clutter.Animator
Method
compute_value (Object object, String property_name, gdouble progress, Value value) : gboolean
Compute the value for a managed property at a given progress.
Clutter.Animator
Method
set_key (Object object, String property_name, guint32 mode, gdouble progress, Value value) : Clutter.Animator
Sets a single key in the ClutterAnimator for the property_name of
Clutter.AnimatorKey
Method
get_value (Value value) : gboolean
Retrieves a copy of the value for a ClutterAnimatorKey.
Clutter.Container
Method
child_get_property (Actor child, String property, Value value) : none
Gets a container specific property of a child of container, In general,
a copy is made of the property contents and the caller is responsible for
freeing the memory by calling g_value_unset().
Clutter.Container
Method
child_set_property (Actor child, String property, Value value) : none
Sets a container-specific property on a child of container.
Clutter.Interval
Method
new Clutter.Interval.with_values (Number gtype, Value initial, Value final) : Clutter.Interval
Create a new Clutter.Interval
Clutter.Interval
Method
compute (gdouble factor) : GObject.Value
Computes the value between the interval boundaries given the
progress factor
Unlike clutter_interval_compute_value(), this function will
return a const pointer to the computed value
You should use this function if you immediately pass the computed
value to another function that makes a copy of it, like
g_object_set_property()
or NULL if the computation was not successfull
Clutter.Interval
Method
get_final_value () : GObject.Value
Retrieves the final value of interval and copies
it into value.
Clutter.Interval
Method
get_initial_value () : GObject.Value
Retrieves the initial value of interval and copies
it into value.
Clutter.Interval
Method
peek_final_value () : GObject.Value
Gets the pointer to the final value of interval
The value is owned by the ClutterInterval and it should not be
modified or freed
Clutter.Interval
Method
peek_initial_value () : GObject.Value
Gets the pointer to the initial value of interval
The value is owned by the ClutterInterval and it should not be
modified or freed
Clutter.Interval
Method
set_final_value (Value value) : none
Sets the final value of interval to value.
Clutter.Interval
Method
set_initial_value (Value value) : none
Sets the initial value of interval to value.
Clutter.LayoutManager
Method
child_get_property (Container container, Actor actor, String property_name, Value value) : none
Gets a property on the ClutterLayoutMeta created by manager and
attached to a child of container
The GValue must already be initialized to the type of the property
and has to be unset with g_value_unset() after extracting the real
value out of it
Clutter.LayoutManager
Method
child_set_property (Container container, Actor actor, String property_name, Value value) : none
Sets a property on the ClutterLayoutMeta created by manager and
attached to a child of container
Clutter.Model
Method
insert_value (guint32 row, guint32 column, Value value) : none
Sets the data in the cell specified by iter and column.
Clutter.ModelIter
Method
get_value (guint32 column) : GObject.Value
Sets an initializes value to that at column.
Clutter.ModelIter
Method
set_value (guint32 column, Value value) : none
Sets the data in the cell specified by iter and column.
Clutter.Scriptable
Method
parse_custom_node (Script script, Value value, String name, Node node) : gboolean
Parses the passed JSON node.
Clutter.Scriptable
Method
set_custom_property (Script script, String name, Value value) : none
Overrides the common properties setting.
Clutter.Shader
Method
set_uniform (String name, Value value) : none
Sets a user configurable variable in the GLSL shader programs attached to
a ClutterShader.
Clutter.ShaderEffect
Method
set_uniform_value (String name, Value value) : none
Sets value as the payload for the uniform name inside the shader
effect
integer value; G_TYPE_FLOAT, for a single floating point value;
CLUTTER_TYPE_SHADER_INT, for an array of integer values;
CLUTTER_TYPE_SHADER_FLOAT, for an array of floating point values;
and CLUTTER_TYPE_SHADER_MATRIX, for a matrix of floating point
values
Clutter.State
Method
set_key (String source_state_name, String target_state_name, Object object, String property_name, guint32 mode, Value value, gdouble pre_delay, gdouble post_delay) : Clutter.State
Sets one specific end key for a state_name, object, property_name
combination.
Clutter.StateKey
Method
get_value (Value value) : gboolean
Copies of the value for a ClutterStateKey into value
The GValue needs to be already initialized for the value type
of the property or to a transformable type
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
gboolean (*callback) (gpointer instance, gint arg1, gpointer user_data) where the gint parameter
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
gchar* (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data).
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
void (*callback) (gpointer instance, gboolean arg1, gpointer user_data).
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
void (*callback) (gpointer instance, GBoxed *arg1, gpointer user_data).
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
void (*callback) (gpointer instance, gchar arg1, gpointer user_data).
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
void (*callback) (gpointer instance, gdouble arg1, gpointer user_data).
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
void (*callback) (gpointer instance, gint arg1, gpointer user_data) where the gint parameter denotes an enumeration 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
void (*callback) (gpointer instance, gint arg1, gpointer user_data) where the gint parameter denotes a flags 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
void (*callback) (gpointer instance, gfloat arg1, gpointer user_data).
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
void (*callback) (gpointer instance, gint arg1, gpointer user_data).
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
void (*callback) (gpointer instance, glong arg1, gpointer user_data).
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
void (*callback) (gpointer instance, GObject *arg1, gpointer user_data).
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
void (*callback) (gpointer instance, GParamSpec *arg1, gpointer user_data).
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
void (*callback) (gpointer instance, gpointer arg1, gpointer user_data).
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
void (*callback) (gpointer instance, const gchar *arg1, gpointer user_data).
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
void (*callback) (gpointer instance, guchar arg1, gpointer user_data).
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
void (*callback) (gpointer instance, guint arg1, gpointer user_data).
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
void (*callback) (gpointer instance, guint arg1, gpointer arg2, gpointer user_data).
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
void (*callback) (gpointer instance, gulong arg1, gpointer user_data).
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
void (*callback) (gpointer instance, GVariant *arg1, gpointer user_data).
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
void (*callback) (gpointer instance, gpointer user_data).
GObject
Method
GObject.param_value_convert (ParamSpec pspec, Value src_value, Value dest_value, gboolean strict_validation) : gboolean
Transforms src_value into dest_value if possible, and then
validates dest_value, in order for it to conform to pspec.
GObject
Method
GObject.param_value_defaults (ParamSpec pspec, Value value) : gboolean
Checks whether value contains the default value as specified in pspec.
GObject
Method
GObject.param_value_set_default (ParamSpec pspec, Value value) : none
Sets value to its default value as specified in pspec.
GObject
Method
GObject.param_value_validate (ParamSpec pspec, Value value) : gboolean
Ensures that the contents of value comply with the specifications
set out by pspec.
GObject
Method
GObject.param_values_cmp (ParamSpec pspec, Value value1, Value value2) : gint32
Compares value1 with value2 according to pspec, and return -1, 0 or +1,
if value1 is found to be less than, equal to or greater than value2,
respectively.
GObject
Method
GObject.signal_accumulator_first_wins (SignalInvocationHint ihint, Value return_accu, Value handler_return, void* dummy) : gboolean
A predefined GSignalAccumulator for signals intended to be used as a
hook for application code to provide a particular value.
GObject
Method
GObject.signal_accumulator_true_handled (SignalInvocationHint ihint, Value return_accu, Value handler_return, void* dummy) : gboolean
A predefined GSignalAccumulator for signals that return a
boolean values.
GObject
Method
GObject.signal_chain_from_overridden (Value instance_and_params, Value return_value) : none
Calls the original class closure of a signal.
GObject
Method
GObject.signal_emitv (Value instance_and_params, guint32 signal_id, guint32 detail, Value return_value) : none
Emits a signal.
GObject
Method
GObject.strdup_value_contents (Value value) : String
Return a newly allocated string, which describes the contents of a
GValue.
GObject
Method
GObject.type_check_value (Value value) : gboolean
GObject
Method
GObject.type_check_value_holds (Value value, Number type) : gboolean
GObject.Closure
Method
invoke (Value return_value, guint32 n_param_values, Array param_values, void* invocation_hint) : none
Invokes the closure, i.e.
GObject.ValueArray
Method
append (Value value) : GObject.ValueArray
Insert a copy of value as last element of value_array.
GObject.ValueArray
Method
get_nth (guint32 index_) : GObject.Value
Return a pointer to the value at index_ containd in value_array.
GObject.ValueArray
Method
insert (guint32 index_, Value value) : GObject.ValueArray
Insert a copy of value at specified position into value_array.
GObject.ValueArray
Method
prepend (Value value) : GObject.ValueArray
Insert a copy of value as first element of value_array.
Gdk
Method
Gdk.setting_get (String name, Value value) : gboolean
Obtains a desktop-wide setting, such as the double-click time,
for the default screen.
Gdk.Screen
Method
get_setting (String name, Value value) : gboolean
Retrieves a desktop-wide setting such as double-click time
for the GdkScreen screen.
GnomeBluetooth.Chooser
Method
get_selected_device_info (String field, Value value) : gboolean
Gtk
Method
Gtk.rc_property_parse_border (ParamSpec pspec, String gstring, Value property_value) : gboolean
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses
borders in the form
"{ left, right, top, bottom }" for integers
left, right, top and bottom.
Gtk
Method
Gtk.rc_property_parse_color (ParamSpec pspec, String gstring, Value property_value) : gboolean
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses a
color given either by its name or in the form
{ red, green, blue } where red, green and
blue are integers between 0 and 65535 or floating-point numbers
between 0 and 1.
Gtk
Method
Gtk.rc_property_parse_enum (ParamSpec pspec, String gstring, Value property_value) : gboolean
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses a single
enumeration value.
Gtk
Method
Gtk.rc_property_parse_flags (ParamSpec pspec, String gstring, Value property_value) : gboolean
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses flags.
Gtk
Method
Gtk.rc_property_parse_requisition (ParamSpec pspec, String gstring, Value property_value) : gboolean
A GtkRcPropertyParser for use with gtk_settings_install_property_parser()
or gtk_widget_class_install_style_property_parser() which parses a
requisition in the form
"{ width, height }" for integers width and height.
Gtk.Buildable
Method
set_buildable_property (Builder builder, String name, Value value) : none
Sets the property name name to value on the buildable object.
Gtk.CellArea
Method
cell_get_property (CellRenderer renderer, String property_name, Value value) : none
Gets the value of a cell property for renderer in area.
Gtk.CellArea
Method
cell_set_property (CellRenderer renderer, String property_name, Value value) : none
Sets a cell property for renderer in area.
Gtk.Container
Method
child_get_property (Widget child, String property_name, Value value) : none
Gets the value of a child property for child and container.
Gtk.Container
Method
child_set_property (Widget child, String property_name, Value value) : none
Sets a child property for child and container.
Gtk.ListStore
Method
set_value (TreeIter iter, gint32 column, Value value) : none
Sets the data in the cell specified by iter and column.
Gtk.Style
Method
get_style_property (Number widget_type, String property_name, Value value) : none
Queries the value of a style property corresponding to a
widget class is in the given style.
Gtk.StyleContext
Method
get_property (String property, StateFlags state) : GObject.Value
Gets a style property from context for the given state.
Gtk.StyleContext
Method
get_style_property (String property_name, Value value) : none
Gets the value for a widget style property.
Gtk.StyleProperties
Method
set_property (String property, StateFlags state, Value value) : none
Sets a styling property in props.
Gtk.ThemingEngine
Method
get_property (String property, StateFlags state) : GObject.Value
Gets a property value as retrieved from the style settings that apply
to the currently rendered element.
Gtk.ThemingEngine
Method
get_style_property (String property_name, Value value) : none
Gets the value for a widget style property.
Gtk.TreeModel
Method
get_value (TreeIter iter, gint32 column) : GObject.Value
Initializes and sets value to that at column.
Gtk.TreeStore
Method
set_value (TreeIter iter, gint32 column, Value value) : none
Sets the data in the cell specified by iter and column.
Gtk.Widget
Method
style_get_property (String property_name, Value value) : none
Gets the value of a style property of widget.
Json.Node
Method
get_value () : GObject.Value
Json.Node
Method
set_value (Value value) : none
Json.Serializable
Method
default_deserialize_property (String property_name, Value value, ParamSpec pspec, Node property_node) : gboolean
Json.Serializable
Method
default_serialize_property (String property_name, Value value, ParamSpec pspec) : Json.Node
Json.Serializable
Method
serialize_property (String property_name, Value value, ParamSpec pspec) : Json.Node
Soup
Method
Soup.value_hash_insert_value (Object hash, String key, Value value) : none
Inserts value into hash.
Soup
Method
Soup.xmlrpc_build_method_call (String method_name, Value params, gint32 n_params) : String
This creates an XML-RPC methodCall and returns it as a string.
Soup
Method
Soup.xmlrpc_build_method_response (Value value) : String
This creates a (successful) XML-RPC methodResponse and returns it
as a string.
TelepathyGLib
Method
TelepathyGLib.dbus_properties_mixin_get (Object self, String interface_name, String property_name, Value value) : gboolean
TelepathyGLib
Method
TelepathyGLib.dbus_properties_mixin_getter_gobject_properties (Object object, guint32 iface, guint32 name, Value value, void* getter_data) : none
TelepathyGLib
Method
TelepathyGLib.dbus_properties_mixin_setter_gobject_properties (Object object, guint32 iface, guint32 name, Value value, void* setter_data) : gboolean
TelepathyGLib.Account
Property
storage_identifier : GObject.Value read only
TelepathyGLib.Account
Method
get_storage_identifier () : GObject.Value
TelepathyGLib.ConnectionManagerParam
Method
get_default (Value value) : gboolean
TelepathyGLib.Message
Method
set (guint32 part, String key, Value source) : none
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:10:47 GMT+0800 (HKT)