mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
New Fl_Widget::redraw_label() method to cleanly redraw the label of a
widget (this should eliminate the extra flicker some users have complained about...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+4
-3
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Widget.H,v 1.6.2.4.2.18 2002/08/14 17:05:38 easysw Exp $"
|
||||
// "$Id: Fl_Widget.H,v 1.6.2.4.2.19 2002/10/04 15:59:28 easysw Exp $"
|
||||
//
|
||||
// Widget header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -131,7 +131,7 @@ public:
|
||||
void selection_color(unsigned a) {color2_ = a;}
|
||||
void color(unsigned a, unsigned b) {color_=a; color2_=b;}
|
||||
const char* label() const {return label_.value;}
|
||||
void label(const char* a) {label_.value=a;}
|
||||
void label(const char* a) {label_.value=a; redraw_label();}
|
||||
void label(Fl_Labeltype a,const char* b) {label_.type = a; label_.value = b;}
|
||||
Fl_Labeltype labeltype() const {return (Fl_Labeltype)label_.type;}
|
||||
void labeltype(Fl_Labeltype a) {label_.type = a;}
|
||||
@@ -194,6 +194,7 @@ public:
|
||||
int inside(const Fl_Widget* o) const {return o ? o->contains(this) : 0;}
|
||||
|
||||
void redraw();
|
||||
void redraw_label();
|
||||
uchar damage() const {return damage_;}
|
||||
void clear_damage(uchar c = 0) {damage_ = c;}
|
||||
void damage(uchar c);
|
||||
@@ -216,5 +217,5 @@ public:
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Widget.H,v 1.6.2.4.2.18 2002/08/14 17:05:38 easysw Exp $".
|
||||
// End of "$Id: Fl_Widget.H,v 1.6.2.4.2.19 2002/10/04 15:59:28 easysw Exp $".
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user