Dillo v3.1.1-14-g8f67d6e0
Loading...
Searching...
No Matches
dw::core::ui::ComplexButtonResource Class Referenceabstract

#include <ui.hh>

Classes

class  LayoutReceiver
 

Public Member Functions

 ComplexButtonResource ()
 
 ~ComplexButtonResource ()
 
void sizeRequest (Requisition *requisition)
 
void getExtremes (Extremes *extremes)
 
void sizeAllocate (Allocation *allocation)
 
int getAvailWidthOfChild (Widget *child, bool forceValue)
 
int getAvailHeightOfChild (Widget *child, bool forceValue)
 
void correctRequisitionOfChild (Widget *child, Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseWidth, bool allowDecreaseHeight)
 
void correctExtremesOfChild (Widget *child, Extremes *extremes, bool useAdjustmentWidth)
 
void containerSizeChangedForChildren ()
 
Iteratoriterator (Content::Type mask, bool atEnd)
 
int getClickX ()
 
int getClickY ()
 
- Public Member Functions inherited from dw::core::ui::Resource
 Resource ()
 
virtual ~Resource ()
 
virtual void setDisplayed (bool displayed)
 
virtual void draw (View *view, Rectangle *area, DrawingContext *context)
 
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 setEmbed (Embed *embed)
 
virtual PlatformcreatePlatform ()=0
 
virtual void setLayout (Layout *layout)=0
 
virtual int reliefXThickness ()=0
 
virtual int reliefYThickness ()=0
 
void init (Widget *widget)
 
- Protected Member Functions inherited from dw::core::ui::Resource
void queueResize (bool extremesChanged)
 
virtual EmbedgetEmbed ()
 
void emitActivate ()
 
void emitClicked (EventButton *event)
 

Protected Attributes

Layoutlayout
 
int click_x
 
int click_y
 

Private Attributes

LayoutReceiver layoutReceiver
 
WidgetchildWidget
 

Friends

class LayoutReceiver
 

Detailed Description

Definition at line 408 of file ui.hh.

Constructor & Destructor Documentation

◆ ComplexButtonResource()

dw::core::ui::ComplexButtonResource::ComplexButtonResource ( )

Definition at line 334 of file ui.cc.

References DBG_OBJ_CREATE, and layout.

◆ ~ComplexButtonResource()

dw::core::ui::ComplexButtonResource::~ComplexButtonResource ( )

Definition at line 364 of file ui.cc.

References DBG_OBJ_DELETE, and layout.

Member Function Documentation

◆ containerSizeChangedForChildren()

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

Reimplemented from dw::core::ui::Resource.

Definition at line 478 of file ui.cc.

References layout.

◆ correctExtremesOfChild()

◆ correctRequisitionOfChild()

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

◆ createPlatform()

virtual Platform * dw::core::ui::ComplexButtonResource::createPlatform ( )
protectedpure virtual

◆ getAvailHeightOfChild()

int dw::core::ui::ComplexButtonResource::getAvailHeightOfChild ( Widget child,
bool  forceValue 
)
virtual

◆ getAvailWidthOfChild()

int dw::core::ui::ComplexButtonResource::getAvailWidthOfChild ( Widget child,
bool  forceValue 
)
virtual

◆ getClickX()

int dw::core::ui::ComplexButtonResource::getClickX ( )
inline

Definition at line 458 of file ui.hh.

References click_x.

◆ getClickY()

int dw::core::ui::ComplexButtonResource::getClickY ( )
inline

Definition at line 459 of file ui.hh.

References click_y.

◆ getExtremes()

void dw::core::ui::ComplexButtonResource::getExtremes ( Extremes extremes)
virtual

◆ init()

void dw::core::ui::ComplexButtonResource::init ( Widget widget)
protected

Definition at line 342 of file ui.cc.

References DBG_OBJ_ASSOC_CHILD, dw::core::ui::Resource::getEmbed(), and layout.

◆ iterator()

Iterator * dw::core::ui::ComplexButtonResource::iterator ( Content::Type  mask,
bool  atEnd 
)
virtual
Bug:
Implementation. This is a bit more complicated: We have two layouts here.

Implements dw::core::ui::Resource.

Definition at line 483 of file ui.cc.

References dw::core::ui::Resource::getEmbed().

◆ reliefXThickness()

virtual int dw::core::ui::ComplexButtonResource::reliefXThickness ( )
protectedpure virtual

◆ reliefYThickness()

virtual int dw::core::ui::ComplexButtonResource::reliefYThickness ( )
protectedpure virtual

◆ setEmbed()

void dw::core::ui::ComplexButtonResource::setEmbed ( Embed embed)
protectedvirtual

◆ setLayout()

virtual void dw::core::ui::ComplexButtonResource::setLayout ( Layout layout)
protectedpure virtual

◆ sizeAllocate()

void dw::core::ui::ComplexButtonResource::sizeAllocate ( Allocation allocation)
virtual

◆ sizeRequest()

void dw::core::ui::ComplexButtonResource::sizeRequest ( Requisition requisition)
virtual

Friends And Related Symbol Documentation

◆ LayoutReceiver

friend class LayoutReceiver
friend

Definition at line 419 of file ui.hh.

Member Data Documentation

◆ childWidget

Widget* dw::core::ui::ComplexButtonResource::childWidget
private

Definition at line 422 of file ui.hh.

◆ click_x

int dw::core::ui::ComplexButtonResource::click_x
protected

Definition at line 426 of file ui.hh.

Referenced by getClickX(), and dw::fltk::ui::FltkComplexButtonResource::widgetCallback().

◆ click_y

int dw::core::ui::ComplexButtonResource::click_y
protected

Definition at line 426 of file ui.hh.

Referenced by getClickY(), and dw::fltk::ui::FltkComplexButtonResource::widgetCallback().

◆ layout

Layout* dw::core::ui::ComplexButtonResource::layout
protected

◆ layoutReceiver

LayoutReceiver dw::core::ui::ComplexButtonResource::layoutReceiver
private

Definition at line 420 of file ui.hh.


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