Package ch.bailu.gtk.gobject
Class TypeValueTable
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gobject.TypeValueTable
- All Implemented Interfaces:
PointerInterface
The #GTypeValueTable provides the functions required by the #GValue
implementation, to serve as a container for values of a type.
implementation, to serve as a container for values of a type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA string format describing how to collect the contents of
this value bit-by-bit.static final Stringstatic final StringFormat description of the arguments to collect for @lcopy_value,
analogous to @collect_format.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerA string format describing how to collect the contents of
this value bit-by-bit.ch.bailu.gtk.gobject.JnaTypeValueTable.OnCollectValueFormat description of the arguments to collect for @lcopy_value,
analogous to @collect_format.ch.bailu.gtk.gobject.JnaTypeValueTable.OnLcopyValuech.bailu.gtk.gobject.JnaTypeValueTable.OnValueCopych.bailu.gtk.gobject.JnaTypeValueTable.OnValueFreech.bailu.gtk.gobject.JnaTypeValueTable.OnValueInitch.bailu.gtk.gobject.JnaTypeValueTable.OnValuePeekPointerstatic TypeValueTablepeek(long type) Returns the location of the #GTypeValueTable associated with @type.voidsetFieldCollectFormat(Str collect_format) A string format describing how to collect the contents of
this value bit-by-bit.voidsetFieldCollectValue(TypeValueTable.OnCollectValue collect_value) voidsetFieldLcopyFormat(Str lcopy_format) Format description of the arguments to collect for @lcopy_value,
analogous to @collect_format.voidsetFieldLcopyValue(TypeValueTable.OnLcopyValue lcopy_value) voidsetFieldValueCopy(TypeValueTable.OnValueCopy value_copy) voidsetFieldValueFree(TypeValueTable.OnValueFree value_free) voidsetFieldValueInit(TypeValueTable.OnValueInit value_init) voidsetFieldValuePeekPointer(TypeValueTable.OnValuePeekPointer value_peek_pointer) Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
VALUE_INIT
- See Also:
-
VALUE_FREE
- See Also:
-
VALUE_COPY
- See Also:
-
VALUE_PEEK_POINTER
- See Also:
-
COLLECT_FORMAT
A string format describing how to collect the contents of
this value bit-by-bit. Each character in the format represents
an argument to be collected, and the characters themselves indicate
the type of the argument. Currently supported arguments are:
- 'i' - Integers. passed as collect_values[].v_int.
- 'l' - Longs. passed as collect_values[].v_long.
- 'd' - Doubles. passed as collect_values[].v_double.
- 'p' - Pointers. passed as collect_values[].v_pointer.
It should be noted that for variable argument list construction,
ANSI C promotes every type smaller than an integer to an int, and
floats to doubles. So for collection of short int or char, 'i'
needs to be used, and for collection of floats 'd'.- See Also:
-
COLLECT_VALUE
- See Also:
-
LCOPY_FORMAT
Format description of the arguments to collect for @lcopy_value,
analogous to @collect_format. Usually, @lcopy_format string consists
only of 'p's to provide lcopy_value() with pointers to storage locations.- See Also:
-
LCOPY_VALUE
- See Also:
-
-
Constructor Details
-
TypeValueTable
-
TypeValueTable
public TypeValueTable()
-
-
Method Details
-
getClassHandler
-
setFieldValueInit
-
getFieldValueInit
public ch.bailu.gtk.gobject.JnaTypeValueTable.OnValueInit getFieldValueInit() -
setFieldValueFree
-
getFieldValueFree
public ch.bailu.gtk.gobject.JnaTypeValueTable.OnValueFree getFieldValueFree() -
setFieldValueCopy
-
getFieldValueCopy
public ch.bailu.gtk.gobject.JnaTypeValueTable.OnValueCopy getFieldValueCopy() -
setFieldValuePeekPointer
-
getFieldValuePeekPointer
public ch.bailu.gtk.gobject.JnaTypeValueTable.OnValuePeekPointer getFieldValuePeekPointer() -
setFieldCollectFormat
A string format describing how to collect the contents of
this value bit-by-bit. Each character in the format represents
an argument to be collected, and the characters themselves indicate
the type of the argument. Currently supported arguments are:
- 'i' - Integers. passed as collect_values[].v_int.
- 'l' - Longs. passed as collect_values[].v_long.
- 'd' - Doubles. passed as collect_values[].v_double.
- 'p' - Pointers. passed as collect_values[].v_pointer.
It should be noted that for variable argument list construction,
ANSI C promotes every type smaller than an integer to an int, and
floats to doubles. So for collection of short int or char, 'i'
needs to be used, and for collection of floats 'd'. -
getFieldCollectFormat
A string format describing how to collect the contents of
this value bit-by-bit. Each character in the format represents
an argument to be collected, and the characters themselves indicate
the type of the argument. Currently supported arguments are:
- 'i' - Integers. passed as collect_values[].v_int.
- 'l' - Longs. passed as collect_values[].v_long.
- 'd' - Doubles. passed as collect_values[].v_double.
- 'p' - Pointers. passed as collect_values[].v_pointer.
It should be noted that for variable argument list construction,
ANSI C promotes every type smaller than an integer to an int, and
floats to doubles. So for collection of short int or char, 'i'
needs to be used, and for collection of floats 'd'. -
setFieldCollectValue
-
getFieldCollectValue
public ch.bailu.gtk.gobject.JnaTypeValueTable.OnCollectValue getFieldCollectValue() -
setFieldLcopyFormat
Format description of the arguments to collect for @lcopy_value,
analogous to @collect_format. Usually, @lcopy_format string consists
only of 'p's to provide lcopy_value() with pointers to storage locations. -
getFieldLcopyFormat
Format description of the arguments to collect for @lcopy_value,
analogous to @collect_format. Usually, @lcopy_format string consists
only of 'p's to provide lcopy_value() with pointers to storage locations. -
setFieldLcopyValue
-
getFieldLcopyValue
public ch.bailu.gtk.gobject.JnaTypeValueTable.OnLcopyValue getFieldLcopyValue() -
peek
Returns the location of the #GTypeValueTable associated with @type.
Note that this function should only be used from source code
that implements or has internal knowledge of the implementation of
@type.- Parameters:
type- a #GType- Returns:
- location of the #GTypeValueTable associated with @type or %NULL if there is no #GTypeValueTable associated with @type
-