Dillo v3.1.1-98-g318d1f14
|
FLTK implementation of dw::core::ui. More...
Classes | |
class | ComplexButton |
class | FltkCheckButtonResource |
class | FltkComplexButtonResource |
class | FltkEntryResource |
class | FltkLabelButtonResource |
class | FltkListResource |
class | FltkMultiLineTextResource |
class | FltkOptionMenuResource |
class | FltkRadioButtonResource |
class | FltkResource |
... More... | |
class | FltkSelectionResource |
class | FltkSpecificResource |
class | FltkToggleButtonResource |
Enumerations | |
enum | { RELIEF_X_THICKNESS = 3 , RELIEF_Y_THICKNESS = 3 } |
Functions | |
static core::ButtonState | getDwButtonState () |
static void | setButtonEvent (dw::core::EventButton *event) |
static int | kf_backspace_word (int c, Fl_Text_Editor *e) |
FLTK implementation of dw::core::ui.
The design should be like this:
where dw::fltk::ui::FltkResource provides some base funtionality for all conctrete FLTK implementations of sub-interfaces of dw::core::ui::Resource. However, this is not directly possible in C++, since the base class dw::core::ui::Resource is ambiguous for dw::fltk::ui::FltkLabelButtonResource.
To solve this, we have to remove the dependency between dw::fltk::ui::FltkResource and dw::core::ui::Resource, instead, the part of dw::core::ui::Resource, which is implemented in dw::fltk::ui::FltkResource, must be explicitly delegated from dw::fltk::ui::FltkLabelButtonResourceto dw::fltk::ui::FltkResource:
To make this a bit simpler, we use templates:
anonymous enum |
|
static |
Definition at line 677 of file fltkui.cc.
References dw::core::BUTTON1_MASK, dw::core::BUTTON2_MASK, dw::core::BUTTON3_MASK, dw::core::CONTROL_MASK, dw::core::META_MASK, and dw::core::SHIFT_MASK.
Referenced by setButtonEvent().
|
static |
Definition at line 1020 of file fltkui.cc.
Referenced by dw::fltk::ui::FltkMultiLineTextResource::createNewWidget().
|
static |
Definition at line 692 of file fltkui.cc.
References getDwButtonState().
Referenced by dw::fltk::ui::FltkLabelButtonResource::widgetCallback(), and dw::fltk::ui::FltkComplexButtonResource::widgetCallback().