Dillo
|
#include <fltkui.hh>
Public Member Functions | |
FltkToggleButtonResource (FltkPlatform *platform, bool activated) | |
~FltkToggleButtonResource () | |
void | sizeRequest (core::Requisition *requisition) |
bool | isActivated () |
void | setActivated (bool activated) |
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. More... | |
virtual bool | equals (Object *other) |
Returns, whether two objects are equal. More... | |
virtual int | hashValue () |
Return a hash value for the object. More... | |
virtual Object * | clone () |
Return an exact copy of the object. More... | |
virtual void | intoStringBuffer (misc::StringBuffer *sb) |
Store a textual representation of the object in a misc::StringBuffer. More... | |
const char * | toString () |
Use object::Object::intoStringBuffer to return a textual representation of the object. More... | |
virtual size_t | sizeOf () |
Return the number of bytes, this object totally uses. More... | |
Protected Member Functions | |
virtual Fl_Button * | createNewButton (core::Allocation *allocation)=0 |
Fl_Widget * | createNewWidget (core::Allocation *allocation) |
void | setWidgetStyle (Fl_Widget *widget, core::style::Style *style) |
Protected Member Functions inherited from dw::fltk::ui::FltkResource | |
FltkResource (FltkPlatform *platform) | |
void | init (FltkPlatform *platform) |
void | setDisplayed (bool displayed) |
bool | displayed () |
Private Attributes | |
bool | initActivated |
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::FltkToggleButtonResource< I >::FltkToggleButtonResource | ( | FltkPlatform * | platform, |
bool | activated | ||
) |
dw::fltk::ui::FltkToggleButtonResource< I >::~FltkToggleButtonResource | ( | ) |
|
protectedpure virtual |
Implemented in dw::fltk::ui::FltkRadioButtonResource, and dw::fltk::ui::FltkCheckButtonResource.
|
protectedvirtual |
Implements dw::fltk::ui::FltkResource.
bool dw::fltk::ui::FltkToggleButtonResource< I >::isActivated | ( | ) |
void dw::fltk::ui::FltkToggleButtonResource< I >::setActivated | ( | bool | activated | ) |
Referenced by dw::fltk::ui::FltkRadioButtonResource::buttonClicked().
|
protectedvirtual |
Reimplemented from dw::fltk::ui::FltkResource.
References dw::fltk::ui::FltkResource::setWidgetStyle().
void dw::fltk::ui::FltkToggleButtonResource< I >::sizeRequest | ( | core::Requisition * | requisition | ) |
References dw::core::Requisition::ascent, dw::core::style::Font::ascent, DBG_OBJ_ENTER0, DBG_OBJ_LEAVE, DBG_OBJ_MSGF, dw::core::Requisition::descent, dw::core::style::Font::descent, dw::fltk::FltkFont::font, 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.
|
private |