31#include "../View/view.h"
32#include "label_view.h"
37 class TextFieldViewImpl;
112 std::unique_ptr<TextFieldViewImpl> impl;
2D Graphics Canvas
Definition canvas.h:72
Keyboard key event.
Definition key_event.h:48
Definition text_field_view.h:40
bool is_lowercase() const
void set_text_alignment(TextAlignment value)
void set_text(const std::string &value)
bool is_uppercase() const
bool is_password_mode() const
Signal< void(KeyEvent &)> & sig_after_edit_changed()
void set_placeholder(const std::string &value)
size_t selection_start() const
void set_max_length(int length)
void set_uppercase(bool value=true)
size_t selection_length() const
void set_select_all_on_focus_gain(bool value)
void set_lowercase(bool value=true)
void set_preferred_size(int num_characters)
float calculate_preferred_height(Canvas &canvas, float width) override
Calculates the preferred height of this view.
bool is_read_only() const
std::string placeholder() const
std::string selection() const
void set_read_only(bool value=true)
float calculate_first_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the first baseline.
void set_cursor_drawing_enabled(bool value)
void delete_selected_text()
void set_selection(size_t pos, size_t length)
void set_decimal_character(const std::string &decimal_char)
void set_numeric_mode(bool enable=true, bool decimals=false)
void needs_render_delayed()
Update yourself with draw_without_layout() and with delay to prevent too frequent calls.
Signal< void()> & sig_selection_changed()
TextAlignment text_alignment() const
float calculate_last_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the last baseline.
void set_text(float number, int num_decimal_places=6)
Signal< void()> & sig_enter_pressed()
void set_input_mask(const std::string &mask)
void set_cursor_pos(int pos)
Signal< void(KeyEvent &)> & sig_before_edit_changed()
void set_password_mode(bool value=true)
int preferred_size() const
float calculate_preferred_width(Canvas &canvas) override
Calculates the preferred width of this view.
void render_content(Canvas &canvas) override
Renders the content of a view.
void set_text(int number)
View for an area of the user interface.
Definition view.h:66
@ length
value is a keyword
TextAlignment
Definition label_view.h:39