class: ewol::widget::Entry


Constructor and Destructor:

+                                                        Entry                       ();
+ virtual ~Entry ();

Synopsis:

+         ewol::object::Signal<void>                     signalClick;
+ ewol::object::Signal<std::string> signalEnter;
+ ewol::object::Signal<std::string> signalModify;
+ void init (const std::string & _newData);
+ DECLARE_WIDGET_FACTORY (Entry ,
"Entry" );
# void setInternalValue (const std::string & _newData);
+ void setValue (const std::string & _newData);
+ std::string getValue () const;
+ void setMaxChar (int32_t _nbMax);
+ int32_t getMaxChar () const;
+ void setRegex (const std::string & _expression);
+ std::string getRegex () const;
# virtual void markToUpdateTextPosition ();
# virtual void updateTextPosition ();
# virtual void updateCursorPosition (const vec2 & _pos,
bool _Selection);
+ virtual void copySelectionToClipBoard (enum ewol::context::clipBoard::clipboardListe _clipboardID);
+ virtual void removeSelected ();
+ void setEmptyText (const std::string & _text);
+ const std::string & getEmptyText () const;
+ virtual void onRegenerateDisplay ();
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual bool onEventEntry (const ewol::event::Entry & _event);
+ virtual void onEventClipboard (enum ewol::context::clipBoard::clipboardListe _clipboardID);
+ virtual void calculateMinMaxSize ();
# virtual void onDraw ();
# virtual void onGetFocus ();
# virtual void onLostFocus ();
# virtual void changeStatusIn (int32_t _newStatusId);
# virtual void periodicCall (const ewol::event::Time & _event);
# virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);

Object Hierarchy:

+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Entry

Detail:

signalClick

+ ewol::object::Signal<void> signalClick;
bang on click the entry box


signalEnter

+ ewol::object::Signal<std::string> signalEnter;
Enter key is pressed


signalModify

+ ewol::object::Signal<std::string> signalModify;
data change


Entry

+  Entry ();
Contuctor


init

+ void init (const std::string & _newData);



DECLARE_WIDGET_FACTORY

+  DECLARE_WIDGET_FACTORY (Entry ,
"Entry" );



~Entry

+ virtual  ~Entry ();
Destuctor


setInternalValue

# void setInternalValue (const std::string & _newData);
internal check the value with RegExp checking


setValue

+ void setValue (const std::string & _newData);
set a new value on the entry.


getValue

+ std::string getValue () const;
get the current value in the entry


setMaxChar

+ void setMaxChar (int32_t _nbMax);
Limit the number of Unicode character in the entry


getMaxChar

+ int32_t getMaxChar () const;
Limit the number of Unicode character in the entry


setRegex

+ void setRegex (const std::string & _expression);
Limit the input entry at a regular expression... (by default it is "")


getRegex

+ std::string getRegex () const;
get the regualar expression limitation


markToUpdateTextPosition

# virtual void markToUpdateTextPosition ();
informe the system thet the text change and the start position change


updateTextPosition

# virtual void updateTextPosition ();
update the display position start == > depending of the position of the Cursor and the size of the Data inside


updateCursorPosition

# virtual void updateCursorPosition (const vec2 & _pos,
bool _Selection);
change the cursor position with the curent position requested on the display
Note: The display is automaticly requested when change apear.


copySelectionToClipBoard

+ virtual void copySelectionToClipBoard (enum ewol::context::clipBoard::clipboardListe _clipboardID);
Copy the selected data on the specify clipboard


removeSelected

+ virtual void removeSelected ();
remove the selected area
Note: This request a regeneration of the display


setEmptyText

+ void setEmptyText (const std::string & _text);
set The text displayed when nothing is in the entry.


getEmptyText

+ const std::string & getEmptyText () const;
get The text displayed when nothing is in the entry.


onRegenerateDisplay

+ virtual void onRegenerateDisplay ();
Event generated when a redraw is needed


onEventInput

+ virtual bool onEventInput (const ewol::event::Input & _event);
Event on an input of this Widget (finger, mouse, stilet)


onEventEntry

+ virtual bool onEventEntry (const ewol::event::Entry & _event);
Entry event. represent the physical event : - Keyboard (key event and move event) - Accelerometer - Joystick


onEventClipboard

+ virtual void onEventClipboard (enum ewol::context::clipBoard::clipboardListe _clipboardID);
Event on a past event == > this event is asynchronous due to all system does not support direct getting datas
Note: : need to have focus ...


calculateMinMaxSize

+ virtual void calculateMinMaxSize ();
calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM


onDraw

# virtual void onDraw ();
Common widget drawing function (called by the drawing thread [Android, X11, ...])


onGetFocus

# virtual void onGetFocus ();
Event of the focus has been grep by the current widget


onLostFocus

# virtual void onLostFocus ();
Event of the focus has been lost by the current widget


changeStatusIn

# virtual void changeStatusIn (int32_t _newStatusId);



periodicCall

# virtual void periodicCall (const ewol::event::Time & _event);
periodic call of this widget


onParameterChangeValue

# virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);