Dillo v3.1.1-99-gf3103cc4
Loading...
Searching...
No Matches
dw::fltk::ui::FltkToggleButtonResource< I > Class Template Referenceabstract

#include <fltkui.hh>

Public Member Functions

 FltkToggleButtonResource (FltkPlatform *platform, bool activated)
 
 ~FltkToggleButtonResource ()
 
void sizeRequest (core::Requisition *requisition)
 
bool isActivated ()
 
void setActivated (bool activated)
 
- Public Member Functions inherited from dw::fltk::ui::FltkSpecificResource< I >
 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::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

virtual Fl_Button * createNewButton (core::Allocation *allocation)=0
 
Fl_Widget * createNewWidget (core::Allocation *allocation)
 
void setWidgetStyle (Fl_Widget *widget, core::style::Style *style)
 
- 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.
 
void setDisplayed (bool displayed)
 
bool displayed ()
 

Private Attributes

bool initActivated
 

Additional Inherited Members

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

Detailed Description

template<class I>
class dw::fltk::ui::FltkToggleButtonResource< I >

Definition at line 357 of file fltkui.hh.

Constructor & Destructor Documentation

◆ FltkToggleButtonResource()

template<class I >
dw::fltk::ui::FltkToggleButtonResource< I >::FltkToggleButtonResource ( FltkPlatform platform,
bool  activated 
)

◆ ~FltkToggleButtonResource()

Definition at line 1155 of file fltkui.cc.

Member Function Documentation

◆ createNewButton()

template<class I >
virtual Fl_Button * dw::fltk::ui::FltkToggleButtonResource< I >::createNewButton ( core::Allocation allocation)
protectedpure virtual

◆ createNewWidget()

template<class I >
Fl_Widget * dw::fltk::ui::FltkToggleButtonResource< I >::createNewWidget ( core::Allocation allocation)
protectedvirtual

Implements dw::fltk::ui::FltkResource.

Definition at line 1161 of file fltkui.cc.

◆ isActivated()

template<class I >
bool dw::fltk::ui::FltkToggleButtonResource< I >::isActivated ( )

Definition at line 1205 of file fltkui.cc.

◆ setActivated()

template<class I >
void dw::fltk::ui::FltkToggleButtonResource< I >::setActivated ( bool  activated)

Definition at line 1212 of file fltkui.cc.

Referenced by dw::fltk::ui::FltkRadioButtonResource::buttonClicked().

◆ setWidgetStyle()

template<class I >
void dw::fltk::ui::FltkToggleButtonResource< I >::setWidgetStyle ( Fl_Widget *  widget,
core::style::Style style 
)
protectedvirtual

Reimplemented from dw::fltk::ui::FltkResource.

Definition at line 1170 of file fltkui.cc.

References dw::fltk::ui::FltkResource::setWidgetStyle().

◆ sizeRequest()

Member Data Documentation

◆ initActivated

template<class I >
bool dw::fltk::ui::FltkToggleButtonResource< I >::initActivated
private

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