From 17baeceb7ab90251f99c7909eb9eeca92aec5a05 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 23 Oct 2023 01:36:55 +0200 Subject: 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. --- src/Fl_Grid.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/Fl_Grid.cxx b/src/Fl_Grid.cxx index 9de77c7b9..ac4f9f224 100644 --- a/src/Fl_Grid.cxx +++ b/src/Fl_Grid.cxx @@ -1142,6 +1142,14 @@ int Fl_Grid::row_gap(int row) const { return 0; } +int Fl_Grid::computed_col_width(int col) const { + return Cols_[col].w_; +} + +int Fl_Grid::computed_row_height(int row) const { + return Rows_[row].h_; +} + /** Output layout information of this Fl_Grid to stderr. -- cgit v1.2.3