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

#include <fltkui.hh>

Public Member Functions

 FltkListResource (FltkPlatform *platform, core::ui::ListResource::SelectionMode selectionMode, int rows)
 
 ~FltkListResource ()
 
void addItem (const char *str, bool enabled, bool selected)
 
void setItem (int index, bool selected)
 
void pushGroup (const char *name, bool enabled)
 
void popGroup ()
 
void sizeRequest (core::Requisition *requisition)
 
bool isSelected (int index)
 
- Public Member Functions inherited from dw::fltk::ui::FltkSelectionResource< dw::core::ui::ListResource >
 FltkSelectionResource (FltkPlatform *platform)
 
dw::core::Iteratoriterator (dw::core::Content::Type mask, bool atEnd)
 
- 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

Fl_Widget * createNewWidget (core::Allocation *allocation)
 
void setWidgetStyle (Fl_Widget *widget, core::style::Style *style)
 
int getNumberOfItems ()
 
int getMaxItemWidth ()
 
- Protected Member Functions inherited from dw::fltk::ui::FltkSelectionResource< dw::core::ui::ListResource >
virtual bool setSelectedItems ()
 
- 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 Member Functions

void * newItem (const char *str, bool enabled, bool selected)
 

Static Private Member Functions

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

Private Attributes

int currDepth
 
int colWidths [4]
 
int showRows
 
ListResource::SelectionMode mode
 

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 503 of file fltkui.hh.

Constructor & Destructor Documentation

◆ FltkListResource()

dw::fltk::ui::FltkListResource::FltkListResource ( FltkPlatform platform,
core::ui::ListResource::SelectionMode  selectionMode,
int  rows 
)

◆ ~FltkListResource()

dw::fltk::ui::FltkListResource::~FltkListResource ( )

Definition at line 1584 of file fltkui.cc.

Member Function Documentation

◆ addItem()

void dw::fltk::ui::FltkListResource::addItem ( const char *  str,
bool  enabled,
bool  selected 
)
virtual

◆ createNewWidget()

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

◆ getMaxItemWidth()

int dw::fltk::ui::FltkListResource::getMaxItemWidth ( )
protected

Definition at line 1728 of file fltkui.cc.

References dw::fltk::ui::FltkResource::widget.

Referenced by sizeRequest().

◆ getNumberOfItems()

int dw::fltk::ui::FltkListResource::getNumberOfItems ( )
protected

Definition at line 1763 of file fltkui.cc.

References dw::fltk::ui::FltkResource::widget.

◆ isSelected()

bool dw::fltk::ui::FltkListResource::isSelected ( int  index)

Definition at line 1768 of file fltkui.cc.

References dw::fltk::ui::FltkResource::widget.

◆ newItem()

void * dw::fltk::ui::FltkListResource::newItem ( const char *  str,
bool  enabled,
bool  selected 
)
private

◆ popGroup()

void dw::fltk::ui::FltkListResource::popGroup ( )
virtual

◆ pushGroup()

void dw::fltk::ui::FltkListResource::pushGroup ( const char *  name,
bool  enabled 
)
virtual

◆ setItem()

void dw::fltk::ui::FltkListResource::setItem ( int  index,
bool  selected 
)
virtual

◆ setWidgetStyle()

void dw::fltk::ui::FltkListResource::setWidgetStyle ( Fl_Widget *  widget,
core::style::Style style 
)
protectedvirtual

◆ sizeRequest()

◆ widgetCallback()

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

Definition at line 1621 of file fltkui.cc.

References dw::fltk::ui::FltkResource::widget.

Referenced by createNewWidget().

Member Data Documentation

◆ colWidths

int dw::fltk::ui::FltkListResource::colWidths[4]
private

Definition at line 515 of file fltkui.hh.

Referenced by createNewWidget(), and setWidgetStyle().

◆ currDepth

int dw::fltk::ui::FltkListResource::currDepth
private

Definition at line 514 of file fltkui.hh.

Referenced by newItem(), popGroup(), and pushGroup().

◆ mode

ListResource::SelectionMode dw::fltk::ui::FltkListResource::mode
private

Definition at line 517 of file fltkui.hh.

Referenced by createNewWidget(), and FltkListResource().

◆ showRows

int dw::fltk::ui::FltkListResource::showRows
private

Definition at line 516 of file fltkui.hh.

Referenced by FltkListResource(), newItem(), and sizeRequest().


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