#include <Entry.hpp>

Inheritance diagram for ewol::widget::Entry:
ewol::Widget ewol::Object ememory::EnableSharedFromThis< Object > eproperty::Interface ememory::EnableSharedFromThisBase

Public Member Functions

 Entry ()
 
void init () override
 
 DECLARE_WIDGET_FACTORY (Entry, "Entry")
 
virtual ~Entry ()
 
virtual void copySelectionToClipBoard (enum gale::context::clipBoard::clipboardListe _clipboardID)
 
virtual void removeSelected ()
 
void onRegenerateDisplay () override
 
bool onEventInput (const ewol::event::Input &_event) override
 
bool onEventEntry (const ewol::event::Entry &_event) override
 
void onEventClipboard (enum gale::context::clipBoard::clipboardListe _clipboardID) override
 
void calculateMinMaxSize () override
 
- Public Member Functions inherited from ewol::Widget
virtual ~Widget ()
 
virtual vec2 relativePosition (const vec2 &_pos)
 
virtual void onChangeSize ()
 
virtual void calculateSize ()
 
virtual vec2 getSize ()
 
virtual void setSize (const vec2 &_value)
 
virtual vec2 getCalculateMinSize ()
 
virtual vec2 getCalculateMaxSize ()
 
virtual void setOffset (const vec2 &_newVal)
 
virtual const vec2getOffset ()
 
virtual void setZoom (float _newVal)
 
virtual float getZoom ()
 
virtual void changeZoom (float _range)
 
virtual void setOrigin (const vec2 &_pos)
 
virtual vec2 getOrigin ()
 
void setNoMinSize ()
 
virtual void checkMinSize ()
 
void setNoMaxSize ()
 
virtual void checkMaxSize ()
 
virtual bvec2 canExpand ()
 
const bvec2canFill ()
 
virtual bool getFocus ()
 
virtual bool setFocus ()
 
virtual bool rmFocus ()
 
virtual void keepFocus ()
 
virtual int32_t getMouseLimit ()
 
virtual void setMouseLimit (int32_t _numberState)
 
virtual bool getKeyboardRepeate ()
 
virtual ewol::WidgetShared getWidgetAtPos (const vec2 &_pos)
 
virtual bool systemEventInput (ewol::event::InputSystem &_event)
 
virtual bool systemEventEntry (ewol::event::EntrySystem &_event)
 
virtual bool onEventShortCut (const gale::key::Special &_special, char32_t _unicodeValue, enum gale::key::keyboard _kbMove, bool _isDown)
 
virtual void systemDraw (const DrawProperty &_displayProp)
 
virtual void grabCursor ()
 
virtual void unGrabCursor ()
 
virtual bool getGrabStatus ()
 
virtual void setCursor (enum gale::context::cursor _newCursor)
 
virtual enum gale::context::cursor getCursor ()
 
virtual bool loadXML (const exml::Element &_node) override
 
void requestUpdateSize ()
 
ewol::widget::ManagergetWidgetManager ()
 
ememory::SharedPtr< ewol::widget::WindowsgetWindows ()
 
void setAnnimationType (enum ewol::Widget::annimationMode _mode, const std::string &_type)
 
void setAnnimationTime (enum ewol::Widget::annimationMode _mode, float _time)
 
bool startAnnimation (enum ewol::Widget::annimationMode _mode)
 
bool stopAnnimation ()
 
- Public Member Functions inherited from ewol::Object
 DECLARE_FACTORY (Object)
 
virtual ~Object ()
 
bool objectHasBeenCorectlyInit ()
 
virtual void destroy ()
 
bool isDestroyed () const
 
virtual void setParent (const ewol::ObjectShared &_newParent)
 
virtual void removeParent ()
 
const char *const getObjectType () const
 
std::string getTypeDescription () const
 
bool isTypeCompatible (const std::string &_type) const
 
bool getStatic ()
 
int32_t getId ()
 
bool propertySetOnWidgetNamed (const std::string &_objectName, const std::string &_config, const std::string &_value)
 
virtual bool storeXML (exml::Element &_node) const
 
void setStatusResource (bool _val)
 
bool getStatusResource () const
 
virtual ewol::ObjectShared getSubObjectNamed (const std::string &_objectName)
 
- Public Member Functions inherited from ememory::EnableSharedFromThis< Object >
ememory::SharedPtr< EMEMORY_TYPE > sharedFromThis ()
 
const ememory::SharedPtr< EMEMORY_TYPE > sharedFromThis () const
 
ememory::WeakPtr< EMEMORY_TYPE > weakFromThis ()
 
const ememory::WeakPtr< EMEMORY_TYPE > weakFromThis () const
 

Public Attributes

esignal::Signal signalClick
 
esignal::Signal< std::string > signalEnter
 
esignal::Signal< std::string > signalModify
 
eproperty::Value< std::string > propertyShape
 
eproperty::Value< std::string > propertyValue
 
eproperty::Range< int32_t > propertyMaxCharacter
 
eproperty::Value< std::string > propertyRegex
 
eproperty::Value< std::string > propertyTextWhenNothing
 
- Public Attributes inherited from ewol::Widget
eproperty::Value< gale::Dimension > propertyMinSize
 
eproperty::Value< gale::Dimension > propertyMaxSize
 
eproperty::Value< bvec2propertyExpand
 
eproperty::Value< bvec2propertyFill
 
eproperty::Value< bool > propertyHide
 
eproperty::List< enum ewol::gravitypropertyGravity
 
eproperty::Value< bool > propertyCanFocus
 
esignal::Signal< std::string > signalShortcut
 
esignal::Signal signalAnnimationStart
 
esignal::Signal< float > signalAnnimationRatio
 
esignal::Signal signalAnnimationStop
 
- Public Attributes inherited from ewol::Object
eproperty::Value< std::string > propertyName
 
- Public Attributes inherited from eproperty::Interface
eproperty::InterfaceData properties
 

Protected Member Functions

void setInternalValue (const std::string &_newData)
 
virtual void markToUpdateTextPosition ()
 
virtual void updateTextPosition ()
 
virtual void updateCursorPosition (const vec2 &_pos, bool _Selection=false)
 
void onDraw () override
 
void onGetFocus () override
 
void onLostFocus () override
 
virtual void changeStatusIn (int32_t _newStatusId)
 
void periodicCall (const ewol::event::Time &_event)
 
virtual void onChangePropertyShaper ()
 
virtual void onChangePropertyValue ()
 
virtual void onChangePropertyMaxCharacter ()
 
virtual void onChangePropertyRegex ()
 
virtual void onChangePropertyTextWhenNothing ()
 
- Protected Member Functions inherited from ewol::Widget
 Widget ()
 
virtual void setKeyboardRepeate (bool _state)
 
virtual void showKeyboard ()
 
virtual void hideKeyboard ()
 
virtual void shortCutAdd (const std::string &_descriptiveString, const std::string &_message="")
 
virtual void shortCutClean ()
 
virtual void shortCutRemove (const std::string &_message)
 
virtual void markToRedraw ()
 
virtual bool needRedraw ()
 
void addAnnimationType (enum ewol::Widget::annimationMode _mode, const char *_type)
 
virtual bool onStartAnnimation (enum ewol::Widget::annimationMode _mode)
 
virtual void onStopAnnimation ()
 
virtual void onChangePropertyCanFocus ()
 
virtual void onChangePropertyGravity ()
 
virtual void onChangePropertyHide ()
 
virtual void onChangePropertyFill ()
 
virtual void onChangePropertyExpand ()
 
virtual void onChangePropertyMaxSize ()
 
virtual void onChangePropertyMinSize ()
 
- Protected Member Functions inherited from ewol::Object
 Object ()
 
virtual void autoDestroy ()
 
virtual void requestDestroyFromChild (const ewol::ObjectShared &_child)
 
void addObjectType (const char *_type)
 

Protected Attributes

esignal::Connection m_PCH
 
- Protected Attributes inherited from ewol::Widget
vec2 m_size
 
vec2 m_minSize
 
vec2 m_maxSize
 
vec2 m_offset
 
float m_zoom
 
vec2 m_origin
 
bool m_needRegenerateDisplay
 
enum annimationMode m_annimationMode
 
float m_annimationratio
 
eproperty::List< int32_t > propertyAnnimationTypeStart
 
eproperty::Range< float > propertyAnnimationTimeStart
 
eproperty::List< int32_t > propertyAnnimationTypeStop
 
eproperty::Range< float > propertyAnnimationTimeStop
 
- Protected Attributes inherited from ewol::Object
ewol::ObjectWeak m_parent
 
bool m_destroy
 
bool m_static
 

Additional Inherited Members

- Static Public Member Functions inherited from ewol::Object
static ewol::object::ManagergetObjectManager ()
 
static ewol::ContextgetContext ()
 
static ewol::ObjectShared getObjectNamed (const std::string &_objectName)
 
- Protected Types inherited from ewol::Widget
enum  annimationMode { annimationModeEnableAdd, annimationModeEnableRemove, annimationModeDisable }
 

Detailed Description

Entry box display :

----------------------------------------------
| Editable Text |
----------------------------------------------

Constructor & Destructor Documentation

§ Entry()

ewol::widget::Entry::Entry ( )

Contuctor.

Parameters
[in]_newDataThe USting that might be set in the Entry box (no event generation!!)

§ ~Entry()

virtual ewol::widget::Entry::~Entry ( )
virtual

Destuctor.

Member Function Documentation

§ calculateMinMaxSize()

void ewol::widget::Entry::calculateMinMaxSize ( )
overridevirtual

calculate the minimum and maximum size (need to estimate expend properties of the widget)

Note
: INTERNAL EWOL SYSTEM

Reimplemented from ewol::Widget.

§ copySelectionToClipBoard()

virtual void ewol::widget::Entry::copySelectionToClipBoard ( enum gale::context::clipBoard::clipboardListe  _clipboardID)
virtual

Copy the selected data on the specify clipboard.

Parameters
[in]_clipboardIDSelected clipboard

§ markToUpdateTextPosition()

virtual void ewol::widget::Entry::markToUpdateTextPosition ( )
protectedvirtual

informe the system thet the text change and the start position change

§ onDraw()

void ewol::widget::Entry::onDraw ( )
overrideprotectedvirtual

Common widget drawing function (called by the drawing thread [Android, X11, ...])

Reimplemented from ewol::Widget.

§ onEventClipboard()

void ewol::widget::Entry::onEventClipboard ( enum gale::context::clipBoard::clipboardListe  _clipboardID)
overridevirtual

Event on a past event == > this event is asynchronous due to all system does not support direct getting datas.

Note
: need to have focus ...
Parameters
[in]modeMode of data requested

Reimplemented from ewol::Widget.

§ onEventEntry()

bool ewol::widget::Entry::onEventEntry ( const ewol::event::Entry _event)
overridevirtual

Entry event. represent the physical event :

  • Keyboard (key event and move event)
  • Accelerometer
  • Joystick
    Parameters
    [in]_eventEvent properties
    Returns
    true if the event has been used
    false if the event has not been used

Reimplemented from ewol::Widget.

§ onEventInput()

bool ewol::widget::Entry::onEventInput ( const ewol::event::Input _event)
overridevirtual

Event on an input of this Widget (finger, mouse, stilet)

Parameters
[in]_eventEvent properties
Returns
true the event is used
false the event is not used

Reimplemented from ewol::Widget.

§ onGetFocus()

void ewol::widget::Entry::onGetFocus ( )
overrideprotectedvirtual

Event of the focus has been grep by the current widget.

Reimplemented from ewol::Widget.

§ onLostFocus()

void ewol::widget::Entry::onLostFocus ( )
overrideprotectedvirtual

Event of the focus has been lost by the current widget.

Reimplemented from ewol::Widget.

§ onRegenerateDisplay()

void ewol::widget::Entry::onRegenerateDisplay ( )
overridevirtual

Event generated when a redraw is needed.

Reimplemented from ewol::Widget.

§ periodicCall()

void ewol::widget::Entry::periodicCall ( const ewol::event::Time _event)
protected

Periodic call to update grapgic display.

Parameters
[in]_eventTime generic event

§ removeSelected()

virtual void ewol::widget::Entry::removeSelected ( )
virtual

remove the selected area

Note
This request a regeneration of the display

§ setInternalValue()

void ewol::widget::Entry::setInternalValue ( const std::string &  _newData)
protected

internal check the value with RegExp checking

Parameters
[in]_newDataThe new string to display

§ updateCursorPosition()

virtual void ewol::widget::Entry::updateCursorPosition ( const vec2 _pos,
bool  _Selection = false 
)
protectedvirtual

change the cursor position with the curent position requested on the display

Parameters
[in]_posAbsolute position of the event
Note
The display is automaticly requested when change apear.

§ updateTextPosition()

virtual void ewol::widget::Entry::updateTextPosition ( )
protectedvirtual

update the display position start == > depending of the position of the Cursor and the size of the Data inside m_displayStartPosition < == updated

Member Data Documentation

§ m_PCH

esignal::Connection ewol::widget::Entry::m_PCH
protected

Periodic call handle to remove it when needed.

§ propertyMaxCharacter

eproperty::Range<int32_t> ewol::widget::Entry::propertyMaxCharacter

number max of xharacter in the list

§ propertyRegex

eproperty::Value<std::string> ewol::widget::Entry::propertyRegex

regular expression value

§ propertyTextWhenNothing

eproperty::Value<std::string> ewol::widget::Entry::propertyTextWhenNothing

Text to display when nothing in in the entry (decorated text...)

§ propertyValue

eproperty::Value<std::string> ewol::widget::Entry::propertyValue

string that must be displayed

§ signalClick

esignal::Signal ewol::widget::Entry::signalClick

bang on click the entry box

§ signalEnter

esignal::Signal<std::string> ewol::widget::Entry::signalEnter

Enter key is pressed.

§ signalModify

esignal::Signal<std::string> ewol::widget::Entry::signalModify

data change


The documentation for this class was generated from the following file:
  • framework/atria-soft/ewol/ewol/widget/Entry.hpp