#include <fltkui.hh>
Public Member Functions | |
| FltkEntryResource (FltkPlatform *platform, int maxLength, bool password, const char *label) | |
| ~FltkEntryResource () | |
| void | sizeRequest (core::Requisition *requisition) |
| void | sizeAllocate (core::Allocation *allocation) |
| const char * | getText () |
| void | setText (const char *text) |
| bool | isEditable () |
| void | setEditable (bool editable) |
Protected Member Functions | |
| Fl_Widget * | createNewWidget (core::Allocation *allocation) |
| void | setWidgetStyle (Fl_Widget *widget, core::style::Style *style) |
Private Member Functions | |
| void | setDisplayed (bool displayed) |
Static Private Member Functions | |
| static void | widgetCallback (Fl_Widget *widget, void *data) |
Private Attributes | |
| int | maxLength |
| bool | password |
| const char * | initText |
| char * | label |
| int | label_w |
| bool | editable |
| dw::fltk::ui::FltkEntryResource::FltkEntryResource | ( | FltkPlatform * | platform, | |
| int | maxLength, | |||
| bool | password, | |||
| const char * | label | |||
| ) |
References editable, dw::fltk::ui::FltkResource::init(), initText, and label_w.
| Fl_Widget * dw::fltk::ui::FltkEntryResource::createNewWidget | ( | core::Allocation * | allocation | ) | [protected, virtual] |
| const char * dw::fltk::ui::FltkEntryResource::getText | ( | ) | [virtual] |
| bool dw::fltk::ui::FltkEntryResource::isEditable | ( | ) | [virtual] |
| void dw::fltk::ui::FltkEntryResource::setDisplayed | ( | bool | displayed | ) | [private] |
| void dw::fltk::ui::FltkEntryResource::setEditable | ( | bool | editable | ) | [virtual] |
Implements dw::core::ui::TextResource.
| void dw::fltk::ui::FltkEntryResource::setText | ( | const char * | text | ) | [virtual] |
| void dw::fltk::ui::FltkEntryResource::setWidgetStyle | ( | Fl_Widget * | widget, | |
| core::style::Style * | style | |||
| ) | [protected, virtual] |
Reimplemented from dw::fltk::ui::FltkResource.
References label, label_w, and dw::fltk::ui::RELIEF_X_THICKNESS.
| void dw::fltk::ui::FltkEntryResource::sizeAllocate | ( | core::Allocation * | allocation | ) |
| void dw::fltk::ui::FltkEntryResource::sizeRequest | ( | core::Requisition * | requisition | ) | [virtual] |
Implements dw::core::ui::Resource.
References dw::core::style::Font::ascent, dw::core::Requisition::ascent, dw::core::style::Font::descent, dw::core::Requisition::descent, dw::fltk::ui::FltkResource::displayed(), dw::fltk::FltkFont::font, dw::core::style::StyleAttrs::font, label_w, maxLength, dw::fltk::ui::RELIEF_X_THICKNESS, dw::fltk::ui::RELIEF_Y_THICKNESS, dw::core::style::FontAttrs::size, dw::fltk::ui::FltkResource::style, dw::core::ui::EntryResource::UNLIMITED_MAX_LENGTH, and dw::core::Requisition::width.
| void dw::fltk::ui::FltkEntryResource::widgetCallback | ( | Fl_Widget * | widget, | |
| void * | data | |||
| ) | [static, private] |
Referenced by createNewWidget().
bool dw::fltk::ui::FltkEntryResource::editable [private] |
Referenced by FltkEntryResource(), and isEditable().
const char* dw::fltk::ui::FltkEntryResource::initText [private] |
Referenced by createNewWidget(), FltkEntryResource(), setText(), and ~FltkEntryResource().
char* dw::fltk::ui::FltkEntryResource::label [private] |
Referenced by createNewWidget(), setWidgetStyle(), sizeAllocate(), and ~FltkEntryResource().
int dw::fltk::ui::FltkEntryResource::label_w [private] |
Referenced by FltkEntryResource(), setWidgetStyle(), sizeAllocate(), and sizeRequest().
int dw::fltk::ui::FltkEntryResource::maxLength [private] |
Referenced by sizeRequest().
bool dw::fltk::ui::FltkEntryResource::password [private] |
Referenced by createNewWidget().
1.5.9