Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
dw::fltk::ui::FltkEntryResource Class Reference

#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
Iteratoriterator (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.
 
virtual bool equals (Object *other)
 Returns, whether two objects are equal.
 
virtual int hashValue ()
 Return a hash value for the object.
 
virtual Objectclone ()
 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 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)
 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 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
FltkViewview
 
Fl_Widget * widget
 
core::Allocation allocation
 
FltkPlatformplatform
 
core::style::Stylestyle
 

Detailed Description

Bug:
Maximal length not supported yet.
Todo:
Text values are not synchronized (not needed in dillo).

Definition at line 297 of file fltkui.hh.

Constructor & Destructor Documentation

◆ FltkEntryResource()

dw::fltk::ui::FltkEntryResource::FltkEntryResource ( FltkPlatform platform,
int  size,
bool  password,
const char *  label,
const char *  placeholder 
)

◆ ~FltkEntryResource()

dw::fltk::ui::FltkEntryResource::~FltkEntryResource ( )

Definition at line 880 of file fltkui.cc.

References initText, label, and placeholder.

Member Function Documentation

◆ createNewWidget()

◆ getText()

const char * dw::fltk::ui::FltkEntryResource::getText ( )
virtual

Implements dw::core::ui::TextResource.

Definition at line 989 of file fltkui.cc.

References dw::fltk::ui::FltkResource::widget.

◆ isEditable()

bool dw::fltk::ui::FltkEntryResource::isEditable ( )
virtual

Implements dw::core::ui::TextResource.

Definition at line 1003 of file fltkui.cc.

References editable.

◆ setDisplayed()

void dw::fltk::ui::FltkEntryResource::setDisplayed ( bool  displayed)
privatevirtual

◆ setEditable()

void dw::fltk::ui::FltkEntryResource::setEditable ( bool  editable)
virtual

Implements dw::core::ui::TextResource.

Definition at line 1008 of file fltkui.cc.

References editable.

◆ setMaxLength()

void dw::fltk::ui::FltkEntryResource::setMaxLength ( int  maxlen)
virtual

Implements dw::core::ui::EntryResource.

Definition at line 1013 of file fltkui.cc.

References dw::fltk::ui::FltkResource::widget.

◆ setText()

void dw::fltk::ui::FltkEntryResource::setText ( const char *  text)
virtual

Implements dw::core::ui::TextResource.

Definition at line 994 of file fltkui.cc.

References dStrdup(), initText, and dw::fltk::ui::FltkResource::widget.

◆ setWidgetStyle()

void dw::fltk::ui::FltkEntryResource::setWidgetStyle ( Fl_Widget *  widget,
core::style::Style style 
)
protectedvirtual

◆ sizeAllocate()

◆ sizeRequest()

◆ widgetCallback()

void dw::fltk::ui::FltkEntryResource::widgetCallback ( Fl_Widget *  widget,
void *  data 
)
staticprivate

Definition at line 984 of file fltkui.cc.

Referenced by createNewWidget().

Member Data Documentation

◆ editable

bool dw::fltk::ui::FltkEntryResource::editable
private

Definition at line 307 of file fltkui.hh.

Referenced by FltkEntryResource(), isEditable(), and setEditable().

◆ initText

const char* dw::fltk::ui::FltkEntryResource::initText
private

Definition at line 303 of file fltkui.hh.

Referenced by createNewWidget(), FltkEntryResource(), setText(), and ~FltkEntryResource().

◆ label

char* dw::fltk::ui::FltkEntryResource::label
private

◆ label_w

int dw::fltk::ui::FltkEntryResource::label_w
private

Definition at line 305 of file fltkui.hh.

Referenced by FltkEntryResource(), setWidgetStyle(), sizeAllocate(), and sizeRequest().

◆ password

bool dw::fltk::ui::FltkEntryResource::password
private

Definition at line 302 of file fltkui.hh.

Referenced by createNewWidget(), and FltkEntryResource().

◆ placeholder

char* dw::fltk::ui::FltkEntryResource::placeholder
private

Definition at line 306 of file fltkui.hh.

Referenced by createNewWidget(), FltkEntryResource(), and ~FltkEntryResource().

◆ size

int dw::fltk::ui::FltkEntryResource::size
private

Definition at line 301 of file fltkui.hh.

Referenced by FltkEntryResource(), and sizeRequest().


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