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

#include <fltkui.hh>

Public Member Functions

 FltkLabelButtonResource (FltkPlatform *platform, const char *label)
 
 ~FltkLabelButtonResource ()
 
void sizeRequest (core::Requisition *requisition)
 
const char * getLabel ()
 
void setLabel (const char *label)
 
- Public Member Functions inherited from dw::fltk::ui::FltkSpecificResource< dw::core::ui::LabelButtonResource >
 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::LabelButtonResource
Iteratoriterator (Content::Type mask, bool atEnd)
 
- Public Member Functions inherited from dw::core::ui::Resource
 Resource ()
 
virtual ~Resource ()
 
virtual void getExtremes (Extremes *extremes)
 
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)
 
void connectActivate (ActivateReceiver *receiver)
 
void connectClicked (ClickedReceiver *receiver)
 
- Public Member Functions inherited from dw::fltk::ui::FltkResource
 ~FltkResource ()
 
virtual void attachView (FltkView *view)
 
virtual void detachView (FltkView *view)
 
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

Fl_Widget * createNewWidget (core::Allocation *allocation)
 
- Protected Member Functions inherited from dw::core::ui::Resource
void queueResize (bool extremesChanged)
 
virtual EmbedgetEmbed ()
 
virtual void setEmbed (Embed *embed)
 
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 ()
 

Static Private Member Functions

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

Private Attributes

const char * label
 

Additional Inherited Members

- Protected Attributes inherited from dw::fltk::ui::FltkResource
FltkViewview
 
Fl_Widget * widget
 
core::Allocation allocation
 
FltkPlatformplatform
 
core::style::Stylestyle
 

Detailed Description

Definition at line 240 of file fltkui.hh.

Constructor & Destructor Documentation

◆ FltkLabelButtonResource()

dw::fltk::ui::FltkLabelButtonResource::FltkLabelButtonResource ( FltkPlatform platform,
const char *  label 
)

◆ ~FltkLabelButtonResource()

dw::fltk::ui::FltkLabelButtonResource::~FltkLabelButtonResource ( )

Definition at line 633 of file fltkui.cc.

References label.

Member Function Documentation

◆ createNewWidget()

Fl_Widget * dw::fltk::ui::FltkLabelButtonResource::createNewWidget ( core::Allocation allocation)
protectedvirtual

◆ getLabel()

const char * dw::fltk::ui::FltkLabelButtonResource::getLabel ( )
virtual

Implements dw::core::ui::LabelButtonResource.

Definition at line 712 of file fltkui.cc.

References label.

◆ setLabel()

void dw::fltk::ui::FltkLabelButtonResource::setLabel ( const char *  label)
virtual

◆ sizeRequest()

◆ widgetCallback()

void dw::fltk::ui::FltkLabelButtonResource::widgetCallback ( Fl_Widget *  widget,
void *  data 
)
staticprivate

Definition at line 701 of file fltkui.cc.

References dw::core::ui::Resource::emitClicked(), and dw::fltk::ui::setButtonEvent().

Referenced by createNewWidget().

Member Data Documentation

◆ label

const char* dw::fltk::ui::FltkLabelButtonResource::label
private

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