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
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
static interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
A string format describing how to collect the contents of
this value bit-by-bit.static final String
static final String
Format description of the arguments to collect for @lcopy_value,
analogous to @collect_format.static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
A string format describing how to collect the contents of
this value bit-by-bit.ch.bailu.gtk.gobject.JnaTypeValueTable.OnCollectValue
Format description of the arguments to collect for @lcopy_value,
analogous to @collect_format.ch.bailu.gtk.gobject.JnaTypeValueTable.OnLcopyValue
ch.bailu.gtk.gobject.JnaTypeValueTable.OnValueCopy
ch.bailu.gtk.gobject.JnaTypeValueTable.OnValueFree
ch.bailu.gtk.gobject.JnaTypeValueTable.OnValueInit
ch.bailu.gtk.gobject.JnaTypeValueTable.OnValuePeekPointer
static TypeValueTable
peek
(long type) Returns the location of the #GTypeValueTable associated with @type.void
setFieldCollectFormat
(Str collect_format) A string format describing how to collect the contents of
this value bit-by-bit.void
setFieldCollectValue
(TypeValueTable.OnCollectValue collect_value) void
setFieldLcopyFormat
(Str lcopy_format) Format description of the arguments to collect for @lcopy_value,
analogous to @collect_format.void
setFieldLcopyValue
(TypeValueTable.OnLcopyValue lcopy_value) void
setFieldValueCopy
(TypeValueTable.OnValueCopy value_copy) void
setFieldValueFree
(TypeValueTable.OnValueFree value_free) void
setFieldValueInit
(TypeValueTable.OnValueInit value_init) void
setFieldValuePeekPointer
(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, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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
-