1 #ifndef __DW_FLTK_UI_HH__
2 #define __DW_FLTK_UI_HH__
4 #ifndef __INCLUDED_FROM_DW_FLTK_CORE_HH__
5 # error Do not include this file directly, use "fltkcore.hh" instead.
8 #include <FL/Fl_Button.H>
9 #include <FL/Fl_Menu.H>
10 #include <FL/Fl_Text_Buffer.H>
318 const char *label,
const char *placeholder);
325 void setText (
const char *text);
345 const char *placeholder);
351 void setText (
const char *text);
410 { it =
list->iterator (); }
464 virtual void addItem (
const char *str,
bool enabled,
bool selected) = 0;
465 virtual void setItem (
int index,
bool selected) = 0;
495 void setItem (
int index,
bool selected);
517 ListResource::SelectionMode
mode;
524 void addItem (
const char *str,
bool enabled,
bool selected);
525 void setItem (
int index,
bool selected);
526 void pushGroup (
const char *name,
bool enabled);
539 #endif // __DW_FLTK_UI_HH__
void setWidgetStyle(Fl_Widget *widget, core::style::Style *style)
Definition: fltkui.cc:911
void setStyle(core::style::Style *style)
Definition: fltkui.cc:588
void setWidgetStyle(Fl_Widget *widget, core::style::Style *style)
Definition: fltkui.cc:1081
const char * getText()
Definition: fltkui.cc:988
FltkResource(FltkPlatform *platform)
Definition: fltkui.cc:399
bool enabled
Definition: fltkui.hh:190
virtual void pushGroup(const char *name, bool enabled)=0
void setDisplayed(bool displayed)
Definition: fltkui.cc:931
bool isEnabled()
Definition: fltkui.cc:543
dw::core::Iterator * iterator(dw::core::Content::Type mask, bool atEnd)
Definition: fltkui.cc:1360
ListResource::SelectionMode mode
Definition: fltkui.hh:517
int currDepth
Definition: fltkui.hh:514
void sizeRequest(core::Requisition *requisition)
Definition: fltkui.cc:1094
void popGroup()
Definition: fltkui.cc:1716
Fl_Widget * createNewWidget(core::Allocation *allocation)
Definition: fltkui.cc:889
dw::core::Shape implemtation for simple rectangles.
Definition: types.hh:69
int size
Definition: fltkui.hh:301
Type
Definition: types.hh:199
void sizeAllocate(core::Allocation *allocation)
Definition: fltkui.cc:574
int showRows
Definition: fltkui.hh:516
SelectionMode
Definition: ui.hh:481
bool isEditable()
Definition: fltkui.cc:1002
The central class for managing and drawing a widget tree.
Definition: layout.hh:16
void setStyle(core::style::Style *style)
Definition: fltkui.cc:488
This is the base class for many other classes, which defines very common virtual methods.
Definition: object.hh:24
bool editable
Definition: fltkui.hh:336
void setEditable(bool editable)
Definition: fltkui.cc:1007
char * label
Definition: fltkui.hh:304
bool isEditable()
Definition: fltkui.cc:1132
~FltkResource()
Definition: fltkui.cc:427
bool isEnabled()
Definition: fltkui.cc:594
Iterator< T > iterator()
Definition: container.hh:416
core::style::Style * style
Definition: fltkui.hh:198
FltkListResource(FltkPlatform *platform, core::ui::ListResource::SelectionMode selectionMode, int rows)
Definition: fltkui.cc:1572
void pushGroup(const char *name, bool enabled)
Definition: fltkui.cc:1699
virtual void addItem(const char *str, bool enabled, bool selected)=0
void setText(const char *text)
Definition: fltkui.cc:1127
virtual void setItem(int index, bool selected)=0
void init(FltkPlatform *platform)
Definition: fltkui.cc:420
const char * getText()
Definition: fltkui.cc:1122
~FltkListResource()
Definition: fltkui.cc:1583
Iterators are used to iterate through the contents of a widget.
Definition: iterator.hh:19
Definition: fltkui.hh:297
bool displayed()
Definition: fltkui.cc:531
FltkPlatform * platform
Definition: fltkui.hh:196
void addItem(const char *str, bool enabled, bool selected)
Definition: fltkui.cc:1683
FltkSpecificResource(FltkPlatform *platform)
Definition: fltkui.cc:560
Fl_Widget * widget
Definition: fltkui.hh:194
void setEnabled(bool enabled)
Definition: fltkui.cc:599
void setText(const char *text)
Definition: fltkui.cc:993
virtual void detachView(FltkView *view)
Definition: fltkui.cc:459
~FltkMultiLineTextResource()
Definition: fltkui.cc:1060
Represents the allocation, i.e. actual position and size of a dw::core::Widget.
Definition: types.hh:163
int label_w
Definition: fltkui.hh:305
virtual void setWidgetStyle(Fl_Widget *widget, core::style::Style *style)
Definition: fltkui.cc:499
void setItem(int index, bool selected)
Definition: fltkui.cc:1692
virtual bool setSelectedItems()
Definition: fltkui.hh:463
~FltkSpecificResource()
Definition: fltkui.cc:569
bool password
Definition: fltkui.hh:302
virtual void popGroup()=0
This interface adds some more methods for all flkt-based views.
Definition: fltkplatform.hh:78
Definition: fltkui.hh:332
void sizeRequest(core::Requisition *requisition)
Definition: fltkui.cc:937
char * placeholder
Definition: fltkui.hh:338
Set at the top when drawing.
Definition: types.hh:294
int getMaxItemWidth()
Definition: fltkui.cc:1727
void sizeAllocate(core::Allocation *allocation)
Definition: fltkui.cc:467
void sizeRequest(core::Requisition *requisition)
Definition: fltkui.cc:1732
Fl_Widget * createNewWidget(core::Allocation *allocation)
Definition: fltkui.cc:1066
Fl_Widget * createNewWidget(core::Allocation *allocation)
Definition: fltkui.cc:1588
FltkMultiLineTextResource(FltkPlatform *platform, int cols, int rows, const char *placeholder)
Definition: fltkui.cc:1033
char * placeholder
Definition: fltkui.hh:306
~FltkEntryResource()
Definition: fltkui.cc:879
void draw(core::View *view, core::Rectangle *area, core::DrawingContext *context)
Definition: fltkui.cc:580
bool editable
Definition: fltkui.hh:307
static void widgetCallback(Fl_Widget *widget, void *data)
Definition: fltkui.cc:983
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
FltkView * view
Definition: fltkui.hh:193
An interface to encapsulate platform dependent drawing.
Definition: view.hh:16
void sizeAllocate(core::Allocation *allocation)
Definition: fltkui.cc:963
core::Allocation allocation
Definition: fltkui.hh:195
const char * initText
Definition: fltkui.hh:303
Definition: fltkui.hh:224
void setWidgetStyle(Fl_Widget *widget, core::style::Style *style)
Definition: fltkui.cc:1603
Typed version of container::untyped::Iterator.
Definition: container.hh:373
int numRows
Definition: fltkui.hh:337
Definition: fltkui.hh:503
Definition: fltkui.hh:459
virtual Fl_Widget * createNewWidget(core::Allocation *allocation)=0
void setDisplayed(bool displayed)
Definition: fltkui.cc:523
FltkSelectionResource(FltkPlatform *platform)
Definition: fltkui.hh:469
void draw(core::View *view, core::Rectangle *area, core::DrawingContext *context)
Definition: fltkui.cc:479
bool isSelected(int index)
Definition: fltkui.cc:1767
int numCols
Definition: fltkui.hh:337
void * newItem(const char *str, bool enabled, bool selected)
Definition: fltkui.cc:1638
virtual void attachView(FltkView *view)
Definition: fltkui.cc:442
int getNumberOfItems()
Definition: fltkui.cc:1762
Typed version of container::untyped::List.
Definition: container.hh:463
void setMaxLength(int maxlen)
Definition: fltkui.cc:1012
static void widgetCallback(Fl_Widget *widget, void *data)
Definition: fltkui.cc:1620
int colWidths[4]
Definition: fltkui.hh:515
void setEditable(bool editable)
Definition: fltkui.cc:1137
Definition: fltkui.hh:187
void setEnabled(bool enabled)
Definition: fltkui.cc:548
FltkEntryResource(FltkPlatform *platform, int size, bool password, const char *label, const char *placeholder)
Definition: fltkui.cc:862