fltk
1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
![]() ![]() |
#include <Fl_Group.H>
Static Public Member Functions | |
static Fl_Group * | current () |
static void | current (Fl_Group *g) |
![]() | |
static void | default_callback (Fl_Widget *cb, void *d) |
static unsigned int | label_shortcut (const char *t) |
static int | test_shortcut (const char *, const bool require_alt=false) |
Protected Member Functions | |
void | draw () |
void | draw_child (Fl_Widget &widget) const |
void | draw_children () |
void | draw_outside_label (const Fl_Widget &widget) const |
void | update_child (Fl_Widget &widget) const |
int * | sizes () |
![]() | |
Fl_Widget (int x, int y, int w, int h, const char *label=0L) | |
void | x (int v) |
void | y (int v) |
void | w (int v) |
void | h (int v) |
unsigned int | flags () const |
void | set_flag (unsigned int c) |
void | clear_flag (unsigned int c) |
void | draw_box () const |
void | draw_box (Fl_Boxtype t, Fl_Color c) const |
void | draw_box (Fl_Boxtype t, int x, int y, int w, int h, Fl_Color c) const |
void | draw_backdrop () const |
void | draw_focus () |
void | draw_focus (Fl_Boxtype t, int x, int y, int w, int h) const |
void | draw_label () const |
void | draw_label (int, int, int, int) const |
Private Member Functions | |
int | navigation (int) |
Fl_Group (const Fl_Group &) | |
Fl_Group & | operator= (const Fl_Group &) |
Private Attributes | |
Fl_Widget ** | array_ |
Fl_Widget * | savedfocus_ |
Fl_Widget * | resizable_ |
int | children_ |
int * | sizes_ |
Static Private Attributes | |
static Fl_Group * | current_ |
Additional Inherited Members | |
![]() | |
enum | { INACTIVE = 1<<0, INVISIBLE = 1<<1, OUTPUT = 1<<2, NOBORDER = 1<<3, FORCE_POSITION = 1<<4, NON_MODAL = 1<<5, SHORTCUT_LABEL = 1<<6, CHANGED = 1<<7, OVERRIDE = 1<<8, VISIBLE_FOCUS = 1<<9, COPIED_LABEL = 1<<10, CLIP_CHILDREN = 1<<11, MENU_WINDOW = 1<<12, TOOLTIP_WINDOW = 1<<13, MODAL = 1<<14, NO_OVERLAY = 1<<15, GROUP_RELATIVE = 1<<16, COPIED_TOOLTIP = 1<<17, FULLSCREEN = 1<<18, MAC_USE_ACCENTS_MENU = 1<<19, USERFLAG3 = 1<<29, USERFLAG2 = 1<<30, USERFLAG1 = 1<<31 } |
The Fl_Group class is the FLTK container widget. It maintains an array of child widgets. These children can themselves be any widget including Fl_Group. The most important subclass of Fl_Group is Fl_Window, however groups can also be used to control radio buttons or to enforce resize behavior.
The tab and arrow keys are used to move the focus between widgets of this group, and to other groups. The only modifier grabbed is shift (for shift-tab), so that ctrl-tab, alt-up, and such are free for the app to use as shortcuts.
Definition at line 41 of file Fl_Group.H.
Fl_Group::Fl_Group | ( | int | X, |
int | Y, | ||
int | W, | ||
int | H, | ||
const char * | l = 0 |
||
) |
Creates a new Fl_Group widget using the given position, size, and label string. The default boxtype is FL_NO_BOX.
Definition at line 363 of file Fl_Group.cxx.
References Fl_Widget::align(), array_, begin(), children_, FL_ALIGN_TOP, resizable_, savedfocus_, and sizes_.
|
virtual |
The destructor also deletes all the children. This allows a whole tree to be deleted at once, without having to keep a pointer to all the children in the user code.
It is allowed that the Fl_Group and all of its children are automatic (local) variables, but you must declare the Fl_Group first, so that it is destroyed last.
If you add static or automatic (local) variables to an Fl_Group, then it is your responsibility to remove (or delete) all such static or automatic child widgets before destroying the group - otherwise the child widgets' destructors would be called twice!
Definition at line 448 of file Fl_Group.cxx.
References clear().
|
inline |
This is for forms compatibility only
Definition at line 191 of file Fl_Group.H.
void Fl_Group::add | ( | Fl_Widget & | o | ) |
The widget is removed from its current group (if any) and then added to the end of this group.
Definition at line 491 of file Fl_Group.cxx.
References children_, and insert().
Referenced by Fl_File_Chooser::add_extra(), Fl_Scroll::clear(), Fl_Widget::Fl_Widget(), live_mode_cb(), Fl_Widget_Class_Type::make(), and makeform().
|
inline |
See void Fl_Group::add(Fl_Widget &w)
Definition at line 98 of file Fl_Group.H.
References add().
Referenced by add().
|
inline |
Adds a widget to the group and makes it the resizable widget.
Definition at line 156 of file Fl_Group.H.
Returns a pointer to the array of children. This pointer is only valid until the next time a child is added or removed.
Definition at line 44 of file Fl_Group.cxx.
References array_, and children_.
Referenced by clear(), Fl_Pack::draw(), Fl_Scroll::draw(), Fl_Tabs::draw(), draw_children(), Fl_Scroll::draw_clip(), find(), Fl_Scroll::fix_scrollbar_order(), Fl_Tree::fix_scrollbar_order(), forms_end(), Fl_Tile::handle(), handle(), Fl_Wizard::next(), Fl_Tile::position(), Fl_Wizard::prev(), propagate_load(), Fl_Scroll::recalc_scrollbars(), Fl_Tile::resize(), resize(), Fl_Scroll::resize(), Fl_Scroll::scroll_to(), set_cb(), Fl_Button::setonly(), sizes(), Fl_Tabs::tab_height(), Fl_Tabs::tab_positions(), Fl_Wizard::value(), and Fl_Tabs::value().
|
inlinevirtual |
Returns an Fl_Group pointer if this widget is an Fl_Group.
Use this method if you have a widget (pointer) and need to know whether this widget is derived from Fl_Group. If it returns non-NULL, then the widget in question is derived from Fl_Group, and you can use the returned pointer to access its children or other Fl_Group-specific methods.
Example:
NULL | if this widget is not derived from Fl_Group. |
Reimplemented from Fl_Widget.
Definition at line 179 of file Fl_Group.H.
void Fl_Group::begin | ( | ) |
Sets the current group so you can build the widget tree by just constructing the widgets.
begin() is automatically called by the constructor for Fl_Group (and thus for Fl_Window as well). begin() is exactly the same as current(this). Don't forget to end() the group or window!
Definition at line 69 of file Fl_Group.cxx.
References current_.
Referenced by Fl_Group(), Fl_Table::Fl_Table(), makeform(), and read_fdesign().
|
inline |
Returns array()[n]. No range checking is done!
Definition at line 79 of file Fl_Group.H.
References array.
Referenced by clear(), Fl_Tabs::client_area(), Fl_Pack::draw(), Fl_Tabs::handle(), relative(), remove(), toggle_sourceview_cb(), Fl_Paged_Device::traverse(), traverse_to_gl_subwindows(), and Fl_Tabs::which().
|
inline |
Returns how many child widgets the group has.
Definition at line 75 of file Fl_Group.H.
Referenced by Fl_Tabs::client_area(), Fl_Pack::draw(), Fl_Scroll::draw(), Fl_Tabs::draw(), Fl_Scroll::draw_clip(), Fl_Scroll::fix_scrollbar_order(), Fl_Tree::fix_scrollbar_order(), forms_end(), Fl_Tile::handle(), handle(), Fl_Tabs::handle(), Fl_Table::is_fltk_container(), navigation(), Fl_Wizard::next(), Fl_Tile::position(), Fl_Wizard::prev(), propagate_load(), Fl_Scroll::recalc_scrollbars(), Fl_Tile::resize(), Fl_Scroll::resize(), Fl_Scroll::scroll_to(), set_cb(), Fl_Button::setonly(), Fl_Tabs::tab_height(), Fl_Tabs::tab_positions(), Fl_Paged_Device::traverse(), traverse_to_gl_subwindows(), Fl_Wizard::value(), Fl_Tabs::value(), and Fl_Tabs::which().
void Fl_Group::clear | ( | ) |
Deletes all child widgets from memory recursively.
This method differs from the remove() method in that it affects all child widgets and deletes them from memory.
Definition at line 383 of file Fl_Group.cxx.
References array(), child(), children_, Fl_Widget::contains(), init_sizes(), Fl::pushed(), remove(), resizable_, savedfocus_, and Fl_Widget::w().
Referenced by Fl_Scroll::clear(), Fl_Browser::~Fl_Browser(), Fl_Check_Browser::~Fl_Check_Browser(), and ~Fl_Group().
|
inline |
Returns the current clipping mode.
Definition at line 176 of file Fl_Group.H.
References Fl_Widget::flags().
Referenced by draw_children().
|
inline |
Controls whether the group widget clips the drawing of child widgets to its bounding box.
Set c
to 1 if you want to clip the child widgets to the bounding box.
The default is to not clip (0) the drawing of child widgets.
Definition at line 168 of file Fl_Group.H.
References Fl_Widget::clear_flag(), and Fl_Widget::set_flag().
|
static |
Returns the currently active group.
The Fl_Widget constructor automatically does current()->add(widget) if this is not null. To prevent new widgets from being added to a group, call Fl_Group::current(0).
Definition at line 84 of file Fl_Group.cxx.
References current_.
Referenced by Fl_Table::end(), Fl_End::Fl_End(), fl_end_form(), fl_end_group(), Fl_File_Chooser::Fl_File_Chooser(), Fl_Help_Dialog::Fl_Help_Dialog(), Fl_Widget::Fl_Widget(), igroup::igroup(), innards(), live_mode_cb(), Fl_Window_Type::make(), Fl_Widget_Class_Type::make(), make_class_panel(), make_code_panel(), make_codeblock_panel(), make_comment_panel(), make_data_panel(), make_decl_panel(), make_declblock_panel(), make_function_panel(), make_settings_window(), make_shell_window(), make_sourceview(), make_template_panel(), make_widget_panel(), makeform(), Overlay_Window::Overlay_Window(), Fl_Menu_Item::pulldown(), read_fdesign(), CodeEditor::style_parse(), Fl_Group_Type::widget(), Fl_Tabs_Type::widget(), and Fl_Wizard_Type::widget().
|
static |
Sets the current group.
Definition at line 90 of file Fl_Group.cxx.
References current_.
|
protectedvirtual |
Draws the widget. Never call this function directly. FLTK will schedule redrawing whenever needed. If your widget must be redrawn as soon as possible, call redraw() instead.
Override this function to draw your own widgets.
If you ever need to call another widget's draw method from within your own draw() method, e.g. for an embedded scrollbar, you can do it (because draw() is virtual) like this:
Implements Fl_Widget.
Reimplemented in Fl_Table, Fl_Tree, Fl_Text_Display, Overlay_Window, Fl_Help_View, Fl_Tabs, Fl_Window, Fl_Scroll, menuwindow, menutitle, CodeViewer, Fl_TooltipBox, Fl_Pack, Fl_Glut_Window, Fl_Wizard, and ColorMenu.
Definition at line 738 of file Fl_Group.cxx.
References Fl_Widget::damage(), Fl_Widget::draw_box(), draw_children(), Fl_Widget::draw_label(), and FL_DAMAGE_CHILD.
Referenced by Fl_Table::draw().
|
protected |
Forces a child to redraw.
This draws a child widget, if it is not clipped. The damage bits are cleared after drawing.
Definition at line 768 of file Fl_Group.cxx.
References Fl_Widget::clear_damage(), Fl_Widget::draw(), FL_DAMAGE_ALL, fl_not_clipped(), FL_WINDOW, Fl_Widget::h(), Fl_Widget::type(), Fl_Widget::visible(), Fl_Widget::w(), Fl_Widget::x(), and Fl_Widget::y().
Referenced by Fl_Wizard::draw(), Fl_Pack::draw(), Fl_Scroll::draw(), Fl_Browser_::draw(), Fl_Tabs::draw(), Fl_Help_View::draw(), draw_children(), Fl_Scroll::draw_clip(), and Fl_Tree::draw_tree().
|
protected |
Draws all children of the group.
This is useful, if you derived a widget from Fl_Group and want to draw a special border or background. You can call draw_children() from the derived draw() method after drawing the box, border, or background.
Definition at line 715 of file Fl_Group.cxx.
References array(), Fl_Widget::box(), Fl::box_dh(), Fl::box_dw(), Fl::box_dx(), Fl::box_dy(), children_, clip_children(), Fl_Widget::damage(), draw_child(), draw_outside_label(), FL_DAMAGE_CHILD, fl_pop_clip(), fl_push_clip(), Fl_Widget::h(), update_child(), Fl_Widget::w(), Fl_Widget::x(), and Fl_Widget::y().
Referenced by draw(), and Fl_Window::draw().
Parents normally call this to draw outside labels of child widgets.
Definition at line 780 of file Fl_Group.cxx.
References Fl_Widget::align(), Fl_Widget::as_window(), Fl_Widget::draw_label(), FL_ALIGN_BOTTOM, FL_ALIGN_BOTTOM_LEFT, FL_ALIGN_BOTTOM_RIGHT, FL_ALIGN_INSIDE, FL_ALIGN_LEFT, FL_ALIGN_LEFT_BOTTOM, FL_ALIGN_LEFT_TOP, FL_ALIGN_RIGHT, FL_ALIGN_RIGHT_BOTTOM, FL_ALIGN_RIGHT_TOP, FL_ALIGN_TOP, FL_ALIGN_TOP_LEFT, FL_ALIGN_TOP_RIGHT, H, Fl_Widget::h(), Fl_Widget::visible(), Fl_Widget::w(), Fl_Widget::x(), Y, and Fl_Widget::y().
Referenced by Fl_Pack::draw(), draw_children(), and Fl_Scroll::draw_clip().
void Fl_Group::end | ( | ) |
Exactly the same as current(this->parent()). Any new widgets added to the widget tree will be added to the parent of the group.
Definition at line 75 of file Fl_Group.cxx.
References current_, and Fl_Widget::parent().
Referenced by Fl_Text_Display::draw(), Fl_Group_Type::enter_live_mode(), Fl_Table_Type::enter_live_mode(), Fl_Tabs_Type::enter_live_mode(), Fl_Scroll_Type::enter_live_mode(), Fl_Window_Type::enter_live_mode(), Fl_Help_View::find(), Fl_Browser_::Fl_Browser_(), Fl_Color_Chooser::Fl_Color_Chooser(), Fl_Color_Chooser::fl_color_chooser(), Fl_End::Fl_End(), Fl_File_Chooser::Fl_File_Chooser(), Fl_Help_Dialog::Fl_Help_Dialog(), Fl_Help_View::Fl_Help_View(), Fl_Input_Choice::Fl_Input_Choice(), Fl_Spinner::Fl_Spinner(), Fl_Table::Fl_Table(), Fl_Text_Display::Fl_Text_Display(), Fl_TooltipBox::Fl_TooltipBox(), Fl_Tree::Fl_Tree(), forms_end(), Fl_Text_Display::handle(), live_mode_cb(), make_about_panel(), make_class_panel(), make_code_panel(), make_codeblock_panel(), make_comment_panel(), make_data_panel(), make_decl_panel(), make_declblock_panel(), make_function_panel(), make_global_settings_window(), make_layout_window(), make_main_window(), make_print_panel(), make_project_window(), make_settings_window(), make_shell_window(), make_sourceview(), make_template_panel(), make_widget_panel(), make_widgetbin(), makeform(), menutitle::menutitle(), menuwindow::menuwindow(), and CodeEditor::style_update().
See int Fl_Group::find(const Fl_Widget *w) const
Definition at line 84 of file Fl_Group.H.
References find().
Referenced by find().
Searches the child array for the widget and returns the index. Returns children() if the widget is NULL or not found.
Definition at line 52 of file Fl_Group.cxx.
References array(), and children_.
Referenced by exit_cb(), insert(), relative(), and remove().
|
inline |
Definition at line 188 of file Fl_Group.H.
References Fl_Widget::take_focus().
void Fl_Group::forms_end | ( | ) |
This is for forms compatibility only
Definition at line 29 of file forms_compatability.cxx.
References array(), children(), children_, end(), fl_flip, FL_WINDOW, Fl_Widget::h(), Fl_Widget::type(), Fl_Widget::w(), Fl_Widget::window(), Fl_Widget::x(), Y, and Fl_Widget::y().
Referenced by fl_end_form(), fl_end_group(), and read_fdesign().
|
virtual |
Handles the specified event. You normally don't call this method directly, but instead let FLTK do it when the user interacts with the widget.
When implemented in a widget, this function must return 0 if the widget does not use the event or 1 otherwise.
Most of the time, you want to call the inherited handle() method in your overridden method so that you don't short-circuit events that you don't handle. In this last case you should return the callee retval.
[in] | event | the kind of event received |
0 | if the event was not used or understood |
1 | if the event was used and can be deleted |
Reimplemented from Fl_Widget.
Reimplemented in Overlay_Window, Fl_Help_View, Fl_Window, Widget_Browser, Fl_Tabs, Fl_Scroll, menuwindow, Fl_Glut_Window, ColorMenu, Fl_Spinner, Fl_Table_Row, Fl_Tile, CodeViewer, Fl_Tree, Fl_Table, Fl_Text_Display, Fl_TooltipBox, and Fl_Text_Editor.
Definition at line 147 of file Fl_Group.cxx.
References Fl_Widget::active(), array(), Fl::belowmouse(), children(), Fl_Widget::contains(), Fl::e_number, Fl::event_inside(), Fl::event_key(), Fl_Widget_Tracker::exists(), FL_ACTIVATE, FL_DEACTIVATE, FL_DND_DRAG, FL_DND_ENTER, FL_Down, FL_DRAG, FL_ENTER, FL_Enter, FL_FOCUS, FL_HIDE, FL_KEYBOARD, FL_KP_Enter, FL_Left, FL_MOUSEWHEEL, FL_MOVE, fl_oldfocus, FL_PUSH, FL_RELEASE, FL_Right, FL_SHORTCUT, FL_SHOW, FL_UNFOCUS, FL_Up, Fl::focus(), Fl::focus_, Fl_Widget::handle(), navigation(), navkey(), Fl::pushed(), savedfocus_, send(), Fl_Widget::take_focus(), Fl_Widget::takesevents(), and Fl_Widget::visible().
Referenced by Fl_Tile::handle(), Fl_Text_Editor::handle(), Fl_Spinner::handle(), Fl_Scroll::handle(), Fl_Text_Display::handle(), Fl_Browser_::handle(), Fl_Tabs::handle(), Fl_Window::handle(), Fl_Help_View::handle(), Fl_Table::handle(), and Fl_Tree::handle().
void Fl_Group::init_sizes | ( | ) |
Resets the internal array of widget sizes and positions.
The Fl_Group widget keeps track of the original widget sizes and positions when resizing occurs so that if you resize a window back to its original size the widgets will be in the correct places. If you rearrange the widgets in your group, call this method to register the new arrangement with the Fl_Group that contains them.
If you add or remove widgets, this will be done automatically.
Definition at line 572 of file Fl_Group.cxx.
References sizes_.
Referenced by clear(), Fl_Help_View::draw(), insert(), Fl_File_Chooser::ok_label(), Fl_Table::recalc_dimensions(), remove(), Fl_Tree::resize(), and Fl_Table::table_resized().
void Fl_Group::insert | ( | Fl_Widget & | o, |
int | index | ||
) |
The widget is removed from its current group (if any) and then inserted into this group. It is put at index n - or at the end, if n >= children(). This can also be used to rearrange the widgets inside a group.
Definition at line 458 of file Fl_Group.cxx.
References array_, children_, find(), init_sizes(), malloc(), Fl_Widget::parent(), Fl_Widget::parent_, and remove().
Referenced by add().
This does insert(w, find(before)). This will append the widget if before
is not in the group.
Definition at line 104 of file Fl_Group.H.
References find(), and insert().
Referenced by insert().
|
private |
Definition at line 318 of file Fl_Group.cxx.
References array_, children(), children_, Fl_Widget::contains(), FL_Down, FL_Left, FL_Right, FL_Up, Fl::focus(), key, Fl_Widget::parent(), Fl_Widget::take_focus(), Fl_Widget::w(), and Fl_Widget::x().
Referenced by handle().
void Fl_Group::remove | ( | Fl_Widget & | o | ) |
Removes a widget from the group but does not delete it.
This method does nothing if the widget is not a child of the group.
This method differs from the clear() method in that it only affects a single widget and does not delete it from memory.
Definition at line 537 of file Fl_Group.cxx.
|
inline |
Removes the widget o
from the group.
Definition at line 111 of file Fl_Group.H.
References remove().
Referenced by remove().
void Fl_Group::remove | ( | int | index | ) |
Removes the widget at index
from the group but does not delete it.
This method does nothing if index
is out of bounds.
This method differs from the clear() method in that it only affects a single widget and does not delete it from memory.
Definition at line 503 of file Fl_Group.cxx.
References array_, child(), children_, free(), init_sizes(), Fl_Widget::parent_, and savedfocus_.
Referenced by Fl_File_Chooser::add_extra(), clear(), Fl_Scroll::clear(), fl_delete_object(), Fl_Value_Input::Fl_Value_Input(), insert(), remove(), Fl_File_Chooser::~Fl_File_Chooser(), and Fl_Widget::~Fl_Widget().
|
inline |
See void Fl_Group::resizable(Fl_Widget *box)
Definition at line 152 of file Fl_Group.H.
Referenced by Fl_Window::_Fl_Window(), Fl_Pack::draw(), Fl_Window::draw(), Fl_Color_Chooser::Fl_Color_Chooser(), Fl_Pack::Fl_Pack(), Fl_Tile::handle(), Fl_Tile::position(), resize(), Fl_Window::resize(), Overlay_Window::resize(), Fl_Window::show(), and sizes().
|
inline |
See void Fl_Group::resizable(Fl_Widget *box)
Definition at line 117 of file Fl_Group.H.
Referenced by Fl_File_Chooser::add_extra(), Fl_Widget_Type::copy_properties(), Fl_Color_Chooser::fl_color_chooser(), Fl_File_Chooser::Fl_File_Chooser(), Fl_Help_Dialog::Fl_Help_Dialog(), live_mode_cb(), make_class_panel(), make_code_panel(), make_codeblock_panel(), make_comment_panel(), make_data_panel(), make_decl_panel(), make_declblock_panel(), make_function_panel(), make_main_window(), make_settings_window(), make_shell_window(), make_sourceview(), make_template_panel(), make_widget_panel(), makeform(), and Fl_Window_Type::open().
|
inline |
The resizable widget defines the resizing box for the group. When the group is resized it calculates a new size and position for all of its children. Widgets that are horizontally or vertically inside the dimensions of the box are scaled to the new size. Widgets outside the box are moved.
In these examples the gray area is the resizable:
The resizable may be set to the group itself, in which case all the contents are resized. This is the default value for Fl_Group, although NULL is the default for Fl_Window and Fl_Pack.
If the resizable is NULL then all widgets remain a fixed size and distance from the top-left corner.
It is possible to achieve any type of resize behavior by using an invisible Fl_Box as the resizable and/or by using a hierarchy of child Fl_Group's.
Definition at line 148 of file Fl_Group.H.
|
virtual |
Resizes the Fl_Group widget and all of its children.
The Fl_Group widget first resizes itself, and then it moves and resizes all its children according to the rules documented for Fl_Group::resizable(Fl_Widget*)
Reimplemented from Fl_Widget.
Reimplemented in iwizard, itabs, igroup, Fl_Tree, Fl_Help_View, Overlay_Window, Fl_Overlay_Window, Fl_Table, Fl_Text_Display, Fl_Window, Fl_Input_Choice, Fl_Spinner, Fl_Scroll, and Fl_Tile.
Definition at line 634 of file Fl_Group.cxx.
References array(), children_, dh, dw, dx, dy, FL_WINDOW, H, Fl_Widget::h(), p, resizable(), Fl_Widget::resize(), sizes(), Fl_Widget::type(), Fl_Widget::w(), Fl_Widget::x(), Y, and Fl_Widget::y().
Referenced by Fl_Color_Chooser::Fl_Color_Chooser(), igroup::full_resize(), itabs::full_resize(), iwizard::full_resize(), Fl_Widget::position(), Fl_Spinner::resize(), Fl_Input_Choice::resize(), Fl_Window::resize(), Fl_Tree::resize(), Fl_Table::resize(), and Fl_Widget::size().
|
protected |
Returns the internal array of widget sizes and positions.
If the sizes() array does not exist, it will be allocated and filled with the current widget sizes and positions.
Definition at line 590 of file Fl_Group.cxx.
References array(), children_, FL_WINDOW, Fl_Widget::h(), p, resizable(), sizes_, Fl_Widget::type(), Fl_Widget::w(), Fl_Widget::x(), and Fl_Widget::y().
Referenced by Fl_Tile::handle(), Fl_Tile::position(), Fl_Tile::resize(), and resize().
|
protected |
Draws a child only if it needs it.
This draws a child widget, if it is not clipped and if any damage() bits are set. The damage bits are cleared after drawing.
Definition at line 754 of file Fl_Group.cxx.
References Fl_Widget::clear_damage(), Fl_Widget::damage(), Fl_Widget::draw(), fl_not_clipped(), FL_WINDOW, Fl_Widget::h(), Fl_Widget::type(), Fl_Widget::visible(), Fl_Widget::w(), Fl_Widget::x(), and Fl_Widget::y().
Referenced by Fl_Wizard::draw(), Fl_Pack::draw(), Fl_Scroll::draw(), Fl_Browser_::draw(), Fl_Tabs::draw(), Fl_Text_Display::draw(), and draw_children().
|
private |
Definition at line 43 of file Fl_Group.H.
Referenced by array(), Fl_Group(), insert(), navigation(), and remove().
|
private |
Definition at line 46 of file Fl_Group.H.
Referenced by add(), array(), clear(), draw_children(), find(), Fl_Group(), forms_end(), insert(), navigation(), remove(), resize(), and sizes().
|
staticprivate |
Definition at line 50 of file Fl_Group.H.
|
private |
Definition at line 45 of file Fl_Group.H.
Referenced by clear(), and Fl_Group().
|
private |
Definition at line 44 of file Fl_Group.H.
Referenced by clear(), Fl_Group(), handle(), and remove().
|
private |
Definition at line 47 of file Fl_Group.H.
Referenced by Fl_Group(), init_sizes(), and sizes().