Update of /project/cl-fltk/cvsroot/cl-fltk/wrapper In directory clnet:/tmp/cvs-serv19130/wrapper
Modified Files: widget.cc widget.h Log Message:
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.cc 2006/03/02 07:24:21 1.2 +++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.cc 2006/03/09 10:02:55 1.3 @@ -150,3 +150,73 @@ debug("%s:%s %x %c\n", __FILE__, __FUNCTION__, (unsigned int)widget, c); return widget->scrollbar_width(c); } + +Color fl_widget_get_color(Widget* widget) +{ + return widget->color(); +} + +Color fl_widget_get_textcolor(Widget* widget) +{ + return widget->textcolor(); +} + +Color fl_widget_get_selection_color(Widget* widget) +{ + return widget->selection_color(); +} + +Color fl_widget_get_selection_textcolor(Widget* widget) +{ + return widget->selection_textcolor(); +} + +Color fl_widget_get_buttoncolor(Widget* widget) +{ + return widget->buttoncolor(); +} + +Color fl_widget_get_labelcolor(Widget* widget) +{ + return widget->labelcolor(); +} + +Color fl_widget_get_highlight_color(Widget* widget) +{ + return widget->highlight_color(); +} + +Color fl_widget_get_highlight_textcolor(Widget* widget) +{ + return widget->highlight_textcolor(); +} + +float fl_widget_get_labelsize(Widget* widget) +{ + return widget->labelsize(); +} + +float fl_widget_get_textsize(Widget* widget) +{ + return widget->textsize(); +} + +float fl_widget_get_leading(Widget* widget) +{ + return widget->leading(); +} + +unsigned char fl_widget_get_scrollbar_align(Widget* widget) +{ + return widget->scrollbar_align(); +} + +unsigned char fl_widget_get_scrollbar_width(Widget* widget) +{ + return widget->scrollbar_width(); +} + +int fl_widget_send(Widget* widget, int event) +{ + return widget->send(event); +} --- /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.h 2006/03/02 07:24:21 1.2 +++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.h 2006/03/09 10:02:55 1.3 @@ -35,24 +35,23 @@ void fl_widget_leading(Widget* widget, float a); void fl_widget_scrollbar_align(Widget* widget, unsigned char); void fl_widget_scrollbar_width(Widget* widget, unsigned char); - /* - Color color() const; - Color textcolor() const; - Color selection_color() const; - Color selection_textcolor() const; - Color buttoncolor() const; - Color labelcolor() const; - Color highlight_color() const; - Color highlight_textcolor() const; - float labelsize() const; - float textsize() const; - float leading() const; - unsigned char scrollbar_align() const; - unsigned char scrollbar_width() const; - */ - /* - int send(int event);
+ Color fl_widget_get_color(Widget* widget); + Color fl_widget_get_textcolor(Widget* widget); + Color fl_widget_get_selection_color(Widget* widget); + Color fl_widget_get_selection_textcolor(Widget* widget); + Color fl_widget_get_buttoncolor(Widget* widget); + Color fl_widget_get_labelcolor(Widget* widget); + Color fl_widget_get_highlight_color(Widget* widget); + Color fl_widget_get_highlight_textcolor(Widget* widget); + float fl_widget_get_labelsize(Widget* widget); + float fl_widget_get_textsize(Widget* widget); + float fl_widget_get_leading(Widget* widget); + unsigned char fl_widget_get_scrollbar_align(Widget* widget); + unsigned char fl_widget_get_scrollbar_width(Widget* widget); + int fl_widget_send(Widget* widget, int event); + + /* const Style* style() const { return style_; } void style(const Style* s) { style_ = s; } void style(const Style& s) { style_ = &s; }