FDOSTUI
FreeDOS Text User Interface
skin.h
Go to the documentation of this file.
1 /*
2  SKIN.H
3 
4  License CC0 PUBLIC DOMAIN
5 
6  To the extent possible under law, Mark J. Olesen has waived all copyright
7  and related or neighboring rights to FDOSTUI Library. This work is published
8  from: United States.
9 */
10 #ifndef __skin_h__
11 
12 #include "screen.h"
13 
14 struct skin_frame
15 {
16  screen_char_t m_hline;
17  screen_char_t m_vline;
18  screen_char_t m_top_left;
19  screen_char_t m_top_right;
20  screen_char_t m_bottom_left;
21  screen_char_t m_bottom_right;
22  screen_char_t m_middle_left;
23  screen_char_t m_middle_right;
24 };
25 
27 {
28  screen_char_t m_system;
29  screen_char_t m_close;
30  screen_char_t m_maximize;
31  screen_char_t m_minimize;
32  screen_char_t m_resize;
33  screen_char_t m_up;
34  screen_char_t m_down;
35  screen_char_t m_left;
36  screen_char_t m_right;
37  screen_char_t m_checked;
38  screen_char_t m_submenu;
39  screen_char_t m_thumb;
40  screen_char_t m_expand;
41  screen_char_t m_collapse;
42 };
43 
45 {
46  screen_char_t m_fillc;
49 };
50 
52 {
53  screen_char_t m_fillc;
58 };
59 
60 struct skin_menu
61 {
69 };
70 
72 {
77 };
78 
79 struct skin_label
80 {
83 };
84 
86 {
87  screen_char_t m_fillc;
90 };
91 
93 {
100 };
101 
102 struct skin_edit
103 {
106 };
107 
108 struct skin_tree
109 {
110  enum foreground m_fcolor;
111  enum background m_bcolor;
112  enum foreground m_selected_fcolor;
113  enum background m_selected_bcolor;
114 };
115 
116 #ifdef __cplusplus
117 extern "C" {
118 #endif
119 
120 extern struct skin_buttons _skin_buttons;
121 extern struct skin_frame _skin_frame_single;
122 extern struct skin_desktop _skin_desktop;
123 extern struct skin_window _skin_window;
124 extern struct skin_menu _skin_menu;
125 extern struct skin_label _skin_label;
126 extern struct skin_button _skin_button;
127 extern struct skin_slider _skin_slider;
128 extern struct skin_listbox _skin_listbox;
129 extern struct skin_edit _skin_edit;
130 extern struct skin_tree _skin_tree;
131 
132 extern void
134 
135 #if !defined(__CURSES__)
136 #define skin_set_defaults()
137 #endif
138 
139 #ifdef __cplusplus
140 }
141 #endif
142 
143 #define __skin_h__
144 #endif
struct skin_slider _skin_slider
slider theme
Definition: skin.c:106
enum background m_bcolor
Definition: skin.h:105
enum background m_bcolor
Definition: skin.h:74
struct skin_label _skin_label
label theme
Definition: skin.c:100
screen_char_t m_expand
Definition: skin.h:40
screen_char_t m_fillc
Definition: skin.h:87
enum foreground m_disabled_fcolor
Definition: skin.h:65
screen_char_t m_hline
Definition: skin.h:16
menu theme
Definition: skin.h:60
screen_char_t m_fillc
Definition: skin.h:46
enum background m_highlight_bcolor
Definition: skin.h:97
screen drawing routines (no clipping) The draw.h module contians clipping routines.
enum background m_bcolor
Definition: skin.h:82
struct skin_window _skin_window
window theme
Definition: skin.c:66
screen_char_t m_bottom_left
Definition: skin.h:20
enum foreground m_fcolor
Definition: skin.h:73
enum background m_selected_bcolor
Definition: skin.h:64
screen_char_t m_system
Definition: skin.h:28
enum background m_bcolor
Definition: skin.h:48
struct skin_edit _skin_edit
edit theme
Definition: skin.c:123
desktop theme
Definition: skin.h:44
enum background m_text_bcolor
Definition: skin.h:57
screen_char_t m_resize
Definition: skin.h:32
screen_char_t m_collapse
Definition: skin.h:41
enum background m_bcolor
Definition: skin.h:89
tree theme
Definition: skin.h:108
enum foreground m_focused
Definition: skin.h:75
enum foreground m_fcolor
Definition: skin.h:104
enum background m_bcolor
Definition: skin.h:55
enum foreground m_fcolor
Definition: skin.h:88
frame theme
Definition: skin.h:14
struct skin_tree _skin_tree
tree theme
Definition: skin.c:129
listbox theme
Definition: skin.h:92
screen_char_t m_close
Definition: skin.h:29
struct skin_desktop _skin_desktop
desktop theme
Definition: skin.c:59
struct skin_menu _skin_menu
menu theme
Definition: skin.c:75
struct skin_frame _skin_frame_single
single frame theme
Definition: skin.c:12
label theme
Definition: skin.h:79
theme for all types of single buttons
Definition: skin.h:26
screen_char_t m_fillc
Definition: skin.h:53
enum foreground m_selected_fcolor
Definition: skin.h:63
slider theme
Definition: skin.h:85
screen_char_t m_submenu
Definition: skin.h:38
background
background color
Definition: screen.h:117
screen_char_t m_middle_right
Definition: skin.h:23
screen_char_t m_minimize
Definition: skin.h:31
enum foreground m_hotkey_fcolor
Definition: skin.h:67
struct skin_button _skin_button
button theme
Definition: skin.c:92
screen_char_t m_top_right
Definition: skin.h:19
enum foreground m_highlight_fcolor
Definition: skin.h:96
struct skin_listbox _skin_listbox
listbox theme
Definition: skin.c:113
screen_char_t m_left
Definition: skin.h:35
screen_char_t m_right
Definition: skin.h:36
edit theme
Definition: skin.h:102
enum foreground m_text_fcolor
Definition: skin.h:56
enum background m_shadow
Definition: skin.h:76
enum background m_bcolor
Definition: skin.h:95
screen_char_t m_maximize
Definition: skin.h:30
screen_char_t m_vline
Definition: skin.h:17
foreground
foreground colors
Definition: screen.h:43
enum background m_selected_bcolor
Definition: skin.h:99
enum foreground m_fcolor
Definition: skin.h:94
enum foreground m_selected_fcolor
Definition: skin.h:98
screen_char_t m_bottom_right
Definition: skin.h:21
struct skin_window m_window
Definition: skin.h:62
screen_char_t m_middle_left
Definition: skin.h:22
screen_char_t m_thumb
Definition: skin.h:39
enum background m_disabled_bcolor
Definition: skin.h:66
void skin_set_defaults()
load default skin attributes
Definition: skin.c:141
enum foreground m_fcolor
Definition: skin.h:54
screen_char_t m_checked
Definition: skin.h:37
button theme
Definition: skin.h:71
enum foreground m_fcolor
Definition: skin.h:47
screen_char_t m_down
Definition: skin.h:34
window theme
Definition: skin.h:51
struct skin_buttons _skin_buttons
buttons theme
Definition: skin.c:24
enum foreground m_fcolor
Definition: skin.h:81
screen_char_t m_top_left
Definition: skin.h:18
screen_char_t m_up
Definition: skin.h:33
enum background m_hotkey_bcolor
Definition: skin.h:68