Home > api > name > gb_base 
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
GB_BASE
Syntax
typedef
  struct {
    GB_CLASS klass;
    long ref;
    }
  GB_BASE;

This structure represents the base of every Gambas object. It must be placed in the beginning of all object structure defined in a component.

Do not touch them ! They are managed by the interpreter.

Examples

/* Here is the definition of a Control in the QT component */

typedef
  struct CWIDGET {
    GB_BASE ob;
    QWidget *widget;
    unsigned long flag;
    GB_VARIANT_VALUE tag;
    char *tooltip;
    void *cursor;
    CWIDGET *next;
    CWIDGET *prev;
    int level;
    }
  CWIDGET;