Dillo v3.1.1-111-gd4f56d0d
Loading...
Searching...
No Matches
dw::core::ui::Resource Class Referenceabstract

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 Iteratoriterator (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 EmbedgetEmbed ()
 
virtual void setEmbed (Embed *embed)
 
void emitActivate ()
 
void emitClicked (EventButton *event)
 

Private Member Functions

void emitEnter ()
 
void emitLeave ()
 

Private Attributes

Embedembed
 
ActivateEmitter activateEmitter
 
ClickedEmitter clickedEmitter
 

Friends

class Embed
 

Detailed Description

Basic interface for all resources.

See also
dw::core::ui

Definition at line 288 of file ui.hh.

Constructor & Destructor Documentation

◆ Resource()

dw::core::ui::Resource::Resource ( )
inline

Definition at line 357 of file ui.hh.

References DBG_OBJ_CREATE, and embed.

◆ ~Resource()

dw::core::ui::Resource::~Resource ( )
virtual

Definition at line 207 of file ui.cc.

References DBG_OBJ_DELETE.

Member Function Documentation

◆ connectActivate()

◆ connectClicked()

void dw::core::ui::Resource::connectClicked ( ClickedReceiver receiver)
inline

◆ containerSizeChangedForChildren()

void dw::core::ui::Resource::containerSizeChangedForChildren ( )
virtual

Reimplemented in dw::core::ui::ComplexButtonResource.

Definition at line 269 of file ui.cc.

Referenced by dw::core::ui::Embed::containerSizeChangedForChildren().

◆ correctExtremesOfChild()

void dw::core::ui::Resource::correctExtremesOfChild ( Widget child,
Extremes extremes,
bool  useAdjustmentWidth 
)
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().

◆ correctRequisitionOfChild()

void dw::core::ui::Resource::correctRequisitionOfChild ( Widget child,
Requisition requisition,
void(*)(int, int *, int *)  splitHeightFun,
bool  allowDecreaseWidth,
bool  allowDecreaseHeight 
)
virtual

◆ draw()

◆ emitActivate()

void dw::core::ui::Resource::emitActivate ( )
inlineprotected

◆ emitClicked()

◆ emitEnter()

void dw::core::ui::Resource::emitEnter ( )
private

◆ emitLeave()

void dw::core::ui::Resource::emitLeave ( )
private

◆ getAvailHeightOfChild()

int dw::core::ui::Resource::getAvailHeightOfChild ( Widget child,
bool  forceValue 
)
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().

◆ getAvailWidthOfChild()

int dw::core::ui::Resource::getAvailWidthOfChild ( Widget child,
bool  forceValue 
)
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().

◆ getEmbed()

◆ getExtremes()

◆ isEnabled()

◆ iterator()

◆ queueResize()

void dw::core::ui::Resource::queueResize ( bool  extremesChanged)
inlineprotected

◆ setDisplayed()

void dw::core::ui::Resource::setDisplayed ( bool  displayed)
virtual

Reimplemented in dw::fltk::ui::FltkEntryResource.

Definition at line 274 of file ui.cc.

Referenced by dw::core::ui::Embed::setDisplayed().

◆ setEmbed()

void dw::core::ui::Resource::setEmbed ( Embed embed)
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().

◆ setEnabled()

◆ setStyle()

◆ sizeAllocate()

◆ sizeRequest()

Friends And Related Symbol Documentation

◆ Embed

friend class Embed
friend

Definition at line 290 of file ui.hh.

Member Data Documentation

◆ activateEmitter

ActivateEmitter dw::core::ui::Resource::activateEmitter
private

Definition at line 338 of file ui.hh.

Referenced by connectActivate(), emitActivate(), emitEnter(), and emitLeave().

◆ clickedEmitter

ClickedEmitter dw::core::ui::Resource::clickedEmitter
private

Definition at line 339 of file ui.hh.

Referenced by connectClicked(), and emitClicked().

◆ embed

Embed* dw::core::ui::Resource::embed
private

The documentation for this class was generated from the following files: