Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
dw::fltk::ui::FltkComplexButtonResource Class Reference

#include <fltkui.hh>

Public Member Functions

 FltkComplexButtonResource (FltkPlatform *platform, dw::core::Widget *widget, bool relief)
 
 ~FltkComplexButtonResource ()
 
- Public Member Functions inherited from dw::fltk::ui::FltkSpecificResource< dw::core::ui::ComplexButtonResource >
 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::core::ui::ComplexButtonResource
 ComplexButtonResource ()
 
 ~ComplexButtonResource ()
 
void sizeRequest (Requisition *requisition)
 
void getExtremes (Extremes *extremes)
 
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)
 
void connectActivate (ActivateReceiver *receiver)
 
void connectClicked (ClickedReceiver *receiver)
 
- Public Member Functions inherited from dw::fltk::ui::FltkResource
 ~FltkResource ()
 
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.
 
virtual bool equals (Object *other)
 Returns, whether two objects are equal.
 
virtual int hashValue ()
 Return a hash value for the object.
 
virtual Objectclone ()
 Return an exact copy of the object.
 
virtual void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer.
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object.
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses.
 

Protected Member Functions

void attachView (FltkView *view)
 
void detachView (FltkView *view)
 
void sizeAllocate (core::Allocation *allocation)
 
dw::core::PlatformcreatePlatform ()
 
void setLayout (dw::core::Layout *layout)
 
int reliefXThickness ()
 
int reliefYThickness ()
 
Fl_Widget * createNewWidget (core::Allocation *allocation)
 
- Protected Member Functions inherited from dw::core::ui::ComplexButtonResource
void setEmbed (Embed *embed)
 
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 Member Functions inherited from dw::fltk::ui::FltkResource
 FltkResource (FltkPlatform *platform)
 
void init (FltkPlatform *platform)
 This is not a constructor, since it calls some virtual methods, which should not be done in a C++ base constructor.
 
virtual void setWidgetStyle (Fl_Widget *widget, core::style::Style *style)
 
void setDisplayed (bool displayed)
 
bool displayed ()
 

Protected Attributes

FltkViewtopView
 
FltkViewflatView
 
- Protected Attributes inherited from dw::core::ui::ComplexButtonResource
Layoutlayout
 
int click_x
 
int click_y
 
- Protected Attributes inherited from dw::fltk::ui::FltkResource
FltkViewview
 
Fl_Widget * widget
 
core::Allocation allocation
 
FltkPlatformplatform
 
core::style::Stylestyle
 

Static Private Member Functions

static void widgetCallback (Fl_Widget *widget, void *data)
 

Private Attributes

bool relief
 

Detailed Description

Definition at line 262 of file fltkui.hh.

Constructor & Destructor Documentation

◆ FltkComplexButtonResource()

dw::fltk::ui::FltkComplexButtonResource::FltkComplexButtonResource ( FltkPlatform platform,
dw::core::Widget widget,
bool  relief 
)

◆ ~FltkComplexButtonResource()

dw::fltk::ui::FltkComplexButtonResource::~FltkComplexButtonResource ( )

Definition at line 740 of file fltkui.cc.

Member Function Documentation

◆ attachView()

void dw::fltk::ui::FltkComplexButtonResource::attachView ( FltkView view)
protectedvirtual

◆ createNewWidget()

◆ createPlatform()

dw::core::Platform * dw::fltk::ui::FltkComplexButtonResource::createPlatform ( )
protectedvirtual

Implements dw::core::ui::ComplexButtonResource.

Definition at line 781 of file fltkui.cc.

◆ detachView()

void dw::fltk::ui::FltkComplexButtonResource::detachView ( FltkView view)
protectedvirtual

◆ reliefXThickness()

int dw::fltk::ui::FltkComplexButtonResource::reliefXThickness ( )
protectedvirtual

Implements dw::core::ui::ComplexButtonResource.

Definition at line 827 of file fltkui.cc.

References relief, and dw::fltk::ui::RELIEF_X_THICKNESS.

Referenced by createNewWidget(), and sizeAllocate().

◆ reliefYThickness()

int dw::fltk::ui::FltkComplexButtonResource::reliefYThickness ( )
protectedvirtual

Implements dw::core::ui::ComplexButtonResource.

Definition at line 832 of file fltkui.cc.

References relief, and dw::fltk::ui::RELIEF_Y_THICKNESS.

Referenced by createNewWidget(), and sizeAllocate().

◆ setLayout()

void dw::fltk::ui::FltkComplexButtonResource::setLayout ( dw::core::Layout layout)
protectedvirtual

◆ sizeAllocate()

◆ widgetCallback()

Member Data Documentation

◆ flatView

FltkView * dw::fltk::ui::FltkComplexButtonResource::flatView
protected

Definition at line 271 of file fltkui.hh.

Referenced by createNewWidget(), FltkComplexButtonResource(), setLayout(), and sizeAllocate().

◆ relief

bool dw::fltk::ui::FltkComplexButtonResource::relief
private

◆ topView

FltkView* dw::fltk::ui::FltkComplexButtonResource::topView
protected

Definition at line 271 of file fltkui.hh.

Referenced by attachView(), and FltkComplexButtonResource().


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