Dillo
Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
dw::fltk::ui::FltkOptionMenuResource Class Reference

#include <fltkui.hh>

Public Member Functions

 FltkOptionMenuResource (FltkPlatform *platform)
 
 ~FltkOptionMenuResource ()
 
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::OptionMenuResource >
 FltkSelectionResource (FltkPlatform *platform)
 
dw::core::Iteratoriterator (dw::core::Content::Type mask, bool atEnd)
 
- Public Member Functions inherited from dw::fltk::ui::FltkSpecificResource< dw::core::ui::OptionMenuResource >
 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::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. More...
 
virtual bool equals (Object *other)
 Returns, whether two objects are equal. More...
 
virtual int hashValue ()
 Return a hash value for the object. More...
 
virtual Objectclone ()
 Return an exact copy of the object. More...
 
virtual void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer. More...
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object. More...
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses. More...
 

Protected Member Functions

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

Private Member Functions

void enlargeMenu ()
 
Fl_Menu_Item * newItem ()
 

Static Private Member Functions

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

Private Attributes

Fl_Menu_Item * menu
 
int itemsAllocated
 
int itemsUsed
 

Additional Inherited Members

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

Constructor & Destructor Documentation

dw::fltk::ui::FltkOptionMenuResource::FltkOptionMenuResource ( FltkPlatform platform)
dw::fltk::ui::FltkOptionMenuResource::~FltkOptionMenuResource ( )

References itemsUsed, and menu.

Member Function Documentation

void dw::fltk::ui::FltkOptionMenuResource::addItem ( const char *  str,
bool  enabled,
bool  selected 
)
virtual
Fl_Widget * dw::fltk::ui::FltkOptionMenuResource::createNewWidget ( core::Allocation allocation)
protectedvirtual
void dw::fltk::ui::FltkOptionMenuResource::enlargeMenu ( )
private
int dw::fltk::ui::FltkOptionMenuResource::getMaxItemWidth ( )
protected

References itemsUsed, lout::misc::max(), and menu.

Referenced by sizeRequest().

int dw::fltk::ui::FltkOptionMenuResource::getNumberOfItems ( )
protectedvirtual
bool dw::fltk::ui::FltkOptionMenuResource::isSelected ( int  index)
virtual
Fl_Menu_Item * dw::fltk::ui::FltkOptionMenuResource::newItem ( )
private

References enlargeMenu(), itemsAllocated, itemsUsed, and menu.

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

void dw::fltk::ui::FltkOptionMenuResource::popGroup ( )
virtual
void dw::fltk::ui::FltkOptionMenuResource::pushGroup ( const char *  name,
bool  enabled 
)
virtual
void dw::fltk::ui::FltkOptionMenuResource::setItem ( int  index,
bool  selected 
)
virtual
virtual bool dw::fltk::ui::FltkOptionMenuResource::setSelectedItems ( )
inlineprotectedvirtual
void dw::fltk::ui::FltkOptionMenuResource::setWidgetStyle ( Fl_Widget *  widget,
core::style::Style style 
)
protectedvirtual
void dw::fltk::ui::FltkOptionMenuResource::sizeRequest ( core::Requisition requisition)
virtual
void dw::fltk::ui::FltkOptionMenuResource::widgetCallback ( Fl_Widget *  widget,
void *  data 
)
staticprivate

Member Data Documentation

int dw::fltk::ui::FltkOptionMenuResource::itemsAllocated
private
int dw::fltk::ui::FltkOptionMenuResource::itemsUsed
private
Fl_Menu_Item* dw::fltk::ui::FltkOptionMenuResource::menu
private

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