~ubuntu-branches/ubuntu/karmic/fltk1.1/karmic

« back to all changes in this revision

Viewing changes to FL/Fl_Widget.H

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-05-22 13:57:06 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050522135706-mchag24yf42lu7bu
Tags: 1.1.6-5
* Revert previous change, which seems to have been ineffective for some
  reason, in favor of commenting out the problematic Makefile rule
  altogether.  (Closes: #310151.)
* debian/control: Go back to specifying the URL as part of the
  description rather than via a non-standard field that doesn't seem to
  have caught on.  (Closes: #310240.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// "$Id: Fl_Widget.H,v 1.6.2.4.2.23 2004/04/11 04:38:54 easysw Exp $"
 
2
// "$Id: Fl_Widget.H,v 1.6.2.4.2.26 2004/11/23 19:47:50 easysw Exp $"
3
3
//
4
4
// Widget header file for the Fast Light Tool Kit (FLTK).
5
5
//
81
81
 
82
82
  Fl_Widget(int,int,int,int,const char* =0);
83
83
 
84
 
  void x(int v) {x_ = v;}
85
 
  void y(int v) {y_ = v;}
86
 
  void w(int v) {w_ = v;}
87
 
  void h(int v) {h_ = v;}
 
84
  void x(int v) {x_ = (short)v;}
 
85
  void y(int v) {y_ = (short)v;}
 
86
  void w(int v) {w_ = (short)v;}
 
87
  void h(int v) {h_ = (short)v;}
88
88
 
89
89
  int flags() const {return flags_;}
90
90
  void set_flag(int c) {flags_ |= c;}
91
91
  void clear_flag(int c) {flags_ &= ~c;}
92
92
  enum {INACTIVE=1, INVISIBLE=2, OUTPUT=4, SHORTCUT_LABEL=64,
93
 
        CHANGED=128, VISIBLE_FOCUS=512};
 
93
        CHANGED=128, VISIBLE_FOCUS=512, COPIED_LABEL = 1024};
94
94
 
95
95
  void draw_box() const;
96
96
  void draw_box(Fl_Boxtype, Fl_Color) const;
131
131
  void selection_color(unsigned a) {color2_ = a;}
132
132
  void color(unsigned a, unsigned b) {color_=a; color2_=b;}
133
133
  const char* label() const {return label_.value;}
134
 
  void label(const char* a) {label_.value=a; redraw_label();}
 
134
  void label(const char* a);
 
135
  void copy_label(const char* a);
135
136
  void label(Fl_Labeltype a,const char* b) {label_.type = a; label_.value = b;}
136
137
  Fl_Labeltype labeltype() const {return (Fl_Labeltype)label_.type;}
137
138
  void labeltype(Fl_Labeltype a) {label_.type = a;}
185
186
  int  visible_focus() { return flags_ & VISIBLE_FOCUS; }
186
187
 
187
188
  static void default_callback(Fl_Widget*, void*);
188
 
  void do_callback() {callback_(this,user_data_);}
189
 
  void do_callback(Fl_Widget* o,void* arg=0) {callback_(o,arg);}
190
 
  void do_callback(Fl_Widget* o,long arg) {callback_(o,(void*)arg);}
 
189
  void do_callback() {callback_(this,user_data_); if (callback_ != default_callback) clear_changed();}
 
190
  void do_callback(Fl_Widget* o,void* arg=0) {callback_(o,arg); if (callback_ != default_callback) clear_changed();}
 
191
  void do_callback(Fl_Widget* o,long arg) {callback_(o,(void*)arg); if (callback_ != default_callback) clear_changed();}
191
192
  int test_shortcut();
192
193
  static int test_shortcut(const char*);
193
194
  int contains(const Fl_Widget*) const ;
217
218
#endif
218
219
 
219
220
//
220
 
// End of "$Id: Fl_Widget.H,v 1.6.2.4.2.23 2004/04/11 04:38:54 easysw Exp $".
 
221
// End of "$Id: Fl_Widget.H,v 1.6.2.4.2.26 2004/11/23 19:47:50 easysw Exp $".
221
222
//