summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-10-23 01:36:55 +0200
committerMatthias Melcher <github@matthiasm.com>2023-10-23 01:36:55 +0200
commit17baeceb7ab90251f99c7909eb9eeca92aec5a05 (patch)
tree76fc446e2060f38dfda5e769640c2277d2010eb6 /FL
parentab6ef9d52f60ac991baafc7af33775e34484f358 (diff)
FLUID: Positioning grid cells intuitively.
User can now drag widgets from the toolbox into the grid or use the context menu to add them into the corresponding cell. If no position is indicated, now children are added at the first free cell.
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Grid.H3
1 files changed, 3 insertions, 0 deletions
diff --git a/FL/Fl_Grid.H b/FL/Fl_Grid.H
index d7d90e352..b240ca95b 100644
--- a/FL/Fl_Grid.H
+++ b/FL/Fl_Grid.H
@@ -311,6 +311,9 @@ public:
void row_gap(const int *value, size_t size);
int row_gap(int row) const;
+ int computed_col_width(int col) const;
+ int computed_row_height(int row) const;
+
/**
Enable or disable drawing of the grid helper lines for visualization.