Dillo v3.1.1-119-g140d9ebd
|
#include <fltkui.hh>
Public Member Functions | |
FltkListResource (FltkPlatform *platform, core::ui::ListResource::SelectionMode selectionMode, int rows) | |
~FltkListResource () | |
void | addItem (const char *str, bool enabled, bool selected) |
void | setItem (int index, bool selected) |
void | pushGroup (const char *name, bool enabled) |
void | popGroup () |
void | sizeRequest (core::Requisition *requisition) |
bool | isSelected (int index) |
Public Member Functions inherited from dw::fltk::ui::FltkSelectionResource< dw::core::ui::ListResource > | |
FltkSelectionResource (FltkPlatform *platform) | |
dw::core::Iterator * | iterator (dw::core::Content::Type mask, bool atEnd) |
Public Member Functions inherited from dw::fltk::ui::FltkSpecificResource< I > | |
FltkSpecificResource (FltkPlatform *platform) | |
~FltkSpecificResource () | |
void | sizeAllocate (core::Allocation *allocation) |
void | draw (core::View *view, core::Rectangle *area, core::DrawingContext *context) |
void | setStyle (core::style::Style *style) |
bool | isEnabled () |
void | setEnabled (bool enabled) |
Public Member Functions inherited from dw::fltk::ui::FltkResource | |
~FltkResource () | |
virtual void | attachView (FltkView *view) |
virtual void | detachView (FltkView *view) |
void | sizeAllocate (core::Allocation *allocation) |
void | draw (core::View *view, core::Rectangle *area, core::DrawingContext *context) |
void | setStyle (core::style::Style *style) |
bool | isEnabled () |
void | setEnabled (bool enabled) |
Public Member Functions inherited from lout::object::Object | |
virtual | ~Object () |
The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly. | |
virtual bool | equals (Object *other) |
Returns, whether two objects are equal. | |
virtual int | hashValue () |
Return a hash value for the object. | |
virtual Object * | clone () |
Return an exact copy of the object. | |
virtual void | intoStringBuffer (misc::StringBuffer *sb) |
Store a textual representation of the object in a misc::StringBuffer. | |
const char * | toString () |
Use object::Object::intoStringBuffer to return a textual representation of the object. | |
virtual size_t | sizeOf () |
Return the number of bytes, this object totally uses. | |
Protected Member Functions | |
Fl_Widget * | createNewWidget (core::Allocation *allocation) |
void | setWidgetStyle (Fl_Widget *widget, core::style::Style *style) |
int | getNumberOfItems () |
int | getMaxItemWidth () |
Protected Member Functions inherited from dw::fltk::ui::FltkSelectionResource< dw::core::ui::ListResource > | |
virtual bool | setSelectedItems () |
Protected Member Functions inherited from dw::fltk::ui::FltkResource | |
FltkResource (FltkPlatform *platform) | |
void | init (FltkPlatform *platform) |
This is not a constructor, since it calls some virtual methods, which should not be done in a C++ base constructor. | |
void | setDisplayed (bool displayed) |
bool | displayed () |
Private Member Functions | |
void * | newItem (const char *str, bool enabled, bool selected) |
Static Private Member Functions | |
static void | widgetCallback (Fl_Widget *widget, void *data) |
Private Attributes | |
int | currDepth |
int | colWidths [4] |
int | showRows |
ListResource::SelectionMode | mode |
Additional Inherited Members | |
Protected Attributes inherited from dw::fltk::ui::FltkResource | |
FltkView * | view |
Fl_Widget * | widget |
core::Allocation | allocation |
FltkPlatform * | platform |
core::style::Style * | style |
dw::fltk::ui::FltkListResource::FltkListResource | ( | FltkPlatform * | platform, |
core::ui::ListResource::SelectionMode | selectionMode, | ||
int | rows | ||
) |
Definition at line 1573 of file fltkui.cc.
References dw::fltk::ui::FltkResource::init(), mode, dw::fltk::ui::FltkResource::platform, and showRows.
|
virtual |
Implements dw::fltk::ui::FltkSelectionResource< dw::core::ui::ListResource >.
Definition at line 1684 of file fltkui.cc.
References dw::fltk::ui::FltkResource::enabled, and newItem().
|
protectedvirtual |
Implements dw::fltk::ui::FltkResource.
Definition at line 1589 of file fltkui.cc.
References dw::fltk::ui::FltkResource::allocation, dw::core::Allocation::ascent, colWidths, dw::core::Allocation::descent, mode, widgetCallback(), dw::core::Allocation::width, dw::core::Allocation::x, and dw::core::Allocation::y.
|
protected |
Definition at line 1728 of file fltkui.cc.
References dw::fltk::ui::FltkResource::widget.
Referenced by sizeRequest().
|
protected |
Definition at line 1763 of file fltkui.cc.
References dw::fltk::ui::FltkResource::widget.
bool dw::fltk::ui::FltkListResource::isSelected | ( | int | index | ) |
Definition at line 1768 of file fltkui.cc.
References dw::fltk::ui::FltkResource::widget.
|
private |
Definition at line 1639 of file fltkui.cc.
References currDepth, dw::fltk::ui::FltkResource::enabled, showRows, and dw::fltk::ui::FltkResource::widget.
Referenced by addItem(), popGroup(), and pushGroup().
|
virtual |
Implements dw::fltk::ui::FltkSelectionResource< dw::core::ui::ListResource >.
Definition at line 1717 of file fltkui.cc.
References currDepth, newItem(), and dw::fltk::ui::FltkResource::widget.
|
virtual |
Implements dw::fltk::ui::FltkSelectionResource< dw::core::ui::ListResource >.
|
virtual |
Implements dw::fltk::ui::FltkSelectionResource< dw::core::ui::ListResource >.
Definition at line 1693 of file fltkui.cc.
References dw::fltk::ui::FltkResource::widget.
|
protectedvirtual |
Reimplemented from dw::fltk::ui::FltkResource.
Definition at line 1604 of file fltkui.cc.
References colWidths, dw::fltk::ui::FltkResource::setWidgetStyle(), dw::fltk::ui::FltkResource::style, and dw::fltk::ui::FltkResource::widget.
void dw::fltk::ui::FltkListResource::sizeRequest | ( | core::Requisition * | requisition | ) |
Definition at line 1733 of file fltkui.cc.
References dw::core::Requisition::ascent, DBG_OBJ_ENTER0, DBG_OBJ_LEAVE, DBG_OBJ_MSGF, dw::core::style::Font::descent, dw::core::Requisition::descent, dw::core::style::StyleAttrs::font, getMaxItemWidth(), showRows, dw::fltk::ui::FltkResource::style, dw::fltk::ui::FltkResource::widget, and dw::core::Requisition::width.
|
staticprivate |
Definition at line 1621 of file fltkui.cc.
References dw::fltk::ui::FltkResource::widget.
Referenced by createNewWidget().
|
private |
Definition at line 515 of file fltkui.hh.
Referenced by createNewWidget(), and setWidgetStyle().
|
private |
Definition at line 514 of file fltkui.hh.
Referenced by newItem(), popGroup(), and pushGroup().
|
private |
Definition at line 517 of file fltkui.hh.
Referenced by createNewWidget(), and FltkListResource().
|
private |
Definition at line 516 of file fltkui.hh.
Referenced by FltkListResource(), newItem(), and sizeRequest().