35 #include "../api_gui.h"
36 #include "../gui_component.h"
37 #include "../../Display/Window/input_event.h"
38 #include "../../Core/Signals/callback_v0.h"
39 #include "../../Core/Signals/callback_v1.h"
40 #include "../../Core/Signals/callback_1.h"
42 class CL_LineEdit_Impl;
83 Alignment get_alignment()
const;
88 bool is_read_only()
const;
93 bool is_lowercase()
const;
98 bool is_uppercase()
const;
103 bool is_password_mode()
const;
108 int get_max_length()
const;
116 int get_text_int()
const;
119 float get_text_float()
const;
129 int get_selection_start()
const;
134 int get_selection_length()
const;
139 int get_cursor_pos()
const;
161 void set_select_all_on_focus_gain(
bool enable);
169 void set_alignment(Alignment alignment);
174 void set_read_only(
bool enable =
true);
179 void set_lowercase(
bool enable =
true);
184 void set_uppercase(
bool enable =
true);
189 void set_password_mode(
bool enable =
true);
195 void set_numeric_mode(
bool enable =
true,
bool decimals =
false);
200 void set_max_length(
int length);
210 void set_text(
int number);
216 void set_text(
float number,
int num_decimal_places = 6);
222 void set_selection(
int pos,
int length);
225 void clear_selection();
230 void set_cursor_pos(
int pos);
233 void delete_selected_text();
236 void resize_to_fit(
int max_width);
244 void set_decimal_character(
const CL_StringRef &decimal_char);
247 void set_cursor_drawing_enabled(
bool enable);
279 CL_SharedPtr<CL_LineEdit_Impl> impl;