Форма для ввода текста
More...
#include <form.hpp>
|
| Form (const Coord &coord={0, 0}, const Size &size={32, 16}, const std::string &BackgroundText="Text...", const Color::Color &FormColor=OS::sys_color_table.work_text, const Color::Color &ButtonTextColor=OS::sys_color_table.work_area, const unsigned &Margin=DefaultMargin) |
| конструктор
|
|
void | init (Coord coord={0, 0}, Size size={32, 16}, std::string BackgroundText=" ", Color::Color FormColor=OS::sys_color_table.work_text, Color::Color ButtonTextColor=OS::sys_color_table.work_area, unsigned Margin=DefaultMargin) |
|
void | Render () |
| Отрисовать форму
|
|
void | Handler () |
| Обработчик
|
|
bool | ButtonHandler () |
| Обработчик кнопки
|
|
std::string | GetInput () |
| Получить введённый текст
|
|
std::string | GetBackgroundText () |
|
Color::Color | GetBackgroundColor () |
|
| UIElement (const Coord &coord={0, 0}, const Size &size={16, 16}, const Color::Color &MainColor=0, const unsigned &Margin=DefaultMargin) |
|
Size | GetSize () |
|
void | SetSize (Size NewSize) |
|
unsigned | GetMargin () |
|
Color::Color | GetColor () |
| Получить осносной цвет элемента
|
|
void | SetColor (Color::Color NewColor) |
|
void | SetCoord (Coord NewCoord) |
|
Coord | GetCoord () |
|
UIElement & | operator= (const UIElement &Element) |
|
◆ Form()
KolibriLib::UI::Form::Form |
( |
const Coord & | coord = {0, 0}, |
|
|
const Size & | size = {32, 16}, |
|
|
const std::string & | BackgroundText = "Text...", |
|
|
const Color::Color & | FormColor = OS::sys_color_table.work_text, |
|
|
const Color::Color & | ButtonTextColor = OS::sys_color_table.work_area, |
|
|
const unsigned & | Margin = DefaultMargin ) |
конструктор
- Parameters
-
coord | позиция в коне |
size | размеры |
BackgroundText | фоновый текст(проподает когда вводится текст) |
FormColor | цвет рамки формы |
BackgroundTextColor | цвет фонового текста |
Margin | отступы рамки от текста |
◆ ButtonHandler()
bool KolibriLib::UI::Form::ButtonHandler |
( |
| ) |
|
Обработчик кнопки
- Returns
- true если на форму нажали,
◆ GetBackgroundColor()
◆ GetBackgroundText()
std::string KolibriLib::UI::Form::GetBackgroundText |
( |
| ) |
|
◆ GetInput()
std::string KolibriLib::UI::Form::GetInput |
( |
| ) |
|
The documentation for this class was generated from the following file:
- F:/KolibriOs/KolibriOS-Cpp-Lib/src/include/kolibriLib/form.hpp