GtkFC API Reference version 0.1.0

Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Examples  

Gobject Class Reference

#include <Gobject.h>

Inheritance diagram for Gobject:

Gcolor Gfont Glist Gset Gstring Gwidget GlistSet Ghash GlistSet Gvector Gbutton GbuttonRadio GcList GcomboBox Gcontainers Gdialog GentryText Glabel GlistBox GlistBox::GlistItem Gmenu GmenuBar GmenuItem GnoteBook Gpixmap Gtext Gwindow List of all members.

Public Methods

 Gobject ()
virtual ~Gobject ()
bool DecRef ()
bool IsReferenced ()
void IncRef ()
void Kill ()
virtual int HashCode ()

Detailed Description

This is the base class for the object of gtkfc The function like hashcode and referencing are implemented here. A Gobject contains a reference which is incremented when the object is placed in a collection like Gset. When the collection is destroyed the method Kill is called on each object of the collection. If the reference is zero, the object is destroyed.
Author(s):
Thibaut Nicolas
Version:
0.1.0


Member Function Documentation

bool Gobject::DecRef ( )
 

Decrement the reference if this is possible and return if the object is referenced after modification

int Gobject::HashCode ( ) [virtual]
 

Return a hash code for the object. By default the memory adress

Reimplemented in GlistBox::GlistItem, and Gstring.

void Gobject::IncRef ( )
 

Increment the reference of the object

bool Gobject::IsReferenced ( )
 

Return true if the object have a reference > 0

void Gobject::Kill ( )
 

delete the object if no reference are available


The documentation for this class was generated from the following file:

Copyright © 2002 Thibaut Nicolas
Last modified  lun sep 23 23:41:26 EDT 2002