#include <FL/Fl_Object.H>
class Fl_Object

This is the base class for Fl_Window, Fl_Group, and all the ui objects in Fl. You can't create one of these because the constructor is not public. However you can subclass it.

All "property" accessing methods, such as color() or parent() or argument() are implemented as trivial inline functions and thus are as fast and small as accessing fields in a structure. Unless otherwise noted (by saying the method causes a redraw()), the property setting methods such as color(n) or label(s) are also trivial inline functions, even if they change the objects appearance. It is up to the user code to call redraw() after these.

Fl_Object(int x, int y, int w, int h, const char* label=0);

virtual ~Fl_Object();

uchar type() const;

short x() const;
short y() const;
short w() const;
short h() const;

virtual void resize(int,int,int,int);
void position(short x,short y);
void size(short w,short h);

void size_range(int minw, int minh, int maxw=0, int maxh=0, int dw=0, int dh=0, int aspect=0);

Fl_Window* window() const;

uchar box() const;
void box(uchar a);

uchar color() const;
void color(uchar a);

uchar color2() const;
void color2(uchar a);
void color(uchar a,uchar b);

const char* label() const;
void label(const char*);

void label(uchar,const char*);
uchar labeltype() const;
void labeltype(uchar);

uchar align() const;
void align(uchar);

uchar labelcolor() const;
void labelcolor(uchar a);

uchar labelfont() const;
void labelfont(uchar a);

uchar labelsize() const;
void labelsize(uchar a);

typedef void (Fl_Callback)(Fl_Object*, void*);
Fl_Callback* callback() const;
void callback(Fl_Callback*, void* = 0);

void* user_data() const;
void user_data(void*);

void callback(void (*)(Fl_Object*, long), long = 0);
long argument() const;
void argument(long);

void callback(void (*)(Fl_Object*));

void do_callback();
void do_callback(Fl_Object* o, void* arg=0);
void do_callback(Fl_Object* o, long arg);

int changed() const;
void set_changed();
void clear_changed();

uchar when() const;
void when(uchar i);

static void default_callback(Fl_Object*, void*);

int visible() const;
void show();
void hide();

int active() const;
void activate();
void deactivate();

int activevisible() const;

void redraw();

uchar damage() const;

Fl_Group* parent() const;

int contains(Fl_Object* b) const;

int inside(const Fl_Object* a) const;

(back to contents)