diff options
Diffstat (limited to 'FL/Fl_Grid.H')
| -rw-r--r-- | FL/Fl_Grid.H | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/FL/Fl_Grid.H b/FL/Fl_Grid.H index c2170ca5a..1e176a45f 100644 --- a/FL/Fl_Grid.H +++ b/FL/Fl_Grid.H @@ -215,6 +215,9 @@ public: virtual void clear_layout(); virtual void resize(int X, int Y, int W, int H) FL_OVERRIDE; + short rows() const { return rows_; } + short cols() const { return cols_; } + /** Request or reset the request to calculate the layout of children. @@ -249,13 +252,15 @@ protected: public: - // set individual margins + // get and set individual margins virtual void margin(int left, int top = -1, int right = -1, int bottom = -1); + int margin(int *left, int *top, int *right, int *bottom) const; - // set default row and column gaps for all rows and columns, respectively + // get and set default row and column gaps for all rows and columns, respectively virtual void gap(int row_gap, int col_gap = -1); // set default row and column gap(s) + void gap(int *row_gap, int *col_gap) const; // find cells, get cell pointers |
