aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkui.hh
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-10-05 18:43:23 +0200
committerjcid <devnull@localhost>2008-10-05 18:43:23 +0200
commit08d630de498346b85ab160742ace332692e3dd73 (patch)
tree1b89d628f2e561be14248d6f98371d1da3b3eb20 /dw/fltkui.hh
parentacac1e2b0b0d88e02512344b3d3650e31e161122 (diff)
- Fixed check and radio buttons size_request.
Diffstat (limited to 'dw/fltkui.hh')
-rw-r--r--dw/fltkui.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/dw/fltkui.hh b/dw/fltkui.hh
index 4de99d27..a027a41b 100644
--- a/dw/fltkui.hh
+++ b/dw/fltkui.hh
@@ -350,6 +350,8 @@ private:
protected:
virtual ::fltk::Button *createNewButton (core::Allocation *allocation) = 0;
+ // TODO: maybe getFont() is not the best way to do it...
+ virtual FltkFont *getFont() = 0;
::fltk::Widget *createNewWidget (core::Allocation *allocation);
public:
@@ -367,6 +369,8 @@ public:
class FltkCheckButtonResource:
public FltkToggleButtonResource <dw::core::ui::CheckButtonResource>
{
+private:
+ FltkFont *getFont() {return style ? (FltkFont *)style->font : NULL;}
protected:
::fltk::Button *createNewButton (core::Allocation *allocation);
@@ -427,6 +431,7 @@ private:
Group *group;
static void widgetCallback (::fltk::Widget *widget, void *data);
+ FltkFont *getFont() {return style ? (FltkFont *)style->font : NULL;}
void buttonClicked ();
protected: