ObjectG Class Reference

Inheritance diagram for ObjectG:

AccelGroup Color Drawable DUIObject Font GC GLContext ItemFactory Screen TextBuffer 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

char[] getActionCommand ()
 Gets the action command used by the listener.

void setActionCommand (char[] action)
 Sets the action command used by the listener.

char[] getDefaultAction ()
 Gets the default action name.

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

gpointer connect (char[] signal_spec)
 connect

void disconnect (char[] signal_spec)
 disconnect

void setVaList (char[] first_property_name, vaList var_args)
 setVaList

void getVaList (char[] first_property_name, vaList var_args)
 getVaList

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

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

void freezeNotity ()
 freezeNotity ???

void notify (char[] 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 (char[] key, gpointer data)
 Sets a pointer on this object's has table.

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

void setDataFull (char[] key, gpointer data, GDestroyNotify destroy)
 setDataFull

gpointer stealData (char[] 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, char[] detailed_signal, GCallback c_handler, gpointer gobject, GConnectFlags connect_flags)
 signalConnectObject


Static Public Member Functions

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

gpointer getDataG (void *gObj, char[] 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 (  char[]  signal_spec  ) 
 

connect

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

void ObjectG.disconnect (  char[]  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

char [] ObjectG.getActionCommand (   ) 
 

Gets the action command used by the listener.

Returns:
the actionCommand string

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,
char[]  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

char [] 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 (  char[]  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 (  char[]  first_property_name,
vaList  var_args
) 
 

getVaList

Parameters:
first_property_name 
var_args 

void ObjectG.notify (  char[]  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 (  char[]  action  ) 
 

Sets the action command used by the listener.

Parameters:
action 
Deprecated:

void ObjectG.setData (  char[]  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 (  char[]  key,
gpointer  data,
GDestroyNotify  destroy
) 
 

setDataFull

Parameters:
key 
data 
destroy 

void ObjectG.setDataG (  ObjectG  objG,
char[]  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 (  char[]  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 (  char[]  first_property_name,
vaList  var_args
) 
 

setVaList

Parameters:
first_property_name 
var_args 

gulong ObjectG.signalConnectObject (  gpointer  inst,
char[]  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 (  char[]  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,
char[]  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 Color, Drawable, WindowG, AccelGroup, ItemFactory, ListStore, TextBuffer, 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 


Generated on Sun Dec 21 02:47:11 2003 for DUI by doxygen 1.3.4