From c26809e0eac281e5ebd914773417c6ae09fbb3f0 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 27 Sep 2009 12:06:35 +0000 Subject: Consolidated all possible flag values into a single enum in Fl_Widget (STR #2161) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6905 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Widget.H | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'FL/Fl_Widget.H') diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index 1da113787..0eb8e2c8a 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -144,14 +144,21 @@ protected: See activate(), output(), visible(), changed(), set_visible_focus() */ enum { - INACTIVE=1, ///< the widget can't receive focus, and is disabled but potentially visible - INVISIBLE=2, ///< the widget is not drawn but can receive events - OUTPUT=4, ///< for output only - SHORTCUT_LABEL=64, ///< the label contains a shortcut we need to draw - CHANGED=128, ///< the widget value changed - VISIBLE_FOCUS=512, ///< accepts keyboard focus navigation if the widget can have the focus - COPIED_LABEL=1024, ///< the widget label is internally copied, its destruction is handled by the widget - CLIP_CHILDREN = 2048 ///< all drawing within this widget will be clipped (Fl_Group) + INACTIVE = 1, ///< the widget can't receive focus, and is disabled but potentially visible + INVISIBLE, ///< the widget is not drawn but can receive events + OUTPUT, ///< for output only + NOBORDER, ///< don't draw a decoration (Fl_Window) + FORCE_POSITION, ///< don't let the window manager position thi window (Fl_Window) + NON_MODAL, ///< thisis a hovering toolbar window (Fl_Window) + SHORTCUT_LABEL, ///< the label contains a shortcut we need to draw + CHANGED, ///< the widget value changed + OVERRIDE, ///< position window on top (Fl_Window) + VISIBLE_FOCUS, ///< accepts keyboard focus navigation if the widget can have the focus + COPIED_LABEL, ///< the widget label is internally copied, its destruction is handled by the widget + CLIP_CHILDREN, ///< all drawing within this widget will be clipped (Fl_Group) + MENU_WINDOW, ///< a temporary popup window, dismissed by clicking outside (Fl_Window) + TOOLTIP_WINDOW, ///< a temporary popup, transparent to events, and dismissed easily (Fl_Window) + MODAL, ///< a window blocking input to all other winows (Fl_Window) }; void draw_box() const; void draw_box(Fl_Boxtype t, Fl_Color c) const; -- cgit v1.2.3