Dillo v3.1.1-119-g140d9ebd
|
Basic interface for all resources. More...
#include <ui.hh>
Classes | |
class | ActivateEmitter |
class | ActivateReceiver |
Receiver interface for the "activate" signal. More... | |
class | ClickedEmitter |
class | ClickedReceiver |
Receiver interface for the "clicked" signal. More... | |
Public Member Functions | |
Resource () | |
virtual | ~Resource () |
virtual void | sizeRequest (Requisition *requisition)=0 |
virtual void | getExtremes (Extremes *extremes) |
virtual void | sizeAllocate (Allocation *allocation) |
virtual int | getAvailWidthOfChild (Widget *child, bool forceValue) |
virtual int | getAvailHeightOfChild (Widget *child, bool forceValue) |
virtual void | correctRequisitionOfChild (Widget *child, Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseWidth, bool allowDecreaseHeight) |
virtual void | correctExtremesOfChild (Widget *child, Extremes *extremes, bool useAdjustmentWidth) |
virtual void | containerSizeChangedForChildren () |
virtual void | setDisplayed (bool displayed) |
virtual void | draw (View *view, Rectangle *area, DrawingContext *context) |
virtual Iterator * | iterator (Content::Type mask, bool atEnd)=0 |
virtual void | setStyle (style::Style *style) |
virtual bool | isEnabled ()=0 |
virtual void | setEnabled (bool enabled)=0 |
void | connectActivate (ActivateReceiver *receiver) |
void | connectClicked (ClickedReceiver *receiver) |
Protected Member Functions | |
void | queueResize (bool extremesChanged) |
virtual Embed * | getEmbed () |
virtual void | setEmbed (Embed *embed) |
void | emitActivate () |
void | emitClicked (EventButton *event) |
Private Member Functions | |
void | emitEnter () |
void | emitLeave () |
Private Attributes | |
Embed * | embed |
ActivateEmitter | activateEmitter |
ClickedEmitter | clickedEmitter |
Friends | |
class | Embed |
|
inline |
Definition at line 357 of file ui.hh.
References DBG_OBJ_CREATE, and embed.
|
virtual |
Definition at line 207 of file ui.cc.
References DBG_OBJ_DELETE.
|
inline |
Definition at line 386 of file ui.hh.
References activateEmitter, and dw::core::ui::Resource::ActivateEmitter::connectActivate().
Referenced by form::Form::addCheckButtonResource(), form::Form::addRadioButtonResource(), form::Form::addSelectionResource(), and form::Form::addTextResource().
|
inline |
Definition at line 388 of file ui.hh.
References clickedEmitter, and dw::core::ui::Resource::ClickedEmitter::connectClicked().
Referenced by form::Form::addButtonResource().
|
virtual |
Reimplemented in dw::core::ui::ComplexButtonResource.
Definition at line 269 of file ui.cc.
Referenced by dw::core::ui::Embed::containerSizeChangedForChildren().
|
virtual |
Reimplemented in dw::core::ui::ComplexButtonResource.
Definition at line 262 of file ui.cc.
References lout::misc::notImplemented().
Referenced by dw::core::ui::Embed::correctExtremesOfChild().
|
virtual |
Reimplemented in dw::core::ui::ComplexButtonResource.
Definition at line 251 of file ui.cc.
References lout::misc::notImplemented().
Referenced by dw::core::ui::Embed::correctRequisitionOfChild().
|
virtual |
Reimplemented in dw::fltk::ui::FltkSpecificResource< dw::core::ui::CheckButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::ComplexButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::EntryResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::LabelButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::ListResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::MultiLineTextResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::OptionMenuResource >, and dw::fltk::ui::FltkSpecificResource< dw::core::ui::RadioButtonResource >.
Definition at line 278 of file ui.cc.
Referenced by dw::core::ui::Embed::draw().
|
inlineprotected |
Definition at line 351 of file ui.hh.
References activateEmitter, and dw::core::ui::Resource::ActivateEmitter::emitActivate().
|
inlineprotected |
Definition at line 353 of file ui.hh.
References clickedEmitter, and dw::core::ui::Resource::ClickedEmitter::emitClicked().
Referenced by dw::core::ui::Embed::buttonPressImpl(), dw::fltk::ui::FltkLabelButtonResource::widgetCallback(), and dw::fltk::ui::FltkComplexButtonResource::widgetCallback().
|
private |
Definition at line 286 of file ui.cc.
References activateEmitter, and dw::core::ui::Resource::ActivateEmitter::emitEnter().
Referenced by dw::core::ui::Embed::enterNotifyImpl().
|
private |
Definition at line 291 of file ui.cc.
References activateEmitter, and dw::core::ui::Resource::ActivateEmitter::emitLeave().
Referenced by dw::core::ui::Embed::leaveNotifyImpl().
|
virtual |
Reimplemented in dw::core::ui::ComplexButtonResource.
Definition at line 244 of file ui.cc.
References lout::misc::notImplemented().
Referenced by dw::core::ui::Embed::getAvailHeightOfChild().
|
virtual |
Reimplemented in dw::core::ui::ComplexButtonResource.
Definition at line 237 of file ui.cc.
References lout::misc::notImplemented().
Referenced by dw::core::ui::Embed::getAvailWidthOfChild().
|
inlineprotectedvirtual |
Definition at line 348 of file ui.hh.
References embed.
Referenced by dw::core::ui::ComplexButtonResource::correctExtremesOfChild(), dw::core::ui::ComplexButtonResource::correctRequisitionOfChild(), dw::core::ui::ComplexButtonResource::getAvailHeightOfChild(), dw::core::ui::ComplexButtonResource::getAvailWidthOfChild(), dw::core::ui::ComplexButtonResource::init(), dw::core::ui::LabelButtonResource::iterator(), dw::core::ui::ComplexButtonResource::iterator(), dw::core::ui::TextResource::iterator(), dw::core::ui::CheckButtonResource::iterator(), dw::core::ui::RadioButtonResource::iterator(), and dw::core::ui::ComplexButtonResource::setEmbed().
|
virtual |
Reimplemented in dw::core::ui::ComplexButtonResource.
Definition at line 217 of file ui.cc.
References DBG_OBJ_ENTER0, DBG_OBJ_LEAVE, DBG_OBJ_MSGF, dw::core::Extremes::maxWidth, dw::core::Extremes::maxWidthIntrinsic, dw::core::Extremes::minWidth, dw::core::Extremes::minWidthIntrinsic, sizeRequest(), and dw::core::Requisition::width.
Referenced by dw::core::ui::Embed::getExtremesSimpl().
|
pure virtual |
Implemented in dw::fltk::ui::FltkSpecificResource< dw::core::ui::CheckButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::ComplexButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::EntryResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::LabelButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::ListResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::MultiLineTextResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::OptionMenuResource >, and dw::fltk::ui::FltkSpecificResource< dw::core::ui::RadioButtonResource >.
|
pure virtual |
|
inlineprotected |
Definition at line 344 of file ui.hh.
References embed, and dw::core::Widget::queueResize().
Referenced by dw::fltk::ui::FltkEntryResource::setDisplayed(), and dw::fltk::ui::FltkLabelButtonResource::setLabel().
|
virtual |
Reimplemented in dw::fltk::ui::FltkEntryResource.
Definition at line 274 of file ui.cc.
Referenced by dw::core::ui::Embed::setDisplayed().
|
protectedvirtual |
Reimplemented in dw::core::ui::ComplexButtonResource.
Definition at line 212 of file ui.cc.
References embed.
Referenced by dw::core::ui::Embed::Embed(), and dw::core::ui::ComplexButtonResource::setEmbed().
|
pure virtual |
Implemented in dw::fltk::ui::FltkSpecificResource< dw::core::ui::CheckButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::ComplexButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::EntryResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::LabelButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::ListResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::MultiLineTextResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::OptionMenuResource >, and dw::fltk::ui::FltkSpecificResource< dw::core::ui::RadioButtonResource >.
Referenced by dw::core::ui::Embed::setEnabled().
|
virtual |
Reimplemented in dw::fltk::ui::FltkSpecificResource< dw::core::ui::CheckButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::ComplexButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::EntryResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::LabelButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::ListResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::MultiLineTextResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::OptionMenuResource >, and dw::fltk::ui::FltkSpecificResource< dw::core::ui::RadioButtonResource >.
Definition at line 282 of file ui.cc.
Referenced by dw::core::ui::Embed::setStyle().
|
virtual |
Reimplemented in dw::core::ui::ComplexButtonResource, dw::fltk::ui::FltkSpecificResource< dw::core::ui::CheckButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::ComplexButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::EntryResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::LabelButtonResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::ListResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::MultiLineTextResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::OptionMenuResource >, dw::fltk::ui::FltkSpecificResource< dw::core::ui::RadioButtonResource >, dw::fltk::ui::FltkComplexButtonResource, and dw::fltk::ui::FltkEntryResource.
Definition at line 233 of file ui.cc.
Referenced by dw::core::ui::Embed::sizeAllocateImpl().
|
pure virtual |
|
private |
Definition at line 338 of file ui.hh.
Referenced by connectActivate(), emitActivate(), emitEnter(), and emitLeave().
|
private |
Definition at line 339 of file ui.hh.
Referenced by connectClicked(), and emitClicked().
|
private |
Definition at line 337 of file ui.hh.
Referenced by getEmbed(), queueResize(), Resource(), setEmbed(), and dw::core::ui::ComplexButtonResource::setEmbed().