KolibriLib
Loading...
Searching...
No Matches
windowBase.hpp
1#ifndef __WINDOWBASE_H__
2#define __WINDOWBASE_H__
3
4
5#include <sys/ksys.h>
6
7
8namespace KolibriLib
9{
11 namespace Color
12 {
14 const ksys_colors_table_t DefaultColorTable = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
15
20 bool ComparisonColorsTables(ksys_colors_table_t a, ksys_colors_table_t b)
21 {
22 if(a.frame_area == b.frame_area && a.grab_bar == b.grab_bar && a.grab_bar_button == a.grab_bar_button && a.grab_button_text == b.grab_button_text && a.grab_text == b.grab_text)
23 {
24 return true;
25 }
26 return false;
27 }
28 }
29
31 namespace window
32 {
33
34
36 const point DefaultWindowSize = {400, 400};
37
39 const point DefaultWindowCoord = {100, 100};
40
41
42
43
44
47 inline void UnfocusWindow(int slot)
48 {
49 _ksys_unfocus_window(slot);
50 }
53 inline void FocusWindow(int slot)
54 {
55 _ksys_focus_window(slot);
56 }
57
58 } // namespace window
59
60
61} // namespace KolibriLib
62
63
64#endif // __WINDOWBASE_H__
const ksys_colors_table_t DefaultColorTable
Таблица цветов по умолчанию
Definition windowBase.hpp:14
bool ComparisonColorsTables(ksys_colors_table_t a, ksys_colors_table_t b)
Сравнить две таблица цветов
Definition windowBase.hpp:20
const point DefaultWindowCoord
Соординаты окна по умолчанию
Definition windowBase.hpp:39
const point DefaultWindowSize
Размер окна поумолчанию
Definition windowBase.hpp:36
void UnfocusWindow(int slot)
Снять фокус с окна
Definition windowBase.hpp:47
void FocusWindow(int slot)
Поставить фокус на окно
Definition windowBase.hpp:53
Основное пространство имён
Definition base.hpp:17
Просто точка
Definition base.hpp:22