33 #include "../api_gui.h"
34 #include "../gui_component.h"
35 #include "../../Display/Window/input_event.h"
36 #include "../../Core/Signals/callback_v0.h"
37 #include "../../Core/Signals/callback_v1.h"
38 #include "../../Core/Signals/callback_1.h"
84 Alignment get_alignment()
const;
89 bool is_read_only()
const;
94 bool is_lowercase()
const;
99 bool is_uppercase()
const;
104 bool is_password_mode()
const;
109 int get_max_length()
const;
114 std::string get_text()
const;
117 int get_text_int()
const;
120 float get_text_float()
const;
125 std::string get_selection()
const;
130 int get_selection_start()
const;
135 int get_selection_length()
const;
140 int get_cursor_pos()
const;
143 Size get_text_size();
150 Size get_text_size(
const std::string &str);
155 float get_preferred_content_width();
160 float get_preferred_content_height(
float width);
167 void set_select_all_on_focus_gain(
bool enable);
175 void set_alignment(Alignment alignment);
180 void set_read_only(
bool enable =
true);
185 void set_lowercase(
bool enable =
true);
190 void set_uppercase(
bool enable =
true);
195 void set_password_mode(
bool enable =
true);
201 void set_numeric_mode(
bool enable =
true,
bool decimals =
false);
206 void set_max_length(
int length);
211 void set_text(
const std::string &text);
216 void set_text(
int number);
222 void set_text(
float number,
int num_decimal_places = 6);
228 void set_selection(
int pos,
int length);
231 void clear_selection();
236 void set_cursor_pos(
int pos);
239 void delete_selected_text();
242 void resize_to_fit(
int max_width);
245 void set_input_mask(
const std::string &mask);
250 void set_decimal_character(
const std::string &decimal_char);
253 void set_cursor_drawing_enabled(
bool enable);
285 std::shared_ptr<LineEdit_Impl> impl;
Definition: lineedit.h:70
GUI base component class.
Definition: gui_component.h:80
Alignment
Definition: lineedit.h:67
GUIComponent * get_named_item(const std::string &id)
Find child component with the specified component ID name.
Callback_v1.
Definition: callback_v1.h:156
Single line edit component.
Definition: lineedit.h:48
2D (width,height) size structure - Integer
Definition: size.h:157
Definition: lineedit.h:69
Callback_v0.
Definition: callback_v0.h:152