#include <fltkviewbase.hh>
Public Member Functions | |
| FltkWidgetView (int x, int y, int w, int h, const char *label=0) | |
| ~FltkWidgetView () | |
| void | drawText (core::style::Font *font, core::style::Color *color, core::style::Color::Shading shading, int x, int y, const char *text, int len) |
| void | drawSimpleWrappedText (core::style::Font *font, core::style::Color *color, core::style::Color::Shading shading, int x, int y, int w, int h, const char *text) |
| void | drawImage (core::Imgbuf *imgbuf, int xRoot, int yRoot, int x, int y, int width, int height) |
| bool | usesFltkWidgets () |
| void | addFltkWidget (Fl_Widget *widget, core::Allocation *allocation) |
| void | removeFltkWidget (Fl_Widget *widget) |
| void | allocateFltkWidget (Fl_Widget *widget, core::Allocation *allocation) |
| void | drawFltkWidget (Fl_Widget *widget, core::Rectangle *area) |
| dw::fltk::FltkWidgetView::FltkWidgetView | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h, | |||
| const char * | label = 0 | |||
| ) |
| dw::fltk::FltkWidgetView::~FltkWidgetView | ( | ) |
| void dw::fltk::FltkWidgetView::addFltkWidget | ( | Fl_Widget * | widget, | |
| core::Allocation * | allocation | |||
| ) | [virtual] |
| void dw::fltk::FltkWidgetView::allocateFltkWidget | ( | Fl_Widget * | widget, | |
| core::Allocation * | allocation | |||
| ) | [virtual] |
Reimplemented from dw::fltk::FltkView.
References dw::core::Allocation::ascent, dw::core::Allocation::descent, dw::fltk::FltkViewBase::translateCanvasXToViewX(), dw::fltk::FltkViewBase::translateCanvasYToViewY(), dw::core::Allocation::width, dw::core::Allocation::x, and dw::core::Allocation::y.
Referenced by addFltkWidget().
| void dw::fltk::FltkWidgetView::drawFltkWidget | ( | Fl_Widget * | widget, | |
| core::Rectangle * | area | |||
| ) | [virtual] |
Reimplemented from dw::fltk::FltkView.
| void dw::fltk::FltkWidgetView::drawImage | ( | core::Imgbuf * | imgbuf, | |
| int | xRoot, | |||
| int | yRoot, | |||
| int | x, | |||
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) | [virtual] |
Implements dw::core::View.
References dw::fltk::FltkViewBase::translateCanvasXToViewX(), and dw::fltk::FltkViewBase::translateCanvasYToViewY().
| void dw::fltk::FltkWidgetView::drawSimpleWrappedText | ( | core::style::Font * | font, | |
| core::style::Color * | color, | |||
| core::style::Color::Shading | shading, | |||
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| const char * | text | |||
| ) | [virtual] |
| void dw::fltk::FltkWidgetView::drawText | ( | core::style::Font * | font, | |
| core::style::Color * | color, | |||
| core::style::Color::Shading | shading, | |||
| int | x, | |||
| int | y, | |||
| const char * | text, | |||
| int | len | |||
| ) | [virtual] |
Implements dw::core::View.
References dw::fltk::FltkFont::font, dw::core::style::FONT_VARIANT_SMALL_CAPS, dw::core::style::FontAttrs::fontVariant, dw::core::style::FontAttrs::letterSpacing, dw::core::Layout::nextGlyph(), lout::misc::roundInt(), dw::core::style::FontAttrs::size, dw::fltk::FltkViewBase::theLayout, dw::fltk::FltkViewBase::translateCanvasXToViewX(), and dw::fltk::FltkViewBase::translateCanvasYToViewY().
| void dw::fltk::FltkWidgetView::removeFltkWidget | ( | Fl_Widget * | widget | ) | [virtual] |
Reimplemented from dw::fltk::FltkView.
| bool dw::fltk::FltkWidgetView::usesFltkWidgets | ( | ) | [virtual] |
Implements dw::fltk::FltkView.
1.5.9