TextEntry
Object Hierarchy:
Description:
public class TextEntry :
Widget
A wiget for getting user input.
Content:
Constants:
- public const unowned string NUMERIC
String containing all numeric characters (0-9
).
- public const unowned string DECIMAL
String containing numeric characters (0-9
) and a decimal
point (.
).
- public const unowned string HEXIDECIMAL
String containing hexadecimal numeric characters (0-9
and
A-F
).
- public const unowned string UPPER_ALPHA
String containing uppercase alphabetic characters (A-Z
).
- public const unowned string LOWER_ALPHA
String containing lowercase alphabetic characters (a-z
).
- public const unowned string ALPHA
String containing all alphabetic characters (a-z
and
A-Z
).
- public const unowned string ALPHA_NUM
String containing alphanumeric characters (a-z
, A-Z
, 0-9
and .-_<space>
).
- public const unowned string SYMBOL
String containing symbol characters (!"#$%&'()*+,-./:;<=
>?@[\]^_`{|}~
).
- public const unowned string ALPHA_NUM_SYMBOL
String containing all 95 printable ASCII characters.
Properties:
- public string text { set; get; }
Gets and sets the test displayed in the text entry.
- public unowned Font font { set; get; }
Gets and sets the font used in the text entry.
- public int min_width { set; get; }
Gets and sets the minimum width for the text entry.
- public bool can_edit { set; get; }
Gets and sets the edit-ability of the text entry.
- public bool use_on_screen_keyboard { set; get; }
Gets and sets whether the text entry should use an on screen keyboard.
- public bool editing { get; }
Gets the current editing state.
- public string valid_chars { set; get; }
Gets and sets a string containing valid characters for the text entry.
- public bool insert { set; get; }
Gets and sets whether the text entry inserts or replaces text.
Creation methods:
Methods:
- public void start_editing ()
Starts an editing session.
- public void commit_editing ()
Commits the changes made in an editing session.
- public void cancel_editing ()
Cancels the changes made in an editing session.
- protected override int get_preferred_width ()
Gets the preferred width of the widget.
- protected override int get_preferred_height ()
Gets the preferred height of the widget.
- public void set_char (char c, bool move_next = false)
Sets the character at the current cursor position.
- public void delete_char (bool backspace = false)
Removes the character at the current cursor position.
- protected override void redraw ()
Notifies that this widget has changed and needs to be redrawn.
- protected override void do_layout ()
Implementations should override this method if they need to handle
laying out its contents.
- protected override void draw_content ()
Implementations should override this method.
Inherited Members:
All known members inherited from class EV3devKit.UI.Widget
All known members inherited from class GLib.Object
- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer
- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata
- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count