|
| TextBox (Container &) |
|
| TextBox (const TextBox &)=delete |
|
bool | handle (Event &) |
| Process event. More...
|
|
void | draw (Renderer &) |
|
std::u16string_view | text () const |
| Get TextBox's text. More...
|
|
std::string | u8text () const |
|
void | u8text (std::string &str) const |
| Get TextBox's utf8 text. More...
|
|
void | set_text (std::u16string_view txt) |
| Set the text. More...
|
|
void | set_text (std::string_view txt) |
|
| Widget () |
| Construct a new Widget object. More...
|
|
| Widget (Container *parent) |
|
| Widget (Container &parent) |
|
| Widget (const Widget &)=delete |
|
bool | visible () const noexcept |
|
Vec2 | position () const noexcept |
|
Window & | master () const |
| Return The widget's master. More...
|
|
void | set_rect (const Rect &rect) |
|
void | set_rect (int x, int y, int w, int h) |
|
void | set_position (const Vec2 &vec2) |
|
int | x () const noexcept |
|
int | y () const noexcept |
|
int | w () const noexcept |
|
int | h () const noexcept |
|
bool | is_enable () const noexcept |
|
| HasSlots (const HasSlots &)=delete |
|
void | disconnect_all () |
|
◆ handle()
bool Btk::TextBox::handle |
( |
Event & |
ev | ) |
|
|
virtual |
Process event.
- Returns
- true if widget processed it
-
false if widget unprocessed it
Reimplemented from Btk::Widget.
◆ set_text()
void Btk::TextBox::set_text |
( |
std::u16string_view |
txt | ) |
|
Set the text.
- Parameters
-
txt | The UTF16 encoded string |
◆ text()
std::u16string_view Btk::TextBox::text |
( |
| ) |
const |
|
inline |
Get TextBox's text.
- Returns
- UTF16 encoded string
◆ u8text()
void Btk::TextBox::u8text |
( |
std::string & |
str | ) |
const |
Get TextBox's utf8 text.
- Parameters
-
str | The UTF8 encoded container |
The documentation for this class was generated from the following files: