Skip to content

Commit

Permalink
Starting to consolidate all bits used in Fl_Widget::flags_
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6904 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Matthias Melcher committed Sep 27, 2009
1 parent bc063e3 commit a735162
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
2 changes: 0 additions & 2 deletions FL/Fl_Group.H
Expand Up @@ -58,8 +58,6 @@ class FL_EXPORT Fl_Group : public Fl_Widget {
Fl_Group& operator=(const Fl_Group&);

protected:
enum { CLIP_CHILDREN = 2048 };

void draw();
void draw_child(Fl_Widget& widget) const;
void draw_children();
Expand Down
17 changes: 9 additions & 8 deletions FL/Fl_Widget.H
Expand Up @@ -144,14 +144,15 @@ 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
};
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)
};
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;
Expand Down
8 changes: 4 additions & 4 deletions src/Fl_Menu_.cxx
Expand Up @@ -172,11 +172,11 @@ void Fl_Menu_Item::setonly() {
}
}

Fl_Menu_::Fl_Menu_(int X,int Y,int W,int H,const char* l)
/**
Creates a new Fl_Menu_ widget using the given position, size,
and label string. menu() is initialized to null.
*/
Creates a new Fl_Menu_ widget using the given position, size,
and label string. menu() is initialized to null.
*/
Fl_Menu_::Fl_Menu_(int X,int Y,int W,int H,const char* l)
: Fl_Widget(X,Y,W,H,l) {
set_flag(SHORTCUT_LABEL);
box(FL_UP_BOX);
Expand Down
3 changes: 1 addition & 2 deletions src/Fl_Window.cxx
Expand Up @@ -151,8 +151,7 @@ void Fl_Window::copy_label(const char *a) {


void Fl_Window::iconlabel(const char *iname) {
// FIXME: 'flags' is 32 bit large!
uchar saveflags = flags();
unsigned saveflags = flags();
label(label(), iname);
set_flag(saveflags);
}
Expand Down

0 comments on commit a735162

Please sign in to comment.