Dillo
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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

Constructor & Destructor Documentation

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

References DBG_OBJ_CREATE.

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

References DBG_OBJ_DELETE.

Member Function Documentation

void dw::core::ui::Resource::connectActivate ( ActivateReceiver receiver)
inline
void dw::core::ui::Resource::connectClicked ( ClickedReceiver receiver)
inline
void dw::core::ui::Resource::containerSizeChangedForChildren ( )
virtual
void dw::core::ui::Resource::correctExtremesOfChild ( Widget child,
Extremes extremes,
bool  useAdjustmentWidth 
)
virtual
void dw::core::ui::Resource::correctRequisitionOfChild ( Widget child,
Requisition requisition,
void(*)(int, int *, int *)  splitHeightFun,
bool  allowDecreaseWidth,
bool  allowDecreaseHeight 
)
virtual
void dw::core::ui::Resource::draw ( View view,
Rectangle area,
DrawingContext context 
)
virtual
void dw::core::ui::Resource::emitActivate ( )
inlineprotected
void dw::core::ui::Resource::emitClicked ( EventButton event)
inlineprotected
void dw::core::ui::Resource::emitEnter ( )
private
void dw::core::ui::Resource::emitLeave ( )
private
int dw::core::ui::Resource::getAvailHeightOfChild ( Widget child,
bool  forceValue 
)
virtual
int dw::core::ui::Resource::getAvailWidthOfChild ( Widget child,
bool  forceValue 
)
virtual
virtual Embed* dw::core::ui::Resource::getEmbed ( )
inlineprotectedvirtual

References embed.

void dw::core::ui::Resource::getExtremes ( Extremes extremes)
virtual
virtual bool dw::core::ui::Resource::isEnabled ( )
pure virtual
virtual Iterator* dw::core::ui::Resource::iterator ( Content::Type  mask,
bool  atEnd 
)
pure virtual
void dw::core::ui::Resource::queueResize ( bool  extremesChanged)
inlineprotected
void dw::core::ui::Resource::setDisplayed ( bool  displayed)
virtual
void dw::core::ui::Resource::setEmbed ( Embed embed)
protectedvirtual
virtual void dw::core::ui::Resource::setEnabled ( bool  enabled)
pure virtual
void dw::core::ui::Resource::setStyle ( style::Style style)
virtual
void dw::core::ui::Resource::sizeAllocate ( Allocation allocation)
virtual
virtual void dw::core::ui::Resource::sizeRequest ( Requisition requisition)
pure virtual

Friends And Related Function Documentation

friend class Embed
friend

Member Data Documentation

ActivateEmitter dw::core::ui::Resource::activateEmitter
private
ClickedEmitter dw::core::ui::Resource::clickedEmitter
private
Embed* dw::core::ui::Resource::embed
private

Referenced by getEmbed().


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