From f899c3897d62bd4f3c2d3bcaaf1ac5447ca8d158 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 7 Apr 2010 23:17:33 +0000 Subject: Added new flags for label alignment: FL_LEFT_TOP, FL_RIGHT_TOP, FL_LEFT_BOTTOM, and FL_RIGHT_BOTTOM align outside labels first to the side, then to the top or botton, filling a gap in possible alignment. Also FL_ALIGN_TEXT_NEXT_TO_IMAGE and FL_ALIGN_IMAGE_NEXT_TO_TEXT which do just that, and finally FL_ALIGN_IMAGE_BACKDROP which renders the image in the background and draws the label on top. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Widget.H | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FL/Fl_Widget.H') diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index a3a2d6ad6..3e61c7534 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -170,6 +170,7 @@ protected: 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; + void draw_backdrop() const; /** draws a focus rectangle around the widget */ void draw_focus() {draw_focus(box(),x(),y(),w(),h());} void draw_focus(Fl_Boxtype t, int x,int y,int w,int h) const; @@ -497,6 +498,7 @@ public: \return the current image */ Fl_Image* image() {return label_.image;} + const Fl_Image* image() const {return label_.image;} /** Sets the image to use as part of the widget label. This image is used when drawing the widget in the active state. @@ -515,6 +517,7 @@ public: \return the current image for the deactivated widget */ Fl_Image* deimage() {return label_.deimage;} + const Fl_Image* deimage() const {return label_.deimage;} /** Sets the image to use as part of the widget label. This image is used when drawing the widget in the inactive state. -- cgit v1.2.3