|
| Table (void) |
|
| Table (short int rows, short int cols, bool homogeneous=true, GtkAttachOptions xOpt=GTK_EXPAND, GtkAttachOptions yOpt=GTK_EXPAND, uint xPad=0, uint yPad=0) |
|
void | initialise (short int rows=2, short int cols=2, bool homogeneous=true, GtkAttachOptions xOpt=GTK_FILL, GtkAttachOptions yOpt=GTK_FILL, uint xPad=0, uint yPad=0) |
|
void | setHomogeneous (bool homogeneous) |
|
void | setOptions (GtkAttachOptions xOpt, GtkAttachOptions yOpt) |
|
void | setRegion (short int x_s, short int x_e, short int y_s, short int y_e) |
|
void | placeWidget (GtkWidget *obj, GtkAttachOptions xOpt, GtkAttachOptions yOpt) |
|
void | placeWidget (GtkWidget *obj) |
|
void | getSize (uint *rows, uint *cols) |
|
void | setPadding (uint xPad, uint yPad) |
|
void | resize (uint rows, uint cols) |
|
Table & | operator<< (int i) |
|
Table & | operator, (int i) |
|
Table & | operator<< (int *region) |
|
Table & | operator<< (GtkWidget *obj) |
|
Table & | operator<< (LinkList< GtkWidget *> &ll) |
|
Table & | operator<< (Container &b) |
|
Table & | operator<< (Container *b) |
|
Table & | operator<< (Widget &b) |
|
Table & | operator<< (Widget *b) |
|
Table & | operator>> (GtkWidget *obj) |
|
Table & | operator>> (Container *c) |
|
Table & | operator>> (Container &c) |
|
Table & | operator>> (LinkList< GtkWidget *> &ll) |
|
void | setBorder (unsigned int size) |
|
unsigned int | getBorder (void) |
|
Container & | operator<< (Container &c) |
|
Container & | operator<< (Container *c) |
|
Container & | operator<< (Widget &w) |
|
Container & | operator<< (Widget *w) |
|
Container & | operator<< (LinkList< GtkWidget *> &ll) |
|
Container & | operator>> (GtkWidget *w) |
|
Container & | operator>> (Container *c) |
|
Container & | operator>> (Container &c) |
|
Container & | operator>> (LinkList< GtkWidget *> &ll) |
|
void | setChildrensSensitivity (bool sens) |
|
bool | areAnyChildrensSensitive (void) |
|
unsigned int | size () |
|
| Widget () |
| Construcotr. More...
|
|
| Widget (GtkWidget *w) |
|
virtual | ~Widget () |
| Destructor. More...
|
|
GtkWidget * | ref (void) |
|
void | unref (void) |
|
GtkWidget * | show (void) |
|
GtkWidget * | hide (void) |
|
bool | getVisible (void) |
|
GtkWidget * | getWidget (void) |
|
bool | getSensitive (void) |
|
void | setSensitive (bool sens) |
|
void | getSize (int &width, int &height) |
|
virtual void | setSize (int width, int height) |
|
void | getLocationSize (int &x, int &y, int &width, int &height) |
|
void | queueDraw () |
|
GdkWindow * | getWindow () |
|
void | connect (const char *event, GCallback callback, gpointer data) |
|
void | connectAfter (const char *event, GCallback callback, gpointer data) |
|
void | connectExposeEventCallback (GCallback callback, void *data) |
|
void | connectExposeEventCallback (GtkWidget *w, GCallback callback, void *data) |
|
void | connectConfigureEventCallback (GCallback callback, void *data) |
|
void | connectConfigureEventCallback (GtkWidget *w, GCallback callback, void *data) |
|
Widget & | operator<< (DragNDrop &dnd) |
|
Widget & | operator>> (DragNDrop &dnd) |
|
|
short int | xStart |
| The table column location to start attachment from. More...
|
|
short int | xEnd |
| The table column location to end attachment. More...
|
|
short int | yStart |
| The table row location to start attachment from. More...
|
|
short int | yEnd |
| The table row location to end attachment. More...
|
|
std::vector< int > | regionTemp |
| This region starts empty, when it gets 4 elements, it sets the region. More...
|
|
guint | xPadding |
| The horizontal padding between widgets. More...
|
|
guint | yPadding |
| The vertical padding between widgets. More...
|
|
GtkAttachOptions | xOptions |
| The horizontal fill options, one of : GTK_EXPAND, GTK_SHRINK, GTK_FILL. More...
|
|
GtkAttachOptions | yOptions |
| The vertical fill options, one of : GTK_EXPAND, GTK_SHRINK, GTK_FILL. More...
|
|
|
virtual void | pack (GtkWidget *obj) |
|
virtual bool | checkDropValidity (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData) |
|
virtual bool | dragDataReceived (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData, int length) |
|
virtual void | dragLeave (GtkWidget *w, GtkWidget *sourceWidget) |
|
virtual bool | dragMotion (GtkWidget *w, GtkWidget *sourceWidget, int x, int y) |
|
virtual int | chooseTheTargetToUse (GtkWidget *w, GtkWidget *sourceWidget, DragNDrop &dnd) |
|
virtual void | dragDataGet (GtkWidget *w, GtkSelectionData *selectionData, guint info) |
|
virtual void | dragDataDelete (GtkWidget *w) |
|
virtual void | dragBegin (GtkWidget *w) |
|
virtual void | dragEnd (GtkWidget *w) |
|
GtkWidget * | widget |
| The container based widget. More...
|
|
Table
This class allows both auto and manual widget placement into a table.
Allows you to set-up a table like so :
Table table(2, 2); table.show();
table<<buttons.grab(1)<<buttons.grab(2)<<buttons.grab(3)<<buttons.grab(4);
table<<0, 1, 0, 1<<buttons.grab(1);
table<<1, 2, 0, 1<<buttons.grab(2);
table<<0, 1, 1, 2<<buttons.grab(3);
table<<1, 2, 1, 2<<buttons.grab(4);
- Examples:
- TableTest.C.
Definition at line 43 of file Table.H.
Table& Table::operator<< |
( |
GtkWidget * |
obj | ) |
|
|
inlinevirtual |
Operator to load a widget into the table. This call should be preceeded with either operator<<(short int *region) i.e. << {1,2,1,2} or setRegion. This preceeding call with setup where to load the widget into the table.
- Parameters
-
obj | The widget to load in the table. |
- Returns
- This Table for further operator handling.
Reimplemented from Container.
Definition at line 230 of file Table.H.
void Table::placeWidget |
( |
GtkWidget * |
obj | ) |
|
|
inline |
Places a widget into the table. The options, start, end, padding parameters have previously been set, see setRegion, setPadding and placeWidget Upon placement, it steps to the next column (right) to auto update the xStart, xEnd, yStart and yEnd variables. If the end of the row has been reached, the next row column 1 is set (down one row, left side). If you placeWidget to the last cell (bottom right) it will auto-wrap to the top left. This allows you to load in many widgets one after another and auto-shifts to the next ` cell.
- Parameters
-
Definition at line 139 of file Table.H.