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>
10#include <FL/Fl_Text_Buffer.H>
325 void setText (
const char *text);
351 void setText (
const char *text);
404 lout::container::typed::Iterator <FltkRadioButtonResource>
it;
410 {
it =
list->iterator (); }
417 lout::container::typed::List <FltkRadioButtonResource> *
list;
425 inline lout::container::typed::Iterator <FltkRadioButtonResource>
428 return list->iterator ();
465 virtual void setItem (
int index,
bool selected) = 0;
495 void setItem (
int index,
bool selected);
517 ListResource::SelectionMode
mode;
525 void setItem (
int index,
bool selected);
Set at the top when drawing.
Iterators are used to iterate through the contents of a widget.
The central class for managing and drawing a widget tree.
dw::core::Shape implemtation for simple rectangles.
An interface to encapsulate platform dependent drawing.
This interface adds some more methods for all flkt-based views.
void setWidgetStyle(Fl_Widget *widget, core::style::Style *style)
void setMaxLength(int maxlen)
void sizeRequest(core::Requisition *requisition)
void sizeAllocate(core::Allocation *allocation)
void setDisplayed(bool displayed)
void setEditable(bool editable)
static void widgetCallback(Fl_Widget *widget, void *data)
Fl_Widget * createNewWidget(core::Allocation *allocation)
void setText(const char *text)
ListResource::SelectionMode mode
void setWidgetStyle(Fl_Widget *widget, core::style::Style *style)
Fl_Widget * createNewWidget(core::Allocation *allocation)
void * newItem(const char *str, bool enabled, bool selected)
bool isSelected(int index)
static void widgetCallback(Fl_Widget *widget, void *data)
void pushGroup(const char *name, bool enabled)
void setItem(int index, bool selected)
void addItem(const char *str, bool enabled, bool selected)
void sizeRequest(core::Requisition *requisition)
void setEditable(bool editable)
void sizeRequest(core::Requisition *requisition)
Fl_Widget * createNewWidget(core::Allocation *allocation)
~FltkMultiLineTextResource()
void setText(const char *text)
void setWidgetStyle(Fl_Widget *widget, core::style::Style *style)
virtual void detachView(FltkView *view)
void setDisplayed(bool displayed)
void init(FltkPlatform *platform)
This is not a constructor, since it calls some virtual methods, which should not be done in a C++ bas...
void setEnabled(bool enabled)
void setStyle(core::style::Style *style)
void sizeAllocate(core::Allocation *allocation)
virtual void attachView(FltkView *view)
core::style::Style * style
virtual void setWidgetStyle(Fl_Widget *widget, core::style::Style *style)
void draw(core::View *view, core::Rectangle *area, core::DrawingContext *context)
core::Allocation allocation
virtual Fl_Widget * createNewWidget(core::Allocation *allocation)=0
virtual void pushGroup(const char *name, bool enabled)=0
dw::core::Iterator * iterator(dw::core::Content::Type mask, bool atEnd)
FltkSelectionResource(FltkPlatform *platform)
virtual void addItem(const char *str, bool enabled, bool selected)=0
virtual void popGroup()=0
virtual bool setSelectedItems()
virtual void setItem(int index, bool selected)=0
void setStyle(core::style::Style *style)
void draw(core::View *view, core::Rectangle *area, core::DrawingContext *context)
void sizeAllocate(core::Allocation *allocation)
void setEnabled(bool enabled)
Typed version of container::untyped::List.
This is the base class for many other classes, which defines very common virtual methods.
Dw is in this namespace, or sub namespaces of this one.
Represents the allocation, i.e.