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. --- fluid/Fl_Grid_Type.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fluid/Fl_Grid_Type.h') diff --git a/fluid/Fl_Grid_Type.h b/fluid/Fl_Grid_Type.h index 3ad25095c..358489469 100644 --- a/fluid/Fl_Grid_Type.h +++ b/fluid/Fl_Grid_Type.h @@ -45,6 +45,8 @@ public: void move_child(Fl_Type*, Fl_Type*) FL_OVERRIDE; void remove_child(Fl_Type*) FL_OVERRIDE; void child_resized(Fl_Widget_Type *child); + void insert_child_at(Fl_Widget *child, int x, int y); + void insert_child(Fl_Widget *child); static class Fl_Grid *selected(); }; -- cgit v1.2.3