Dillo v3.1.1-98-g318d1f14
|
#include <fltkui.hh>
Public Member Functions | |
FltkMultiLineTextResource (FltkPlatform *platform, int cols, int rows, const char *placeholder) | |
~FltkMultiLineTextResource () | |
void | sizeRequest (core::Requisition *requisition) |
const char * | getText () |
void | setText (const char *text) |
bool | isEditable () |
void | setEditable (bool editable) |
Public Member Functions inherited from dw::fltk::ui::FltkSpecificResource< dw::core::ui::MultiLineTextResource > | |
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::TextResource | |
Iterator * | iterator (Content::Type mask, bool atEnd) |
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. | |
virtual bool | equals (Object *other) |
Returns, whether two objects are equal. | |
virtual int | hashValue () |
Return a hash value for the object. | |
virtual Object * | clone () |
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) |
Protected Member Functions inherited from dw::core::ui::Resource | |
void | queueResize (bool extremesChanged) |
virtual Embed * | getEmbed () |
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) |
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 Attributes | |
bool | editable |
int | numCols |
int | numRows |
char * | placeholder |
Additional Inherited Members | |
Protected Attributes inherited from dw::fltk::ui::FltkResource | |
FltkView * | view |
Fl_Widget * | widget |
core::Allocation | allocation |
FltkPlatform * | platform |
core::style::Style * | style |
dw::fltk::ui::FltkMultiLineTextResource::FltkMultiLineTextResource | ( | FltkPlatform * | platform, |
int | cols, | ||
int | rows, | ||
const char * | placeholder | ||
) |
Definition at line 1034 of file fltkui.cc.
References DBG_OBJ_SET_NUM, dStrdup(), editable, dw::fltk::ui::FltkResource::init(), MSG_WARN, numCols, numRows, placeholder, and dw::fltk::ui::FltkResource::platform.
dw::fltk::ui::FltkMultiLineTextResource::~FltkMultiLineTextResource | ( | ) |
Definition at line 1061 of file fltkui.cc.
References placeholder.
|
protectedvirtual |
Implements dw::fltk::ui::FltkResource.
Definition at line 1067 of file fltkui.cc.
References dw::fltk::ui::FltkResource::allocation, dw::core::Allocation::ascent, dw::core::Allocation::descent, dw::fltk::ui::kf_backspace_word(), placeholder, dw::core::Allocation::width, dw::core::Allocation::x, and dw::core::Allocation::y.
|
virtual |
Implements dw::core::ui::TextResource.
Definition at line 1123 of file fltkui.cc.
References dw::fltk::ui::FltkResource::widget.
|
virtual |
Implements dw::core::ui::TextResource.
Definition at line 1133 of file fltkui.cc.
References editable.
|
virtual |
Implements dw::core::ui::TextResource.
Definition at line 1138 of file fltkui.cc.
References editable.
|
virtual |
Implements dw::core::ui::TextResource.
Definition at line 1128 of file fltkui.cc.
References dw::fltk::ui::FltkResource::widget.
|
protectedvirtual |
Reimplemented from dw::fltk::ui::FltkResource.
Definition at line 1082 of file fltkui.cc.
References dw::fltk::ui::FltkResource::setWidgetStyle(), dw::fltk::ui::FltkResource::style, and dw::fltk::ui::FltkResource::widget.
|
virtual |
Implements dw::core::ui::Resource.
Definition at line 1095 of file fltkui.cc.
References dw::core::style::Font::ascent, dw::core::Requisition::ascent, DBG_OBJ_ENTER0, DBG_OBJ_LEAVE, DBG_OBJ_MSGF, dw::core::style::Font::descent, dw::core::Requisition::descent, dw::fltk::FltkFont::font, dw::core::style::StyleAttrs::font, numCols, numRows, dw::fltk::ui::RELIEF_X_THICKNESS, dw::fltk::ui::RELIEF_Y_THICKNESS, dw::core::style::FontAttrs::size, dw::fltk::ui::FltkResource::style, and dw::core::Requisition::width.
|
private |
Definition at line 336 of file fltkui.hh.
Referenced by FltkMultiLineTextResource(), isEditable(), and setEditable().
|
private |
Definition at line 337 of file fltkui.hh.
Referenced by FltkMultiLineTextResource(), and sizeRequest().
|
private |
Definition at line 337 of file fltkui.hh.
Referenced by FltkMultiLineTextResource(), and sizeRequest().
|
private |
Definition at line 338 of file fltkui.hh.
Referenced by createNewWidget(), FltkMultiLineTextResource(), and ~FltkMultiLineTextResource().