org.gnu.gtk

Class GtkObject

Known Direct Subclasses:
Adjustment, ItemFactory, ToolTips, Widget

public class GtkObject
extends GObject

This is the base class of all widgets and a few non-widget objects.

Field Summary

Fields inherited from class org.gnu.glib.GObject

eventsInitialized

Constructor Summary

GtkObject(Handle handle)

Method Summary

void
destroy()
Emits the "destroy" signal notifying all reference holders that they should release the GtkObject.
protected static int
getFlags(Handle obj)
static Type
getType()
Retrieve the runtime type used by the GLib library.
protected static void
gtk_object_destroy(Handle object)
protected static int
gtk_object_get_type()
protected static void
gtk_object_sink(Handle object)
protected static void
setFlags(Handle obj, int flags)
void
sink()
Removes the floating reference from a GtkObject, if it exists.

Methods inherited from class org.gnu.glib.GObject

addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, equals, freezeNotify, getBooleanProperty, getData, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getHandle, getIntFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getNullHandle, getPixbufProperty, getProperty, getStringFromHandle, getStringProperty, hasProperty, hashCode, instantiateJGObjectFromGType, notify, removeEventHandler, removeListener, retrieveGObject, setBooleanProperty, setData, setData, setDoubleProperty, setFloatProperty, setHandle, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify

Constructor Details

GtkObject

protected GtkObject(Handle handle)

Method Details

destroy

public void destroy()
Emits the "destroy" signal notifying all reference holders that they should release the GtkObject. The memory for the object itself won't be deleted until its reference count actually drops to 0. This method merely asks reference holders to release their references, it does not free the object.


getFlags

protected static final int getFlags(Handle obj)


getType

public static Type getType()
Retrieve the runtime type used by the GLib library.


gtk_object_destroy

protected static final void gtk_object_destroy(Handle object)


gtk_object_get_type

protected static final int gtk_object_get_type()


gtk_object_sink

protected static final void gtk_object_sink(Handle object)


setFlags

protected static final void setFlags(Handle obj,
                                     int flags)


sink

public void sink()
Removes the floating reference from a GtkObject, if it exists. Otherwise does nothing.