Package ch.bailu.gtk.gobject
Klasse ObjectClass
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gobject.ObjectClass
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
ObjectClassExtended
The class structure for the GObject type.
<!-- language="C" --> // Example of implementing a singleton using a constructor. static MySingleton *the_singleton = NULL; static GObject* my_singleton_constructor (GType type, guint n_construct_params, GObjectConstructParam *construct_params) { GObject *object; if (!the_singleton) { object = G_OBJECT_CLASS (parent_class)->constructor (type, n_construct_params, construct_params); the_singleton = MY_SINGLETON (object); } else object = g_object_ref (G_OBJECT (the_singleton)); return object; }
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
static interface
static interface
static interface
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
static final String
the @constructor function is called by g_object_new () to
complete the object initialization after all the construction properties are
set.static final String
the @dispose function is supposed to drop all references to other
objects, but keep the instance otherwise intact, so that client method
invocations still work.static final String
instance finalization function, should finish the finalization of
the instance begun in @dispose and chain up to the @finalize method of the
parent class.static final String
the parent class
Private field: direct-typestatic final String
the generic getter for all properties of this type.static final String
the generic setter for all properties of this type. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindProperty
(Str property_name) Looks up the #GParamSpec for a property of a class.findProperty
(String property_name) Looks up the #GParamSpec for a property of a class.static ClassHandler
ch.bailu.gtk.gobject.JnaObjectClass.OnConstructor
the @constructor function is called by g_object_new () to
complete the object initialization after all the construction properties are
set.ch.bailu.gtk.gobject.JnaObjectClass.OnDispose
the @dispose function is supposed to drop all references to other
objects, but keep the instance otherwise intact, so that client method
invocations still work.ch.bailu.gtk.gobject.JnaObjectClass.OnFinalize
instance finalization function, should finish the finalization of
the instance begun in @dispose and chain up to the @finalize method of the
parent class.ch.bailu.gtk.gobject.JnaObjectClass.OnGetProperty
the generic getter for all properties of this type.ch.bailu.gtk.gobject.JnaObjectClass.OnSetProperty
the generic setter for all properties of this type.static int
static TypeSystem.TypeSize
static TypeSystem.TypeSize
void
installProperty
(int property_id, ParamSpec pspec) Installs a new property.void
overrideProperty
(int property_id, Str name) Registers @property_id as referring to a property with the name
@name in a parent class or in an interface implemented by @oclass.void
overrideProperty
(int property_id, String name) Registers @property_id as referring to a property with the name
@name in a parent class or in an interface implemented by @oclass.void
setFieldConstructor
(ObjectClass.OnConstructor constructor) the @constructor function is called by g_object_new () to
complete the object initialization after all the construction properties are
set.void
setFieldDispose
(ObjectClass.OnDispose dispose) the @dispose function is supposed to drop all references to other
objects, but keep the instance otherwise intact, so that client method
invocations still work.void
setFieldFinalize
(ObjectClass.OnFinalize finalize) instance finalization function, should finish the finalization of
the instance begun in @dispose and chain up to the @finalize method of the
parent class.void
setFieldGetProperty
(ObjectClass.OnGetProperty get_property) the generic getter for all properties of this type.void
setFieldSetProperty
(ObjectClass.OnSetProperty set_property) the generic setter for all properties of this type.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
G_TYPE_CLASS
the parent class
Private field: direct-type- Siehe auch:
-
CONSTRUCT_PROPERTIES
- Siehe auch:
-
CONSTRUCTOR
the @constructor function is called by g_object_new () to
complete the object initialization after all the construction properties are
set. The first thing a @constructor implementation must do is chain up to the
@constructor of the parent class. Overriding @constructor should be rarely
needed, e.g. to handle construct properties, or to implement singletons.
SeeObjectClass.OnConstructor.onConstructor(ch.bailu.gtk.lib.handler.CallbackHandler, long, int, ch.bailu.gtk.gobject.ObjectConstructParam)
- Siehe auch:
-
SET_PROPERTY
the generic setter for all properties of this type. Should be
overridden for every type with properties. If implementations of
@set_property don't emit property change notification explicitly, this will
be done implicitly by the type system. However, if the notify signal is
emitted explicitly, the type system will not emit it a second time.
SeeObjectClass.OnSetProperty.onSetProperty(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object, int, ch.bailu.gtk.gobject.Value, ch.bailu.gtk.gobject.ParamSpec)
- Siehe auch:
-
GET_PROPERTY
the generic getter for all properties of this type. Should be
overridden for every type with properties.
SeeObjectClass.OnGetProperty.onGetProperty(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object, int, ch.bailu.gtk.gobject.Value, ch.bailu.gtk.gobject.ParamSpec)
- Siehe auch:
-
DISPOSE
the @dispose function is supposed to drop all references to other
objects, but keep the instance otherwise intact, so that client method
invocations still work. It may be run multiple times (due to reference
loops). Before returning, @dispose should chain up to the @dispose method
of the parent class.
SeeObjectClass.OnDispose.onDispose(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object)
- Siehe auch:
-
FINALIZE
instance finalization function, should finish the finalization of
the instance begun in @dispose and chain up to the @finalize method of the
parent class.
SeeObjectClass.OnFinalize.onFinalize(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object)
- Siehe auch:
-
-
Konstruktordetails
-
ObjectClass
-
-
Methodendetails
-
getClassHandler
-
getFieldConstructProperties
-
setFieldConstructor
the @constructor function is called by g_object_new () to
complete the object initialization after all the construction properties are
set. The first thing a @constructor implementation must do is chain up to the
@constructor of the parent class. Overriding @constructor should be rarely
needed, e.g. to handle construct properties, or to implement singletons.
SeeObjectClass.OnConstructor.onConstructor(ch.bailu.gtk.lib.handler.CallbackHandler, long, int, ch.bailu.gtk.gobject.ObjectConstructParam)
-
getFieldConstructor
public ch.bailu.gtk.gobject.JnaObjectClass.OnConstructor getFieldConstructor()the @constructor function is called by g_object_new () to
complete the object initialization after all the construction properties are
set. The first thing a @constructor implementation must do is chain up to the
@constructor of the parent class. Overriding @constructor should be rarely
needed, e.g. to handle construct properties, or to implement singletons.
SeeObjectClass.OnConstructor.onConstructor(ch.bailu.gtk.lib.handler.CallbackHandler, long, int, ch.bailu.gtk.gobject.ObjectConstructParam)
-
setFieldSetProperty
the generic setter for all properties of this type. Should be
overridden for every type with properties. If implementations of
@set_property don't emit property change notification explicitly, this will
be done implicitly by the type system. However, if the notify signal is
emitted explicitly, the type system will not emit it a second time.
SeeObjectClass.OnSetProperty.onSetProperty(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object, int, ch.bailu.gtk.gobject.Value, ch.bailu.gtk.gobject.ParamSpec)
-
getFieldSetProperty
public ch.bailu.gtk.gobject.JnaObjectClass.OnSetProperty getFieldSetProperty()the generic setter for all properties of this type. Should be
overridden for every type with properties. If implementations of
@set_property don't emit property change notification explicitly, this will
be done implicitly by the type system. However, if the notify signal is
emitted explicitly, the type system will not emit it a second time.
SeeObjectClass.OnSetProperty.onSetProperty(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object, int, ch.bailu.gtk.gobject.Value, ch.bailu.gtk.gobject.ParamSpec)
-
setFieldGetProperty
the generic getter for all properties of this type. Should be
overridden for every type with properties.
SeeObjectClass.OnGetProperty.onGetProperty(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object, int, ch.bailu.gtk.gobject.Value, ch.bailu.gtk.gobject.ParamSpec)
-
getFieldGetProperty
public ch.bailu.gtk.gobject.JnaObjectClass.OnGetProperty getFieldGetProperty()the generic getter for all properties of this type. Should be
overridden for every type with properties.
SeeObjectClass.OnGetProperty.onGetProperty(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object, int, ch.bailu.gtk.gobject.Value, ch.bailu.gtk.gobject.ParamSpec)
-
setFieldDispose
the @dispose function is supposed to drop all references to other
objects, but keep the instance otherwise intact, so that client method
invocations still work. It may be run multiple times (due to reference
loops). Before returning, @dispose should chain up to the @dispose method
of the parent class.
SeeObjectClass.OnDispose.onDispose(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object)
-
getFieldDispose
public ch.bailu.gtk.gobject.JnaObjectClass.OnDispose getFieldDispose()the @dispose function is supposed to drop all references to other
objects, but keep the instance otherwise intact, so that client method
invocations still work. It may be run multiple times (due to reference
loops). Before returning, @dispose should chain up to the @dispose method
of the parent class.
SeeObjectClass.OnDispose.onDispose(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object)
-
setFieldFinalize
instance finalization function, should finish the finalization of
the instance begun in @dispose and chain up to the @finalize method of the
parent class.
SeeObjectClass.OnFinalize.onFinalize(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object)
-
getFieldFinalize
public ch.bailu.gtk.gobject.JnaObjectClass.OnFinalize getFieldFinalize()instance finalization function, should finish the finalization of
the instance begun in @dispose and chain up to the @finalize method of the
parent class.
SeeObjectClass.OnFinalize.onFinalize(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.Object)
-
findProperty
Looks up the #GParamSpec for a property of a class.- Parameter:
property_name
- the name of the property to look up- Gibt zurück:
- the #GParamSpec for the property, or %NULL if the class doesn't have a property of that name
-
findProperty
Looks up the #GParamSpec for a property of a class.- Parameter:
property_name
- the name of the property to look up- Gibt zurück:
- the #GParamSpec for the property, or %NULL if the class doesn't have a property of that name
-
installProperty
Installs a new property.
All properties should be installed during the class initializer. It
is possible to install properties after that, but doing so is not
recommend, and specifically, is not guaranteed to be thread-safe vs.
use of properties on the same type on other threads.
Note that it is possible to redefine a property in a derived class,
by installing a property with the same name. This can be useful at times,
e.g. to change the range of allowed values or the default value.- Parameter:
property_id
- the id for the new propertypspec
- the #GParamSpec for the new property
-
overrideProperty
Registers @property_id as referring to a property with the name
@name in a parent class or in an interface implemented by @oclass.
This allows this class to "override" a property implementation in
a parent class or to provide the implementation of a property from
an interface.
Internally, overriding is implemented by creating a property of type
#GParamSpecOverride; generally operations that query the properties of
the object class, such as g_object_class_find_property() or
g_object_class_list_properties() will return the overridden
property. However, in one case, the @construct_properties argument of
the @constructor virtual function, the #GParamSpecOverride is passed
instead, so that the @param_id field of the #GParamSpec will be
correct. For virtually all uses, this makes no difference. If you
need to get the overridden property, you can call
g_param_spec_get_redirect_target().- Parameter:
property_id
- the new property IDname
- the name of a property registered in a parent class or in an interface of this class.
-
overrideProperty
Registers @property_id as referring to a property with the name
@name in a parent class or in an interface implemented by @oclass.
This allows this class to "override" a property implementation in
a parent class or to provide the implementation of a property from
an interface.
Internally, overriding is implemented by creating a property of type
#GParamSpecOverride; generally operations that query the properties of
the object class, such as g_object_class_find_property() or
g_object_class_list_properties() will return the overridden
property. However, in one case, the @construct_properties argument of
the @constructor virtual function, the #GParamSpecOverride is passed
instead, so that the @param_id field of the #GParamSpec will be
correct. For virtually all uses, this makes no difference. If you
need to get the overridden property, you can call
g_param_spec_get_redirect_target().- Parameter:
property_id
- the new property IDname
- the name of a property registered in a parent class or in an interface of this class.
-
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-