source: mainline/uspace/lib/ui/private/resource.h@ d7f7a4a

Last change on this file since d7f7a4a was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 4 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 2.7 KB
Line 
1/*
2 * SPDX-FileCopyrightText: 2022 Jiri Svoboda
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup libui
8 * @{
9 */
10/**
11 * @file Resource structure
12 *
13 */
14
15#ifndef _UI_PRIVATE_RESOURCE_H
16#define _UI_PRIVATE_RESOURCE_H
17
18#include <gfx/color.h>
19#include <gfx/context.h>
20#include <gfx/font.h>
21#include <gfx/typeface.h>
22#include <stdbool.h>
23#include <types/ui/resource.h>
24
25/** Actual structure of UI resources.
26 *
27 * Contains resources common accross the entire UI. This is private to libui.
28 */
29struct ui_resource {
30 /** Graphic context */
31 gfx_context_t *gc;
32 /** Typeface */
33 gfx_typeface_t *tface;
34 /** Font */
35 gfx_font_t *font;
36 /** Text mode */
37 bool textmode;
38
39 /** UI background color */
40 gfx_color_t *ui_bg_color;
41
42 /** Button frame color */
43 gfx_color_t *btn_frame_color;
44 /** Button face color */
45 gfx_color_t *btn_face_color;
46 /** Button text color */
47 gfx_color_t *btn_text_color;
48 /** Button highlight color */
49 gfx_color_t *btn_highlight_color;
50 /** Button shadow color */
51 gfx_color_t *btn_shadow_color;
52
53 /** Window face color */
54 gfx_color_t *wnd_face_color;
55 /** Window text color */
56 gfx_color_t *wnd_text_color;
57 /** Window text highlight color */
58 gfx_color_t *wnd_text_hgl_color;
59 /** Window selected text color */
60 gfx_color_t *wnd_sel_text_color;
61 /** Window selected text highlight color */
62 gfx_color_t *wnd_sel_text_hgl_color;
63 /** Window selected text background color */
64 gfx_color_t *wnd_sel_text_bg_color;
65 /** Window frame hightlight color */
66 gfx_color_t *wnd_frame_hi_color;
67 /** Window frame shadow color */
68 gfx_color_t *wnd_frame_sh_color;
69 /** Window highlight color */
70 gfx_color_t *wnd_highlight_color;
71 /** Window shadow color */
72 gfx_color_t *wnd_shadow_color;
73
74 /** Active titlebar background color */
75 gfx_color_t *tbar_act_bg_color;
76 /** Active titlebar text color */
77 gfx_color_t *tbar_act_text_color;
78 /** Inactive titlebar background color */
79 gfx_color_t *tbar_inact_bg_color;
80 /** Inactive titlebar text color */
81 gfx_color_t *tbar_inact_text_color;
82
83 /** Entry (text entry, checkbox, radio button) foreground color */
84 gfx_color_t *entry_fg_color;
85 /** Entry (text entry, checkbox, raido button) background color */
86 gfx_color_t *entry_bg_color;
87 /** Entry (text entry, checkbox, raido button) active background color */
88 gfx_color_t *entry_act_bg_color;
89 /** Entry selected text foreground color */
90 gfx_color_t *entry_sel_text_fg_color;
91 /** Entry selected text background color */
92 gfx_color_t *entry_sel_text_bg_color;
93
94 /** Scrollbar through color */
95 gfx_color_t *sbar_through_color;
96 /** Scrollbar active through color */
97 gfx_color_t *sbar_act_through_color;
98
99 /** Expose callback or @c NULL */
100 ui_expose_cb_t expose_cb;
101 /** Expose callback argument */
102 void *expose_arg;
103};
104
105#endif
106
107/** @}
108 */
Note: See TracBrowser for help on using the repository browser.