summaryrefslogtreecommitdiff
path: root/FL/Fl_Grid.H
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-10-21 17:45:30 +0200
committerMatthias Melcher <github@matthiasm.com>2023-10-21 17:45:40 +0200
commit0c35212467f3b0d1aa632a1febb06c09f4b170f1 (patch)
treec56c12e3f9090950ce560f392f5d4228b6de1d2d /FL/Fl_Grid.H
parente18762bff8bb2abfccc5c86086832a19c109c417 (diff)
FLUID: grid becomes a bit more interactive
Diffstat (limited to 'FL/Fl_Grid.H')
-rw-r--r--FL/Fl_Grid.H15
1 files changed, 11 insertions, 4 deletions
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);