Dillo
|
#include <fltkui.hh>
Public Member Functions | |
FltkEntryResource (FltkPlatform *platform, int size, bool password, const char *label, const char *placeholder) | |
~FltkEntryResource () | |
void | sizeRequest (core::Requisition *requisition) |
void | sizeAllocate (core::Allocation *allocation) |
const char * | getText () |
void | setText (const char *text) |
bool | isEditable () |
void | setEditable (bool editable) |
void | setMaxLength (int maxlen) |
Public Member Functions inherited from dw::fltk::ui::FltkSpecificResource< dw::core::ui::EntryResource > | |
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 () |
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 Object * | clone () |
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) |
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) |
void | setDisplayed (bool displayed) |
bool | displayed () |
Private Member Functions | |
void | setDisplayed (bool displayed) |
Static Private Member Functions | |
static void | widgetCallback (Fl_Widget *widget, void *data) |
Private Attributes | |
int | size |
bool | password |
const char * | initText |
char * | label |
int | label_w |
char * | placeholder |
bool | editable |
Additional Inherited Members | |
Public Types inherited from dw::core::ui::EntryResource | |
enum | { UNLIMITED_SIZE = -1 } |
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::FltkEntryResource::FltkEntryResource | ( | FltkPlatform * | platform, |
int | size, | ||
bool | password, | ||
const char * | label, | ||
const char * | placeholder | ||
) |
dw::fltk::ui::FltkEntryResource::~FltkEntryResource | ( | ) |
References initText, label, and placeholder.
|
protectedvirtual |
|
virtual |
Implements dw::core::ui::TextResource.
References dw::fltk::ui::FltkResource::widget.
|
virtual |
Implements dw::core::ui::TextResource.
References editable.
|
privatevirtual |
Reimplemented from dw::core::ui::Resource.
References dw::core::ui::Resource::queueResize(), and dw::fltk::ui::FltkResource::setDisplayed().
|
virtual |
Implements dw::core::ui::TextResource.
References editable.
|
virtual |
Implements dw::core::ui::EntryResource.
References dw::fltk::ui::FltkResource::widget.
|
virtual |
Implements dw::core::ui::TextResource.
References initText, and dw::fltk::ui::FltkResource::widget.
|
protectedvirtual |
Reimplemented from dw::fltk::ui::FltkResource.
References label, label_w, dw::fltk::ui::RELIEF_X_THICKNESS, and dw::fltk::ui::FltkResource::setWidgetStyle().
|
virtual |
Reimplemented from dw::core::ui::Resource.
References dw::fltk::FltkView::allocateFltkWidget(), dw::fltk::ui::FltkResource::allocation, dw::core::Allocation::ascent, DBG_OBJ_MSGF, dw::core::Allocation::descent, label, label_w, dw::fltk::ui::FltkResource::sizeAllocate(), dw::fltk::ui::FltkResource::view, dw::fltk::ui::FltkResource::widget, dw::core::Allocation::width, dw::core::Allocation::x, and dw::core::Allocation::y.
|
virtual |
Implements dw::core::ui::Resource.
References dw::core::Requisition::ascent, dw::core::style::Font::ascent, DBG_OBJ_ENTER0, DBG_OBJ_LEAVE, DBG_OBJ_MSGF, dw::core::Requisition::descent, dw::core::style::Font::descent, dw::fltk::ui::FltkResource::displayed(), dw::fltk::FltkFont::font, dw::core::style::StyleAttrs::font, label_w, dw::fltk::ui::RELIEF_X_THICKNESS, dw::fltk::ui::RELIEF_Y_THICKNESS, size, dw::core::style::FontAttrs::size, dw::fltk::ui::FltkResource::style, dw::core::ui::EntryResource::UNLIMITED_SIZE, and dw::core::Requisition::width.
|
staticprivate |
Referenced by createNewWidget().
|
private |
Referenced by FltkEntryResource(), isEditable(), and setEditable().
|
private |
Referenced by createNewWidget(), FltkEntryResource(), setText(), and ~FltkEntryResource().
|
private |
Referenced by createNewWidget(), setWidgetStyle(), sizeAllocate(), and ~FltkEntryResource().
|
private |
Referenced by FltkEntryResource(), setWidgetStyle(), sizeAllocate(), and sizeRequest().
|
private |
Referenced by createNewWidget(), and FltkEntryResource().
|
private |
Referenced by createNewWidget(), and ~FltkEntryResource().
|
private |
Referenced by FltkEntryResource(), and sizeRequest().