GLib.TypeClass – gobject-2.0 Reference Manual
TypeClass
Object Hierarchy:
GLib.TypeClass
GLib.TypeClass
GLib.TypeClass
Description:
[
CCode
( free_function =
"g_type_class_unref"
, lower_case_csuffix =
"type_class"
) ]
[
Compact
]
public
class
TypeClass
An opaque structure used as the base of all classes.
All known sub-classes:
EnumClass
FlagsClass
ObjectClass
Namespace:
GLib
Package:
gobject-2.0
Content:
Methods:
public
void
add_private
(
size_t
private_size)
Registers a private structure for an instantiatable type.
public
void
adjust_private_offset
(
ref
int
private_size_or_offset)
public
int
get_instance_private_offset
()
Gets the offset of the private data for instances of
this
.
public
Type
get_type
()
public
unowned
TypeInterface
?
peek
(
Type
iface_type)
Returns the
TypeInterface
structure of an interface to which the passed in class conforms.
public
unowned
TypeClass
?
peek_parent
()
This is a convenience function often needed in class initializers.
2022 vala-language.org