ObjectG Class Reference

Inheritance diagram for ObjectG:

AccelGroup Drawable DUIObject GC GLContext ItemFactory Screen TextChildAnchor TextMark TextTag TextTagTable Tooltips TreeModel TreeSelection Visual WindowGroup List of all members.

Detailed Description

Base class for DUIObject.

This class wraps GObject, DUIObject wraps GtkObject and Widget wraps GtkWidget.

Todo:
consider setting the ObjectG on the GObject data so that the ObjectG will have the same live span as the GObject (reusable from the Dispatcher for instance)


Public Member Functions

 this (GObject *gObject)
 Creates a ObjectG from a GTK GObject.

GObject * obj ()
 Gets the GTK GObject that this is wraping.

GdkObject * gdkO ()
 Gets the GTK GdkObject that this is wraping.

void obj (GObject *gObject)
 sets this ObjectG GTK GObject

String getActionCommand ()
 Gets the action command used by the listener.

void setActionCommand (String action)
 Sets the action command used by the listener.

String getDefaultAction ()
 Gets the default action name.

 this (GType object_type, String first_property_name)
 Creates a new ObjectG from a type and set a property.

gpointer connect (String signal_spec)
 connect

void disconnect (String signal_spec)
 disconnect

void setVaList (String first_property_name, vaList var_args)
 setVaList

void getVaList (String first_property_name, vaList var_args)
 getVaList

void setProperty (String property_name, GValue *value)
 Sets a property from this object.

void * getProperty (String property_name, GValue *value)
 Gets a property from this object.

void freezeNotity ()
 freezeNotity ???

void notify (String property_name)
 notify ???

void thawNotify ()
 thawNotify ???

gpointer ref (gpointer object)
 Create a reference to the gtk object so that GTK doens't destroy it.

void unref (gpointer object)
 Unreference an object.

void weakRef (GWeakNotify notify, gpointer data)
 weakRef

void weakUnref (GWeakNotify notify, gpointer data)
 weakUnref

void addWeakPointer (gpointer *weak_pointer_location)
 addWeakPointer

void removeWeakPointer (gpointer *weak_pointer_location)
 removeWeakPointer

gpointer getQData (GQuark quark)
 getQData

void setQData (GQuark quark, gpointer data)
 setQData

void setQDataFull (GQuark quark, gpointer data, GDestroyNotify destroy)
 setQDataFull

gpointer stealQData (GQuark quark)
 stealQData

void setData (String key, gpointer data)
 Sets a pointer on this object's has table.

gpointer getData (char[] key)
 Gets a pointer this object's has table.

gpointer getData (String key)
 Gets a pointer this object's has table.

void setDataFull (String key, gpointer data, GDestroyNotify destroy)
 setDataFull

gpointer stealData (String key)
 stealData

void watchClosure (GClosure *closure)
 watchClosure

void setObject (GValue *value, gpointer v_object)
 setObject

gpointer getObject (GValue *value)
 getObject

GObject * dupObject (GValue *value)
 dupObject

gulong signalConnectObject (gpointer inst, String detailed_signal, GCallback c_handler, gpointer gobject, GConnectFlags connect_flags)
 signalConnectObject


Static Public Member Functions

void setDataG (ObjectG objG, String key, gpointer data)
 Sets a pointer on an object's has table.

gpointer getDataG (void *gObj, String key)
 Gets a pointer an object's has table.


Member Function Documentation

void ObjectG.addWeakPointer gpointer *  weak_pointer_location  ) 
 

addWeakPointer

Parameters:
weak_pointer_location 

gpointer ObjectG.connect String  signal_spec  ) 
 

connect

Parameters:
signal_spec 
Returns:
a pointer
Deprecated:
use listeners to get object signals

void ObjectG.disconnect String  signal_spec  ) 
 

disconnect

Parameters:
signal_spec 
Deprecated:
use listeners to get object signals

GObject* ObjectG.dupObject GValue *  value  ) 
 

dupObject

Parameters:
value 
Returns:
a poiter to an GObject

void ObjectG.freezeNotity  ) 
 

freezeNotity ???

GdkObject* ObjectG.gdkO  ) 
 

Gets the GTK GdkObject that this is wraping.

This is the same as obj() but cast to GdkObject

String ObjectG.getActionCommand  ) 
 

Gets the action command used by the listener.

Returns:
the actionCommand string

gpointer ObjectG.getData String  key  ) 
 

Gets a pointer this object's has table.

Parameters:
key the data identifier
Returns:
a pointer the the data store on the object

gpointer ObjectG.getData char[]  key  ) 
 

Gets a pointer this object's has table.

Parameters:
key the data identifier
Returns:
a pointer the the data store on the object

gpointer ObjectG.getDataG void *  gObj,
String  key
[static]
 

Gets a pointer an object's has table.

Parameters:
gObj the object
key the data identifier
Returns:
a pointer the the data store on the object

String ObjectG.getDefaultAction  ) 
 

Gets the default action name.

From button the action is "clicked" from menu items the action is "activate" (go figure, well probably there as good reason for it)

Deprecated:
Returns:
the default

Reimplemented in Item.

gpointer ObjectG.getObject GValue *  value  ) 
 

getObject

Parameters:
value 
Returns:
a pointer

void* ObjectG.getProperty String  property_name,
GValue *  value
 

Gets a property from this object.

Parameters:
property_name 
value the default value to use if the property was not found

gpointer ObjectG.getQData GQuark  quark  ) 
 

getQData

Parameters:
quark 
Returns:
a pointer ???

void ObjectG.getVaList String  first_property_name,
vaList  var_args
 

getVaList

Parameters:
first_property_name 
var_args 

void ObjectG.notify String  property_name  ) 
 

notify ???

Parameters:
property_name 

void ObjectG.obj GObject *  gObject  ) 
 

sets this ObjectG GTK GObject

Parameters:
gObject 

GObject* ObjectG.obj  ) 
 

Gets the GTK GObject that this is wraping.

gpointer ObjectG.ref gpointer  object  ) 
 

Create a reference to the gtk object so that GTK doens't destroy it.

Parameters:
object 
Returns:
a reference to the object

void ObjectG.removeWeakPointer gpointer *  weak_pointer_location  ) 
 

removeWeakPointer

Parameters:
weak_pointer_location 

void ObjectG.setActionCommand String  action  ) 
 

Sets the action command used by the listener.

Parameters:
action 
Deprecated:

void ObjectG.setData String  key,
gpointer  data
 

Sets a pointer on this object's has table.

Parameters:
key the data identifier
data a pointer

Reimplemented in Entry.

void ObjectG.setDataFull String  key,
gpointer  data,
GDestroyNotify  destroy
 

setDataFull

Parameters:
key 
data 
destroy 

void ObjectG.setDataG ObjectG  objG,
String  key,
gpointer  data
[static]
 

Sets a pointer on an object's has table.

Parameters:
objG the object
key the data identifier
data a pointer

void ObjectG.setObject GValue *  value,
gpointer  v_object
 

setObject

Parameters:
value 
v_object 

void ObjectG.setProperty String  property_name,
GValue *  value
 

Sets a property from this object.

Parameters:
property_name 
value the value to set

void ObjectG.setQData GQuark  quark,
gpointer  data
 

setQData

Parameters:
quark 
data 

void ObjectG.setQDataFull GQuark  quark,
gpointer  data,
GDestroyNotify  destroy
 

setQDataFull

Parameters:
quark 
data 
destroy 

void ObjectG.setVaList String  first_property_name,
vaList  var_args
 

setVaList

Parameters:
first_property_name 
var_args 

gulong ObjectG.signalConnectObject gpointer  inst,
String  detailed_signal,
GCallback  c_handler,
gpointer  gobject,
GConnectFlags  connect_flags
 

signalConnectObject

Parameters:
inst 
detailed_signal 
c_handler 
gobject 
connect_flags 
Returns:
a ulong
Deprecated:
use listeners to get signals from objects

gpointer ObjectG.stealData String  key  ) 
 

stealData

Parameters:
key the data identifier
Returns:
a pointer the the data store on the object

gpointer ObjectG.stealQData GQuark  quark  ) 
 

stealQData

Parameters:
quark 
Returns:
a pointer to the data

void ObjectG.thawNotify  ) 
 

thawNotify ???

ObjectG.this GType  object_type,
String  first_property_name
 

Creates a new ObjectG from a type and set a property.

Reimplemented in Widget.

ObjectG.this GObject *  gObject  ) 
 

Creates a ObjectG from a GTK GObject.

This will set a pointer to the ObjectG on the GTK GObject all the new widget will end up executing this contructor.

Reimplemented in Drawable, WindowG, AccelGroup, ItemFactory, ListStore, TextTag, TextTagTable, Tooltips, TreeModel, TreeSelection, and TreeStore.

void ObjectG.unref gpointer  object  ) 
 

Unreference an object.

Objects gtk object with no references will be desctroyed by gtk.

Parameters:
object 

void ObjectG.watchClosure GClosure *  closure  ) 
 

watchClosure

Parameters:
closure 

void ObjectG.weakRef GWeakNotify  notify,
gpointer  data
 

weakRef

Parameters:
notify 
data 

void ObjectG.weakUnref GWeakNotify  notify,
gpointer  data
 

weakUnref

Parameters:
notify 
data 


SourceForge.net Logo