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

... More...

#include <fltkui.hh>

Public Member Functions

 ~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

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

Protected Attributes

FltkViewview
 
Fl_Widget * widget
 
core::Allocation allocation
 
FltkPlatformplatform
 
core::style::Stylestyle
 

Private Attributes

bool enabled
 

Detailed Description

...

Definition at line 187 of file fltkui.hh.

Constructor & Destructor Documentation

◆ FltkResource()

dw::fltk::ui::FltkResource::FltkResource ( FltkPlatform platform)
protected

◆ ~FltkResource()

dw::fltk::ui::FltkResource::~FltkResource ( )

Member Function Documentation

◆ attachView()

◆ createNewWidget()

◆ detachView()

void dw::fltk::ui::FltkResource::detachView ( FltkView view)
virtual

◆ displayed()

bool dw::fltk::ui::FltkResource::displayed ( )
protected

◆ draw()

void dw::fltk::ui::FltkResource::draw ( core::View view,
core::Rectangle area,
core::DrawingContext context 
)

◆ init()

◆ isEnabled()

bool dw::fltk::ui::FltkResource::isEnabled ( )

Definition at line 544 of file fltkui.cc.

References enabled.

Referenced by dw::fltk::ui::FltkSpecificResource< I >::isEnabled().

◆ setDisplayed()

void dw::fltk::ui::FltkResource::setDisplayed ( bool  displayed)
protected

Definition at line 524 of file fltkui.cc.

References displayed(), and widget.

Referenced by dw::fltk::ui::FltkEntryResource::setDisplayed().

◆ setEnabled()

void dw::fltk::ui::FltkResource::setEnabled ( bool  enabled)

Definition at line 549 of file fltkui.cc.

References enabled, and widget.

Referenced by dw::fltk::ui::FltkSpecificResource< I >::setEnabled().

◆ setStyle()

void dw::fltk::ui::FltkResource::setStyle ( core::style::Style style)

◆ setWidgetStyle()

◆ sizeAllocate()

void dw::fltk::ui::FltkResource::sizeAllocate ( core::Allocation allocation)

Member Data Documentation

◆ allocation

◆ enabled

◆ platform

◆ style

◆ view

◆ widget

Fl_Widget* dw::fltk::ui::FltkResource::widget
protected

Definition at line 194 of file fltkui.hh.

Referenced by dw::fltk::ui::FltkOptionMenuResource::addItem(), attachView(), displayed(), draw(), dw::fltk::ui::FltkOptionMenuResource::enlargeMenu(), dw::fltk::ui::FltkComplexButtonResource::FltkComplexButtonResource(), dw::fltk::ui::FltkListResource::getMaxItemWidth(), dw::fltk::ui::FltkOptionMenuResource::getNumberOfItems(), dw::fltk::ui::FltkListResource::getNumberOfItems(), dw::fltk::ui::FltkEntryResource::getText(), dw::fltk::ui::FltkMultiLineTextResource::getText(), init(), dw::fltk::ui::FltkOptionMenuResource::isSelected(), dw::fltk::ui::FltkListResource::isSelected(), dw::fltk::ui::FltkListResource::newItem(), dw::fltk::ui::FltkListResource::popGroup(), setDisplayed(), setEnabled(), dw::fltk::ui::FltkOptionMenuResource::setItem(), dw::fltk::ui::FltkListResource::setItem(), dw::fltk::ui::FltkLabelButtonResource::setLabel(), dw::fltk::ui::FltkEntryResource::setMaxLength(), setStyle(), dw::fltk::ui::FltkEntryResource::setText(), dw::fltk::ui::FltkMultiLineTextResource::setText(), setWidgetStyle(), dw::fltk::ui::FltkEntryResource::setWidgetStyle(), dw::fltk::ui::FltkMultiLineTextResource::setWidgetStyle(), dw::fltk::ui::FltkOptionMenuResource::setWidgetStyle(), dw::fltk::ui::FltkListResource::setWidgetStyle(), dw::fltk::ui::FltkEntryResource::sizeAllocate(), dw::fltk::ui::FltkListResource::sizeRequest(), dw::fltk::ui::FltkComplexButtonResource::widgetCallback(), dw::fltk::ui::FltkRadioButtonResource::widgetCallback(), dw::fltk::ui::FltkListResource::widgetCallback(), and ~FltkResource().


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