Author: matt
Date: 2011-07-12 13:46:15 -0700 (Tue, 12 Jul 2011)
New Revision: 8855
Log:
123: a new setup in the wrapper code allows the removal of prettyr much all
FLTK1 code from the FLTK3 tree! Yay!
Modified:
branches/branch-3.0/FL/Fl_Widget.H
branches/branch-3.0/FL/x.H
branches/branch-3.0/fltk3/Widget.h
branches/branch-3.0/src/Fl_Widget.cxx
Modified: branches/branch-3.0/FL/Fl_Widget.H
===================================================================
--- branches/branch-3.0/FL/Fl_Widget.H 2011-07-12 17:17:55 UTC (rev 8854)
+++ branches/branch-3.0/FL/Fl_Widget.H 2011-07-12 20:46:15 UTC (rev 8855)
@@ -75,7 +75,37 @@
};
#endif
+class Fl_Widget;
+namespace fltk3 {
+ class Widget_W : public Widget {
+ friend class ::Fl_Widget;
+ public:
+ Widget_W(int x, int y, int w, int h, const char *l)
+ : Widget(x, y, w, h, l) { }
+ void show() {
+ FLTK3_OBJECT_VCALLS_WRAPPER(show(), Show)
+ Widget::show();
+ }
+ void hide() {
+ FLTK3_OBJECT_VCALLS_WRAPPER(hide(), Hide)
+ Widget::hide();
+ }
+ void resize(int X, int Y, int W, int H) {
+ FLTK3_OBJECT_VCALLS_WRAPPER(resize(X, Y, W, H), Resize)
+ Widget::resize(X, Y, W, H);
+ }
+ void draw() {
+ FLTK3_OBJECT_VCALLS_WRAPPER(draw(), Draw)
+ Widget::draw();
+ }
+ int handle(int event) {
+ FLTK3_OBJECT_VCALLS_WRAPPER_RET(int, handle(event), Handle)
+ return Widget::handle(event);
+ }
+ };
+}
+
class FL_EXPORT Fl_Widget : public fltk3::WidgetWrapper {
friend class Fl_Group;
@@ -83,31 +113,31 @@
protected:
void x(int v) {
- ((fltk3::Widget*)_p)->x(v);
+ ((fltk3::Widget_W*)_p)->x(v);
}
void y(int v) {
- ((fltk3::Widget*)_p)->y(v);
+ ((fltk3::Widget_W*)_p)->y(v);
}
void w(int v) {
- ((fltk3::Widget*)_p)->w(v);
+ ((fltk3::Widget_W*)_p)->w(v);
}
void h(int v) {
- ((fltk3::Widget*)_p)->h(v);
+ ((fltk3::Widget_W*)_p)->h(v);
}
unsigned int flags() const {
- return ((fltk3::Widget*)_p)->flags();
+ return ((fltk3::Widget_W*)_p)->flags();
}
void set_flag(unsigned int c) {
- ((fltk3::Widget*)_p)->set_flag(c);
+ ((fltk3::Widget_W*)_p)->set_flag(c);
}
void clear_flag(unsigned int c) {
- ((fltk3::Widget*)_p)->clear_flag(c);
+ ((fltk3::Widget_W*)_p)->clear_flag(c);
}
enum {
@@ -135,35 +165,35 @@
};
void draw_box() const {
- ((fltk3::Widget*)_p)->draw_box();
+ ((fltk3::Widget_W*)_p)->draw_box();
}
void draw_box(Fl_Boxtype t, Fl_Color c) const {
- ((fltk3::Widget*)_p)->draw_box(fltk3::_1to3_boxtype(t),
fltk3::_1to3_color(c));
+ ((fltk3::Widget_W*)_p)->draw_box(fltk3::_1to3_boxtype(t),
fltk3::_1to3_color(c));
}
void draw_box(Fl_Boxtype t, int x,int y,int w,int h, Fl_Color c) const {
- ((fltk3::Widget*)_p)->draw_box(fltk3::_1to3_boxtype(t), x, y, w, h,
fltk3::_1to3_color(c));
+ ((fltk3::Widget_W*)_p)->draw_box(fltk3::_1to3_boxtype(t), x, y, w, h,
fltk3::_1to3_color(c));
}
void draw_backdrop() const {
- ((fltk3::Widget*)_p)->draw_backdrop();
+ ((fltk3::Widget_W*)_p)->draw_backdrop();
}
void draw_focus() {
- ((fltk3::Widget*)_p)->draw_focus();
+ ((fltk3::Widget_W*)_p)->draw_focus();
}
void draw_focus(Fl_Boxtype t, int x,int y,int w,int h) const {
- ((fltk3::Widget*)_p)->draw_focus(fltk3::_1to3_boxtype(t), x, y, w, h);
+ ((fltk3::Widget_W*)_p)->draw_focus(fltk3::_1to3_boxtype(t), x, y, w, h);
}
void draw_label() const {
- ((fltk3::Widget*)_p)->draw_label();
+ ((fltk3::Widget_W*)_p)->draw_label();
}
void draw_label(int x, int y, int w, int h) const {
- ((fltk3::Widget*)_p)->draw_label(x, y, w, h);
+ ((fltk3::Widget_W*)_p)->draw_label(x, y, w, h);
}
public:
@@ -171,7 +201,7 @@
Fl_Widget() { /*blank */ }
Fl_Widget(int x, int y, int w, int h, const char *label=0L) {
- _p = new fltk3::Widget(x, y, w, h, label);
+ _p = new fltk3::Widget_W(x, y, w, h, label);
_p->wrapper(this);
}
@@ -181,7 +211,7 @@
FLTK3_WRAPPER_VCALLS_OBJECT(Widget, show(), show(), Show)
- FLTK3_WRAPPER_VCALLS_OBJECT(Widget, draw(), draw(), Draw)
+ FLTK3_WRAPPER_VCALLS_OBJECT(Widget_W, draw(), draw(), Draw)
FLTK3_WRAPPER_VCALLS_OBJECT_RET(int, Widget, handle(int event),
handle(event), Handle)
@@ -192,378 +222,378 @@
virtual class Fl_Gl_Window* as_gl_window() {return 0;}
Fl_Group *parent() const {
- return fltk3::_3to1_group( ((fltk3::Widget*)_p)->parent() );
+ return fltk3::_3to1_group( ((fltk3::Widget_W*)_p)->parent() );
}
void parent(Fl_Group* p) {
- ((fltk3::Widget*)_p)->parent( ((fltk3::Group*)((Fl_Widget*)p)->_p) );
+ ((fltk3::Widget_W*)_p)->parent( ((fltk3::Group*)((Fl_Widget*)p)->_p) );
}
Fl_Window* window() const {
- return fltk3::_3to1_window( ((fltk3::Widget*)_p)->window() );
+ return fltk3::_3to1_window( ((fltk3::Widget_W*)_p)->window() );
}
uchar type() const {
- return ((fltk3::Widget*)_p)->type();
+ return ((fltk3::Widget_W*)_p)->type();
}
void type(uchar t) {
- ((fltk3::Widget*)_p)->type(t);
+ ((fltk3::Widget_W*)_p)->type(t);
}
int x() const {
- return ((fltk3::Widget*)_p)->x();
+ return ((fltk3::Widget_W*)_p)->x();
}
int y() const {
- return ((fltk3::Widget*)_p)->y();
+ return ((fltk3::Widget_W*)_p)->y();
}
int w() const {
- return ((fltk3::Widget*)_p)->w();
+ return ((fltk3::Widget_W*)_p)->w();
}
int h() const {
- return ((fltk3::Widget*)_p)->h();
+ return ((fltk3::Widget_W*)_p)->h();
}
int damage_resize(int,int,int,int);
void position(int x, int y) {
- ((fltk3::Widget*)_p)->position(x, y);;
+ ((fltk3::Widget_W*)_p)->position(x, y);;
}
void size(int w, int h) {
- ((fltk3::Widget*)_p)->size(w, h);;
+ ((fltk3::Widget_W*)_p)->size(w, h);;
}
Fl_Align align() const {
- return fltk3::_3to1_align(((fltk3::Widget*)_p)->align());
+ return fltk3::_3to1_align(((fltk3::Widget_W*)_p)->align());
}
void align(Fl_Align a) {
- ((fltk3::Widget*)_p)->align(fltk3::_1to3_align(a));
+ ((fltk3::Widget_W*)_p)->align(fltk3::_1to3_align(a));
}
Fl_Boxtype box() const {
- return fltk3::_3to1_boxtype(((fltk3::Widget*)_p)->box());
+ return fltk3::_3to1_boxtype(((fltk3::Widget_W*)_p)->box());
}
void box(Fl_Boxtype new_box) {
- ((fltk3::Widget*)_p)->box( fltk3::_1to3_boxtype(new_box) );
+ ((fltk3::Widget_W*)_p)->box( fltk3::_1to3_boxtype(new_box) );
}
Fl_Color color() const {
- return fltk3::_3to1_color( ((fltk3::Widget*)_p)->color() );
+ return fltk3::_3to1_color( ((fltk3::Widget_W*)_p)->color() );
}
void color(Fl_Color bg) {
- ((fltk3::Widget*)_p)->color( fltk3::_1to3_color(bg) );
+ ((fltk3::Widget_W*)_p)->color( fltk3::_1to3_color(bg) );
}
Fl_Color selection_color() const {
- return fltk3::_3to1_color( ((fltk3::Widget*)_p)->selection_color() );
+ return fltk3::_3to1_color( ((fltk3::Widget_W*)_p)->selection_color() );
}
void selection_color(Fl_Color a) {
- ((fltk3::Widget*)_p)->selection_color( fltk3::_1to3_color(a) );
+ ((fltk3::Widget_W*)_p)->selection_color( fltk3::_1to3_color(a) );
}
void color(Fl_Color bg, Fl_Color sel) {
- ((fltk3::Widget*)_p)->color( fltk3::_1to3_color(bg),
fltk3::_1to3_color(sel) );
+ ((fltk3::Widget_W*)_p)->color( fltk3::_1to3_color(bg),
fltk3::_1to3_color(sel) );
}
const char* label() const {
- return ((fltk3::Widget*)_p)->label();
+ return ((fltk3::Widget_W*)_p)->label();
}
void label(const char* text) {
- ((fltk3::Widget*)_p)->label(text);
+ ((fltk3::Widget_W*)_p)->label(text);
}
void copy_label(const char *new_label) {
- ((fltk3::Widget*)_p)->label(new_label);
+ ((fltk3::Widget_W*)_p)->label(new_label);
}
void label(Fl_Labeltype a, const char* b) {
- ((fltk3::Widget*)_p)->label( fltk3::_1to3_labeltype(a), b );
+ ((fltk3::Widget_W*)_p)->label( fltk3::_1to3_labeltype(a), b );
}
Fl_Color labelcolor() const {
- return fltk3::_3to1_color( ((fltk3::Widget*)_p)->labelcolor() );
+ return fltk3::_3to1_color( ((fltk3::Widget_W*)_p)->labelcolor() );
}
void labelcolor(Fl_Color c) {
- ((fltk3::Widget*)_p)->labelcolor( fltk3::_1to3_color(c) );
+ ((fltk3::Widget_W*)_p)->labelcolor( fltk3::_1to3_color(c) );
}
Fl_Labeltype labeltype() const {
- return fltk3::_3to1_labeltype( ((fltk3::Widget*)_p)->labeltype() );
+ return fltk3::_3to1_labeltype( ((fltk3::Widget_W*)_p)->labeltype() );
}
void labeltype(Fl_Labeltype a) {
- ((fltk3::Widget*)_p)->labeltype( fltk3::_1to3_labeltype(a) );
+ ((fltk3::Widget_W*)_p)->labeltype( fltk3::_1to3_labeltype(a) );
}
Fl_Font labelfont() const {
- return fltk3::_3to1_font( ((fltk3::Widget*)_p)->labelfont() );
+ return fltk3::_3to1_font( ((fltk3::Widget_W*)_p)->labelfont() );
}
void labelfont(Fl_Font f) {
- ((fltk3::Widget*)_p)->labelfont( fltk3::_1to3_font(f) );
+ ((fltk3::Widget_W*)_p)->labelfont( fltk3::_1to3_font(f) );
}
Fl_Fontsize labelsize() const {
- return fltk3::_3to1_fontsize( ((fltk3::Widget*)_p)->labelsize() );
+ return fltk3::_3to1_fontsize( ((fltk3::Widget_W*)_p)->labelsize() );
}
void labelsize(Fl_Fontsize pix) {
- ((fltk3::Widget*)_p)->labelsize( fltk3::_1to3_fontsize(pix) );
+ ((fltk3::Widget_W*)_p)->labelsize( fltk3::_1to3_fontsize(pix) );
}
Fl_Image* image() {
- return fltk3::_3to1_image(((fltk3::Widget*)_p)->image());
+ return fltk3::_3to1_image(((fltk3::Widget_W*)_p)->image());
}
const Fl_Image* image() const {
- return fltk3::_3to1_image(((fltk3::Widget*)_p)->image());
+ return fltk3::_3to1_image(((fltk3::Widget_W*)_p)->image());
}
void image(Fl_Image* img) {
- ((fltk3::Widget*)_p)->image( (fltk3::Image*)(img->_p) );
+ ((fltk3::Widget_W*)_p)->image( (fltk3::Image*)(img->_p) );
}
void image(Fl_Image& img) {
- ((fltk3::Widget*)_p)->image( *(fltk3::Image*)(img._p) );
+ ((fltk3::Widget_W*)_p)->image( *(fltk3::Image*)(img._p) );
}
Fl_Image* deimage() {
- return fltk3::_3to1_image(((fltk3::Widget*)_p)->deimage());
+ return fltk3::_3to1_image(((fltk3::Widget_W*)_p)->deimage());
}
const Fl_Image* deimage() const {
- return fltk3::_3to1_image(((fltk3::Widget*)_p)->deimage());
+ return fltk3::_3to1_image(((fltk3::Widget_W*)_p)->deimage());
}
void deimage(Fl_Image* img) {
- ((fltk3::Widget*)_p)->deimage( (fltk3::Image*)(img->_p) );
+ ((fltk3::Widget_W*)_p)->deimage( (fltk3::Image*)(img->_p) );
}
void deimage(Fl_Image& img) {
- ((fltk3::Widget*)_p)->deimage( *(fltk3::Image*)(img._p) );
+ ((fltk3::Widget_W*)_p)->deimage( *(fltk3::Image*)(img._p) );
}
const char *tooltip() const {
- return ((fltk3::Widget*)_p)->tooltip();
+ return ((fltk3::Widget_W*)_p)->tooltip();
}
void tooltip(const char *text) {
- ((fltk3::Widget*)_p)->tooltip(text);
+ ((fltk3::Widget_W*)_p)->tooltip(text);
}
void copy_tooltip(const char *text) {
- ((fltk3::Widget*)_p)->copy_tooltip(text);
+ ((fltk3::Widget_W*)_p)->copy_tooltip(text);
}
Fl_Callback_p callback() const {
- return (Fl_Callback_p)((fltk3::Widget*)_p)->callback();
+ return (Fl_Callback_p)((fltk3::Widget_W*)_p)->callback();
}
void callback(Fl_Callback* cb, void* p) {
- ((fltk3::Widget*)_p)->callback( (fltk3::Callback*)cb, p );
+ ((fltk3::Widget_W*)_p)->callback( (fltk3::Callback*)cb, p );
}
void callback(Fl_Callback* cb) {
- ((fltk3::Widget*)_p)->callback( (fltk3::Callback*)cb );
+ ((fltk3::Widget_W*)_p)->callback( (fltk3::Callback*)cb );
}
void callback(Fl_Callback0*cb) {
- ((fltk3::Widget*)_p)->callback( (fltk3::Callback0*)cb );
+ ((fltk3::Widget_W*)_p)->callback( (fltk3::Callback0*)cb );
}
void callback(Fl_Callback1*cb, long p=0) {
- ((fltk3::Widget*)_p)->callback( (fltk3::Callback1*)cb, p );
+ ((fltk3::Widget_W*)_p)->callback( (fltk3::Callback1*)cb, p );
}
void *user_data() const {
- return ((fltk3::Widget*)_p)->user_data();
+ return ((fltk3::Widget_W*)_p)->user_data();
}
void user_data(void *v) {
- ((fltk3::Widget*)_p)->user_data(v);
+ ((fltk3::Widget_W*)_p)->user_data(v);
}
long argument() const {
- return ((fltk3::Widget*)_p)->argument();
+ return ((fltk3::Widget_W*)_p)->argument();
}
void argument(long v) {
- ((fltk3::Widget*)_p)->argument(v);
+ ((fltk3::Widget_W*)_p)->argument(v);
}
Fl_When when() const {
- return fltk3::_3to1_when( ((fltk3::Widget*)_p)->when() );
+ return fltk3::_3to1_when( ((fltk3::Widget_W*)_p)->when() );
}
void when(uchar i) {
- ((fltk3::Widget*)_p)->when( fltk3::_1to3_when((Fl_When)i) );
+ ((fltk3::Widget_W*)_p)->when( fltk3::_1to3_when((Fl_When)i) );
}
unsigned int visible() const {
- return ((fltk3::Widget*)_p)->visible();
+ return ((fltk3::Widget_W*)_p)->visible();
}
int visible_r() const {
- return ((fltk3::Widget*)_p)->visible_r();
+ return ((fltk3::Widget_W*)_p)->visible_r();
}
void set_visible() {
- ((fltk3::Widget*)_p)->set_visible();
+ ((fltk3::Widget_W*)_p)->set_visible();
}
void clear_visible() {
- ((fltk3::Widget*)_p)->clear_visible();
+ ((fltk3::Widget_W*)_p)->clear_visible();
}
unsigned int active() const {
- return ((fltk3::Widget*)_p)->active();
+ return ((fltk3::Widget_W*)_p)->active();
}
int active_r() const {
- return ((fltk3::Widget*)_p)->active_r();
+ return ((fltk3::Widget_W*)_p)->active_r();
}
void activate() {
- ((fltk3::Widget*)_p)->activate();
+ ((fltk3::Widget_W*)_p)->activate();
}
void deactivate() {
- ((fltk3::Widget*)_p)->deactivate();
+ ((fltk3::Widget_W*)_p)->deactivate();
}
unsigned int output() const {
- return ((fltk3::Widget*)_p)->output();
+ return ((fltk3::Widget_W*)_p)->output();
}
void set_output() {
- ((fltk3::Widget*)_p)->set_output();
+ ((fltk3::Widget_W*)_p)->set_output();
}
void clear_output() {
- ((fltk3::Widget*)_p)->clear_output();
+ ((fltk3::Widget_W*)_p)->clear_output();
}
unsigned int takesevents() const {
- return ((fltk3::Widget*)_p)->takesevents();
+ return ((fltk3::Widget_W*)_p)->takesevents();
}
unsigned int changed() const {
- return ((fltk3::Widget*)_p)->changed();
+ return ((fltk3::Widget_W*)_p)->changed();
}
void set_changed() {
- ((fltk3::Widget*)_p)->set_changed();
+ ((fltk3::Widget_W*)_p)->set_changed();
}
void clear_changed() {
- ((fltk3::Widget*)_p)->clear_changed();
+ ((fltk3::Widget_W*)_p)->clear_changed();
}
int take_focus() {
- return ((fltk3::Widget*)_p)->take_focus();
+ return ((fltk3::Widget_W*)_p)->take_focus();
}
void set_visible_focus() {
- ((fltk3::Widget*)_p)->set_visible_focus();
+ ((fltk3::Widget_W*)_p)->set_visible_focus();
}
void clear_visible_focus() {
- ((fltk3::Widget*)_p)->clear_visible_focus();
+ ((fltk3::Widget_W*)_p)->clear_visible_focus();
}
void visible_focus(int v) {
- ((fltk3::Widget*)_p)->visible_focus(v);
+ ((fltk3::Widget_W*)_p)->visible_focus(v);
}
unsigned int visible_focus() {
- return ((fltk3::Widget*)_p)->visible_focus();
+ return ((fltk3::Widget_W*)_p)->visible_focus();
}
static void default_callback(Fl_Widget *cb, void *d) {
- fltk3::Widget::default_callback( (fltk3::Widget*)(cb->_p), d );
+ fltk3::Widget_W::default_callback( (fltk3::Widget_W*)(cb->_p), d );
}
void do_callback() {
- ((fltk3::Widget*)_p)->do_callback();
+ ((fltk3::Widget_W*)_p)->do_callback();
}
void do_callback(Fl_Widget* o,long arg) {
- ((fltk3::Widget*)_p)->do_callback( (fltk3::Widget*)(o->_p), arg );
+ ((fltk3::Widget_W*)_p)->do_callback( (fltk3::Widget_W*)(o->_p), arg );
}
void do_callback(Fl_Widget* o,void* arg=0) {
- ((fltk3::Widget*)_p)->do_callback( (fltk3::Widget*)(o->_p), arg );
+ ((fltk3::Widget_W*)_p)->do_callback( (fltk3::Widget_W*)(o->_p), arg );
}
int test_shortcut() {
- return ((fltk3::Widget*)_p)->test_shortcut();
+ return ((fltk3::Widget_W*)_p)->test_shortcut();
}
static unsigned int label_shortcut(const char *t) {
- return fltk3::Widget::label_shortcut(t);
+ return fltk3::Widget_W::label_shortcut(t);
}
static int test_shortcut(const char *s, const bool require_alt = false) {
- return fltk3::Widget::test_shortcut(s, require_alt);
+ return fltk3::Widget_W::test_shortcut(s, require_alt);
}
int contains(const Fl_Widget *w) const {
- return ((fltk3::Widget*)_p)->contains((fltk3::Widget*)(w->_p));
+ return ((fltk3::Widget_W*)_p)->contains((fltk3::Widget_W*)(w->_p));
}
int inside(const Fl_Widget* w) const {
- return ((fltk3::Widget*)_p)->inside((fltk3::Widget*)(w->_p));
+ return ((fltk3::Widget_W*)_p)->inside((fltk3::Widget_W*)(w->_p));
}
void redraw() {
- ((fltk3::Widget*)_p)->redraw();
+ ((fltk3::Widget_W*)_p)->redraw();
}
void redraw_label() {
- ((fltk3::Widget*)_p)->redraw_label();
+ ((fltk3::Widget_W*)_p)->redraw_label();
}
uchar damage() const {
- return fltk3::_3to1_damage( ((fltk3::Widget*)_p)->damage() );
+ return fltk3::_3to1_damage( ((fltk3::Widget_W*)_p)->damage() );
}
void clear_damage(uchar c = 0) {
- ((fltk3::Widget*)_p)->clear_damage();
+ ((fltk3::Widget_W*)_p)->clear_damage();
}
void damage(uchar c) {
- ((fltk3::Widget*)_p)->damage( fltk3::_1to3_damage((Fl_Damage)c) );
+ ((fltk3::Widget_W*)_p)->damage( fltk3::_1to3_damage((Fl_Damage)c) );
}
void damage(uchar c, int x, int y, int w, int h) {
- ((fltk3::Widget*)_p)->damage( fltk3::_1to3_damage((Fl_Damage)c), x, y, w,
h );
+ ((fltk3::Widget_W*)_p)->damage( fltk3::_1to3_damage((Fl_Damage)c), x, y,
w, h );
}
void draw_label(int x, int y, int w, int h, Fl_Align a) const {
- ((fltk3::Widget*)_p)->draw_label( x, y, w, h, fltk3::_1to3_align(a) );
+ ((fltk3::Widget_W*)_p)->draw_label( x, y, w, h, fltk3::_1to3_align(a) );
}
void measure_label(int& ww, int& hh) const {
- ((fltk3::Widget*)_p)->measure_label( ww, hh );
+ ((fltk3::Widget_W*)_p)->measure_label( ww, hh );
}
Fl_Color color2() const {
- return fltk3::_3to1_color(((fltk3::Widget*)_p)->color2());
+ return fltk3::_3to1_color(((fltk3::Widget_W*)_p)->color2());
}
void color2(unsigned a) {
- ((fltk3::Widget*)_p)->color2( fltk3::_1to3_color(a) );
+ ((fltk3::Widget_W*)_p)->color2( fltk3::_1to3_color(a) );
}
};
Modified: branches/branch-3.0/FL/x.H
===================================================================
--- branches/branch-3.0/FL/x.H 2011-07-12 17:17:55 UTC (rev 8854)
+++ branches/branch-3.0/FL/x.H 2011-07-12 20:46:15 UTC (rev 8855)
@@ -120,7 +120,7 @@
extern FL_EXPORT char fl_override_redirect; // hack into Fl_X::make_xid()
extern FL_EXPORT int fl_background_pixel; // hack into Fl_X::make_xid()
-inline Window fl_xid(const Fl_Window* w) { return Fl_X::i(w)->xid; }
+inline ::Window fl_xid(const Fl_Window* w) { return Fl_X::i(w)->xid; }
#else
Modified: branches/branch-3.0/fltk3/Widget.h
===================================================================
--- branches/branch-3.0/fltk3/Widget.h 2011-07-12 17:17:55 UTC (rev 8854)
+++ branches/branch-3.0/fltk3/Widget.h 2011-07-12 20:46:15 UTC (rev 8855)
@@ -50,8 +50,6 @@
typedef unsigned long fl_uintptr_t;
#endif
-class Fl_Widget;
-
namespace fltk3 {
class Widget;
class Group;
@@ -113,7 +111,6 @@
*/
class FLTK3_EXPORT Widget : public Rectangle {
friend class Group;
- friend class ::Fl_Widget;
fltk3::Group* parent_;
fltk3::Callback* callback_;
Modified: branches/branch-3.0/src/Fl_Widget.cxx
===================================================================
--- branches/branch-3.0/src/Fl_Widget.cxx 2011-07-12 17:17:55 UTC (rev
8854)
+++ branches/branch-3.0/src/Fl_Widget.cxx 2011-07-12 20:46:15 UTC (rev
8855)
@@ -105,7 +105,6 @@
////////////////////////////////////////////////////////////////
int fltk3::Widget::handle(int event) {
- FLTK3_OBJECT_VCALLS_WRAPPER_RET(int, handle(event), Handle)
return 0;
}
@@ -261,7 +260,6 @@
}
void fltk3::Widget::show() {
- FLTK3_OBJECT_VCALLS_WRAPPER(show(), Show)
if (!visible()) {
clear_flag(INVISIBLE);
if (visible_r()) {
@@ -274,7 +272,6 @@
}
void fltk3::Widget::hide() {
- FLTK3_OBJECT_VCALLS_WRAPPER(hide(), Hide)
if (visible_r()) {
set_flag(INVISIBLE);
for (fltk3::Widget *p = parent(); p; p = p->parent())
@@ -351,7 +348,6 @@
/** Draw a box.
*/
void fltk3::Widget::draw() {
- FLTK3_OBJECT_VCALLS_WRAPPER(draw(), Draw)
draw_box();
draw_label();
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit