diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-20 19:00:42 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-10-20 19:00:52 +0200 |
| commit | 9817536cfd4a9ea8d9bb5ef41580a5ba3d254911 (patch) | |
| tree | c2f313d24dad7a95742f4673907863c65fd771b2 /FL/Fl_Grid.H | |
| parent | 757b5c12273cc1b4de8007b7c3f8536b699d2600 (diff) | |
FLUID: basic Fl_Grid support
* no settings for children yet
* ne good interactive editing for children
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 |
