From 0c35212467f3b0d1aa632a1febb06c09f4b170f1 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 21 Oct 2023 17:45:30 +0200 Subject: FLUID: grid becomes a bit more interactive --- FL/Fl_Grid.H | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Grid.H b/FL/Fl_Grid.H index 2cf2392d0..fbcc1ce1f 100644 --- a/FL/Fl_Grid.H +++ b/FL/Fl_Grid.H @@ -141,6 +141,7 @@ const Fl_Grid_Align FL_GRID_BOTTOM_RIGHT = FL_GRID_BOTTOM | FL_GRID_RIGHT; \image latex Fl_Grid.png "Simple 3x3 Fl_Grid" width=7cm */ class Fl_Grid : public Fl_Group { + friend class Fl_Grid_Type; public: class Cell { @@ -172,13 +173,18 @@ public: ~Cell() {} + Fl_Widget *widget() { return widget_; } + short row() const { return row_; } short col() const { return col_; } - Fl_Widget *widget() { return widget_; } - void align(Fl_Grid_Align align) { - align_ = align; - } + void rowspan(short v) { rowspan_ = v; } + void colspan(short v) { colspan_ = v; } + short rowspan() const { return rowspan_; } + short colspan() const { return colspan_; } + + void align(Fl_Grid_Align align) { align_ = align; } + Fl_Grid_Align align() const { return align_; } }; // class Cell private: @@ -289,6 +295,7 @@ public: void row_height(int row, int value); void row_height(const int *value, size_t size); + int row_height(int row) const; void row_weight(int row, int value); void row_weight(const int *value, size_t size); -- cgit v1.2.3