Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.ObjectG

Class ObjectG

Implemented interfaces:

StatusInterface
public class

ObjectG



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)

Constructor Summary
this(GObject* gObject)
          Creates a ObjectG from a GTK GObject.
public this(GType object_type, String first_property_name)
          Creates a new ObjectG from a type and set a property

Methods Summary
public void* gtk()
          
public void dump()
          
public GObject* obj()
          Gets the GTK GObject that this is wraping
public GdkObject* gdkO()
          Gets the GTK GdkObject that this is wraping.
public void obj(GObject* gObject)
          sets this ObjectG GTK GObject
public String getActionCommand()
          Gets the action command used by the listener
public void setActionCommand(String action)
          Sets the action command used by the listener
public String getDefaultAction()
          Gets the default action name.
public gpointer connect(String signal_spec)
          connect
public void disconnect(String signal_spec)
          disconnect
public void setVaList(String first_property_name, vaList var_args)
          setVaList
public void getVaList(String first_property_name, vaList var_args)
          getVaList
public void setProperty(char property_name, Value value)
          Sets a property from this object
public void setProperty(char property_name, GValue* value)
          Sets a property from this object
public void setProperty(String property_name, GValue* value)
          Sets a property from this object
void setProperty(char name, bit value)
          
void setProperty(String name, bit value)
          
public void* getProperty(String property_name, GValue* value)
          Gets a property from this object
public void freezeNotity()
          freezeNotity ???
public void notify(String property_name)
          notify ???
public void thawNotify()
          thawNotify ???
public gpointer ref(gpointer object)
          Create a reference to the gtk object so that GTK doens't destroy it
public void unref(gpointer object)
          Unreference an object.
public void weakRef(GWeakNotify notify, gpointer data)
          weakRef
public void weakUnref(GWeakNotify notify, gpointer data)
          weakUnref
public void addWeakPointer(gpointer* weak_pointer_location)
          addWeakPointer
public void removeWeakPointer(gpointer* weak_pointer_location)
          removeWeakPointer
public gpointer getQData(GQuark quark)
          getQData
public void setQData(GQuark quark, gpointer data)
          setQData
public void setQDataFull(GQuark quark, gpointer data, GDestroyNotify destroy)
          setQDataFull
public gpointer stealQData(GQuark quark)
          stealQData
public void setData(String key, gpointer data)
          Sets a pointer on this object's has table
public static void setDataG(ObjectG objG, String key, gpointer data)
          Sets a pointer on an object's has table
public gpointer getData(char key)
          Gets a pointer this object's has table
public gpointer getData(String key)
          Gets a pointer this object's has table
public static gpointer getDataG(void* gObj, String key)
          Gets a pointer an object's has table
public void setDataFull(String key, gpointer data, GDestroyNotify destroy)
          setDataFull
public gpointer stealData(String key)
          stealData
public void watchClosure(GClosure* closure)
          watchClosure
public void setObject(GValue* value, gpointer v_object)
          setObject
public gpointer getObject(GValue* value)
          getObject
public GObject* dupObject(GValue* value)
          dupObject
public gulong signalConnectObject(gpointer inst, String detailed_signal, GCallback c_handler, gpointer gobject, GConnectFlags connect_flags)
          signalConnectObject


gtk

public void* gtk()

this

ctor(ObjectG)(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.

dump

public void dump()

obj

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

gdkO

public GdkObject* gdkO()
Gets the GTK GdkObject that this is wraping.
This is the same as obj() but cast to GdkObject

obj

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

Parameters:
gObject -

getActionCommand

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

Returns:
the actionCommand string

setActionCommand

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

Parameters:
action - \deprecated

getDefaultAction

public String 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

this

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

connect

public gpointer connect(String signal_spec)
connect

Parameters:
signal_spec -

Returns:
a pointer \deprecated use listeners to get object signals

disconnect

public void disconnect(String signal_spec)
disconnect

Parameters:
signal_spec - \deprecated use listeners to get object signals

setVaList

public void setVaList(String first_property_name, vaList var_args)
setVaList

Parameters:
first_property_name -
var_args -

getVaList

public void getVaList(String first_property_name, vaList var_args)
getVaList

Parameters:
first_property_name -
var_args -

setProperty

public void setProperty(char property_name, Value value)
Sets a property from this object

Parameters:
property_name -
value - the value to set

setProperty

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

Parameters:
property_name -
value - the value to set

setProperty

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

Parameters:
property_name -
value - the value to set

setProperty

void setProperty(char name, bit value)

setProperty

void setProperty(String name, bit value)

getProperty

public void* 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

freezeNotity

public void freezeNotity()
freezeNotity ???

notify

public void notify(String property_name)
notify ???

Parameters:
property_name -

thawNotify

public void thawNotify()
thawNotify ???

ref

public gpointer 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

unref

public void unref(gpointer object)
Unreference an object.
Objects gtk object with no references will be desctroyed by gtk.

Parameters:
object -

weakRef

public void weakRef(GWeakNotify notify, gpointer data)
weakRef

Parameters:
notify -
data -

weakUnref

public void weakUnref(GWeakNotify notify, gpointer data)
weakUnref

Parameters:
notify -
data -

addWeakPointer

public void addWeakPointer(gpointer* weak_pointer_location)
addWeakPointer

Parameters:
weak_pointer_location -

removeWeakPointer

public void removeWeakPointer(gpointer* weak_pointer_location)
removeWeakPointer

Parameters:
weak_pointer_location -

getQData

public gpointer getQData(GQuark quark)
getQData

Parameters:
quark -

Returns:
a pointer ???

setQData

public void setQData(GQuark quark, gpointer data)
setQData

Parameters:
quark -
data -

setQDataFull

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

Parameters:
quark -
data -
destroy -

stealQData

public gpointer stealQData(GQuark quark)
stealQData

Parameters:
quark -

Returns:
a pointer to the data

setData

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

Parameters:
key - the data identifier
data - a pointer

setDataG

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

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

getData

public gpointer 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

getData

public gpointer 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

getDataG

public static gpointer getDataG(void* gObj, String key)
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

setDataFull

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

Parameters:
key -
data -
destroy -

stealData

public gpointer stealData(String key)
stealData

Parameters:
key - the data identifier

Returns:
a pointer the the data store on the object

watchClosure

public void watchClosure(GClosure* closure)
watchClosure

Parameters:
closure -

setObject

public void setObject(GValue* value, gpointer v_object)
setObject

Parameters:
value -
v_object -

getObject

public gpointer getObject(GValue* value)
getObject

Parameters:
value -

Returns:
a pointer

dupObject

public GObject* dupObject(GValue* value)
dupObject

Parameters:
value -

Returns:
a poiter to an GObject

signalConnectObject

public gulong 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