From 9ca4aed1fa13df227ddebe4fed4353d9156ab414 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 2 Nov 2023 15:18:03 +0100 Subject: FLUID: Adds more interactive editing to Fl_Grid * this commit introduces a few FIXMEs and TODOs that probably can't be solved until we do some major refactoring. They work for now, but adding more layout controlling widgets will be hard. --- fluid/Fl_Group_Type.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fluid/Fl_Group_Type.cxx') diff --git a/fluid/Fl_Group_Type.cxx b/fluid/Fl_Group_Type.cxx index f1c68c888..d42965554 100644 --- a/fluid/Fl_Group_Type.cxx +++ b/fluid/Fl_Group_Type.cxx @@ -66,6 +66,8 @@ void Fl_Group_Proxy::draw() { fl_rect(x(), y(), w(), h(), Fl::box_color(fl_color_average(FL_FOREGROUND_COLOR, color(), .1f))); Fl_Group::draw(); } else if (box() == FL_FLAT_BOX && parent() && parent()->color() == color()) { + // FIXME: the rect will be drawn over the children. Instead, change the + // draw function for the FL_FLAT_BOX boxtype only while the group is drawn. Fl_Group::draw(); fl_rect(x(), y(), w(), h(), Fl::box_color(fl_color_average(FL_FOREGROUND_COLOR, color(), .1f))); } else { @@ -515,6 +517,10 @@ void Fl_Flex_Type::insert_child_at(Fl_Widget *child, int x, int y) { } } +/** Move children around using the keyboard. + \param[in] child pointer to the child type + \param[in] key code of the last keypress when handling a FL_KEYBOARD event. + */ void Fl_Flex_Type::keyboard_move_child(Fl_Widget_Type *child, int key) { Fl_Flex *flex = ((Fl_Flex*)o); int ix = flex->find(child->o); -- cgit v1.2.3