13#if defined(LECUI_EXPORTS)
15#include "../containers/page.h"
17#include <liblec/lecui/form.h>
44 std::string _font =
"Segoe UI";
45 float _font_size = 9.f;
46 color _color_text = { 0, 0, 0, 255 };
47 color _color_fill = { 0, 120, 170, 255 };
48 color _color_hot = { 0, 120, 170, 255 };
49 color _color_selected = { 0, 120, 170, 30 };
50 color _color_disabled = { 180, 180, 180, 255 };
75 std::function<void()> action =
nullptr;
78 std::function<void()> click =
nullptr;
81 std::function<void()> right_click =
nullptr;
84 std::function<void()> mouse_enter =
nullptr;
87 std::function<void()> mouse_leave =
nullptr;
94 virtual std::string&
text() = 0;
116 virtual std::string&
font() = 0;
153 const std::string&
alias() {
return _alias; }
156 basic_events _events;
159 void alias(
const std::string alias) {
163#if defined(LECUI_EXPORTS)
167 friend class table_view_impl;
168 friend class tree_view_impl;
169 friend class html_editor_impl;
170 friend class time_impl;
171 friend class date_impl;
172 friend class icon_impl;
196 std::string _font =
"Segoe UI";
197 float _font_size = 8.f;
200 color _color_border = { 255, 255, 255, 180 };
201 color _color_text = { 255, 255, 255, 255 };
333 bool enable(
const std::string& path, std::string& error);
341 bool disable(
const std::string& path, std::string& error);
349 bool show(
const std::string& path, std::string& error);
357 bool hide(
const std::string& path, std::string& error);
372 void close(
const std::string& path);
392 bool refresh(
const std::string& path, std::string& error);
RGBA color on a standard 0 to 255 scale. For the alpha channel 0 is transparent and 255 is opaque.
Definition: lecui.h:583
Page container.
Definition: page.h:32
Rectangle class.
Definition: lecui.h:158
Resize parameters.
Definition: lecui.h:363
@ bottom_left
Pin the form to the bottom left corner of the working area.
@ top_left
Pin the form to the top left corner of the working area.
@ bottom_right
Pin the form to the bottom right corner of the working area.
@ top_right
Pin the form to the top right corner of the working area.
Top level namespace for the liblec libraries.
Definition: appearance.h:19