Dillo v3.1.1-99-gf3103cc4
Loading...
Searching...
No Matches
dw::core::ui::ListResource Class Reference

#include <ui.hh>

Public Types

enum  SelectionMode { SELECTION_EXACTLY_ONE , SELECTION_EXACTLY_ONE_BY_USER , SELECTION_AT_MOST_ONE , SELECTION_MULTIPLE }
 

Additional Inherited Members

- Public Member Functions inherited from dw::core::ui::SelectionResource
virtual void addItem (const char *str, bool enabled, bool selected)=0
 
virtual void setItem (int index, bool selected)=0
 
virtual void pushGroup (const char *name, bool enabled)=0
 
virtual void popGroup ()=0
 
virtual int getNumberOfItems ()=0
 
virtual bool isSelected (int index)=0
 
- Public Member Functions inherited from dw::core::ui::Resource
 Resource ()
 
virtual ~Resource ()
 
virtual void sizeRequest (Requisition *requisition)=0
 
virtual void getExtremes (Extremes *extremes)
 
virtual void sizeAllocate (Allocation *allocation)
 
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)
 
virtual void draw (View *view, Rectangle *area, DrawingContext *context)
 
virtual Iteratoriterator (Content::Type mask, bool atEnd)=0
 
virtual void setStyle (style::Style *style)
 
virtual bool isEnabled ()=0
 
virtual void setEnabled (bool enabled)=0
 
void connectActivate (ActivateReceiver *receiver)
 
void connectClicked (ClickedReceiver *receiver)
 
- 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)
 

Detailed Description

Definition at line 478 of file ui.hh.

Member Enumeration Documentation

◆ SelectionMode

Enumerator
SELECTION_EXACTLY_ONE 

Exactly one item is selected.

If no item is selected initially, the first one is selected.

SELECTION_EXACTLY_ONE_BY_USER 

Exactly one item is selected, except possibly at the beginning.

If no item is selected initially, no one is selected automatically. The user may not unselect the only selected item.

SELECTION_AT_MOST_ONE 

At most one item is selected.

If no item is selected initially, no one is selected automatically. The user may unselect the only selected item.

SELECTION_MULTIPLE 

An arbitrary number of items may be selected.

Definition at line 481 of file ui.hh.


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