Dillo v3.1.1-99-gf3103cc4
|
#include <fltkui.hh>
Public Member Functions | |
FltkOptionMenuResource (FltkPlatform *platform) | |
~FltkOptionMenuResource () | |
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::OptionMenuResource > | |
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) |
virtual bool | setSelectedItems () |
void | setWidgetStyle (Fl_Widget *widget, core::style::Style *style) |
int | getNumberOfItems () |
int | getMaxItemWidth () |
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 | enlargeMenu () |
Fl_Menu_Item * | newItem () |
Static Private Member Functions | |
static void | widgetCallback (Fl_Widget *widget, void *data) |
Private Attributes | |
Fl_Menu_Item * | menu |
int | itemsAllocated |
int | itemsUsed |
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::FltkOptionMenuResource::FltkOptionMenuResource | ( | FltkPlatform * | platform | ) |
Definition at line 1369 of file fltkui.cc.
References dw::fltk::ui::FltkResource::init(), itemsAllocated, itemsUsed, menu, and dw::fltk::ui::FltkResource::platform.
dw::fltk::ui::FltkOptionMenuResource::~FltkOptionMenuResource | ( | ) |
|
virtual |
Implements dw::fltk::ui::FltkSelectionResource< dw::core::ui::OptionMenuResource >.
Definition at line 1491 of file fltkui.cc.
References dStrdup(), dw::fltk::ui::FltkResource::enabled, newItem(), and dw::fltk::ui::FltkResource::widget.
|
protectedvirtual |
Implements dw::fltk::ui::FltkResource.
Definition at line 1405 of file fltkui.cc.
References dw::fltk::ui::FltkResource::allocation, dw::core::Allocation::ascent, dw::core::Allocation::descent, menu, dw::core::Allocation::width, dw::core::Allocation::x, and dw::core::Allocation::y.
|
private |
Definition at line 1462 of file fltkui.cc.
References itemsAllocated, itemsUsed, menu, and dw::fltk::ui::FltkResource::widget.
Referenced by newItem().
|
protected |
Definition at line 1421 of file fltkui.cc.
References itemsUsed, and menu.
Referenced by sizeRequest().
|
protected |
Definition at line 1539 of file fltkui.cc.
References dw::fltk::ui::FltkResource::widget.
bool dw::fltk::ui::FltkOptionMenuResource::isSelected | ( | int | index | ) |
Definition at line 1534 of file fltkui.cc.
References dw::fltk::ui::FltkResource::widget.
|
private |
Definition at line 1478 of file fltkui.cc.
References enlargeMenu(), itemsAllocated, itemsUsed, and menu.
Referenced by addItem(), popGroup(), and pushGroup().
|
virtual |
Implements dw::fltk::ui::FltkSelectionResource< dw::core::ui::OptionMenuResource >.
Definition at line 1527 of file fltkui.cc.
References newItem().
|
virtual |
Implements dw::fltk::ui::FltkSelectionResource< dw::core::ui::OptionMenuResource >.
Definition at line 1513 of file fltkui.cc.
References dStrdup(), dw::fltk::ui::FltkResource::enabled, and newItem().
|
virtual |
Implements dw::fltk::ui::FltkSelectionResource< dw::core::ui::OptionMenuResource >.
Definition at line 1507 of file fltkui.cc.
References menu, and dw::fltk::ui::FltkResource::widget.
|
inlineprotectedvirtual |
Reimplemented from dw::fltk::ui::FltkSelectionResource< dw::core::ui::OptionMenuResource >.
|
protectedvirtual |
Reimplemented from dw::fltk::ui::FltkResource.
Definition at line 1393 of file fltkui.cc.
References dw::fltk::ui::FltkResource::setWidgetStyle(), dw::fltk::ui::FltkResource::style, and dw::fltk::ui::FltkResource::widget.
void dw::fltk::ui::FltkOptionMenuResource::sizeRequest | ( | core::Requisition * | requisition | ) |
Definition at line 1438 of file fltkui.cc.
References dw::core::style::Font::ascent, dw::core::Requisition::ascent, DBG_OBJ_ENTER0, DBG_OBJ_LEAVE, DBG_OBJ_MSGF, dw::core::style::Font::descent, dw::core::Requisition::descent, dw::fltk::FltkFont::font, dw::core::style::StyleAttrs::font, getMaxItemWidth(), dw::fltk::ui::RELIEF_X_THICKNESS, dw::fltk::ui::RELIEF_Y_THICKNESS, dw::core::style::FontAttrs::size, dw::fltk::ui::FltkResource::style, and dw::core::Requisition::width.
|
staticprivate |
|
private |
Definition at line 489 of file fltkui.hh.
Referenced by enlargeMenu(), FltkOptionMenuResource(), and newItem().
|
private |
Definition at line 489 of file fltkui.hh.
Referenced by enlargeMenu(), FltkOptionMenuResource(), getMaxItemWidth(), newItem(), and ~FltkOptionMenuResource().
|
private |
Definition at line 488 of file fltkui.hh.
Referenced by createNewWidget(), enlargeMenu(), FltkOptionMenuResource(), getMaxItemWidth(), newItem(), setItem(), and ~FltkOptionMenuResource().