00001
00002
00003
00004 #ifndef _GTABLE_LAYOUT_H_
00005 #define _GTABLE_LAYOUT_H_
00006
00007 #define GTABLELAYOUT_LAYOUT_CHANGED 20
00008
00010 class GLayoutCell : public GDom
00011 {
00012 public:
00013 GLayoutCell() {}
00014 virtual ~GLayoutCell() {}
00015 };
00016
00021 class LgiClass GTableLayout :
00022 public GLayout,
00023 public ResObject,
00024 public GDom
00025 {
00026 friend class TableCell;
00027 class GTableLayoutPrivate *d;
00028
00029 public:
00030 const char *GetClass() { return "GTableLayout"; }
00031 GTableLayout();
00032 ~GTableLayout();
00033
00035 int CellX();
00037 int CellY();
00039 GLayoutCell *CellAt(int x, int y);
00041 GRect GetUsedArea();
00043 void InvalidateLayout();
00044
00045
00046 void OnFocus(bool b);
00047 void OnCreate();
00048 void OnPosChange();
00049 void OnPaint(GSurface *pDC);
00050 bool GetVariant(const char *Name, GVariant &Value, char *Array = 0);
00051 bool SetVariant(const char *Name, GVariant &Value, char *Array = 0);
00052 void OnChildrenChanged(GViewI *Wnd, bool Attaching);
00053 };
00054
00055 #endif