rofi  1.5.4
rofi-types.h
Go to the documentation of this file.
1 #ifndef INCLUDE_ROFI_TYPES_H
2 #define INCLUDE_ROFI_TYPES_H
3 
4 #include <glib.h>
5 G_BEGIN_DECLS
6 
10 typedef enum
11 {
38 } PropertyType;
39 
44 extern const char * const PropertyTypeName[P_NUM_TYPES];
45 
47 typedef enum
48 {
62  ROFI_HL_COLOR = 8
64 
66 typedef enum
67 {
73 
77 typedef enum
78 {
88 
92 typedef struct
93 {
95  double distance;
100 } RofiDistance;
101 
105 typedef enum
106 {
110 
114 typedef struct
115 {
117  double red;
119  double green;
121  double blue;
123  double alpha;
124 } ThemeColor;
125 
129 typedef struct
130 {
135 } RofiPadding;
136 
140 typedef struct
141 {
147 
157 typedef enum
158 {
162  WL_NORTH = 1,
164  WL_EAST = 2,
166  WL_SOUTH = 4,
168  WL_WEST = 8,
178 
179 typedef union _PropertyValue
180 {
182  int i;
184  double f;
186  char *s;
188  gboolean b;
194  struct
195  {
197  char *name;
199  struct Property *ref;
202  } link;
206  GList *list;
208 
212 typedef struct Property
213 {
215  char *name;
221 
225 typedef struct rofi_range_pair
226 {
227  unsigned int start;
228  unsigned int stop;
230 
234 typedef struct rofi_int_matcher_t
235 {
236  GRegex *regex;
237  gboolean invert;
239 
244 typedef struct _thread_state
245 {
246  void ( *callback )( struct _thread_state *t, gpointer data );
248 
249 extern GThreadPool *tpool;
250 
251 G_END_DECLS
252 #endif // INCLUDE_ROFI_TYPES_H
rofi_range_pair
Definition: rofi-types.h:226
_PropertyValue
Definition: rofi-types.h:180
rofi_range_pair
struct rofi_range_pair rofi_range_pair
P_PADDING
@ P_PADDING
Definition: rofi-types.h:23
ROFI_HL_COLOR
@ ROFI_HL_COLOR
Definition: rofi-types.h:62
PropertyType
PropertyType
Definition: rofi-types.h:11
thread_state
struct _thread_state thread_state
ThemeColor::green
double green
Definition: rofi-types.h:119
_thread_state
Definition: rofi-types.h:245
ThemeColor
Definition: rofi-types.h:115
_PropertyValue::list
GList * list
Definition: rofi-types.h:206
PropertyTypeName
const char *const PropertyTypeName[P_NUM_TYPES]
Definition: rofi-types.c:6
_PropertyValue::padding
RofiPadding padding
Definition: rofi-types.h:192
ROFI_ORIENTATION_VERTICAL
@ ROFI_ORIENTATION_VERTICAL
Definition: rofi-types.h:107
rofi_range_pair::stop
unsigned int stop
Definition: rofi-types.h:228
RofiDistance::style
RofiLineStyle style
Definition: rofi-types.h:99
RofiLineStyle
RofiLineStyle
Definition: rofi-types.h:67
RofiHighlightColorStyle::color
ThemeColor color
Definition: rofi-types.h:145
_PropertyValue::highlight
RofiHighlightColorStyle highlight
Definition: rofi-types.h:204
P_INTEGER
@ P_INTEGER
Definition: rofi-types.h:13
P_NUM_TYPES
@ P_NUM_TYPES
Definition: rofi-types.h:37
rofi_int_matcher_t
Definition: rofi-types.h:235
ThemeColor::blue
double blue
Definition: rofi-types.h:121
_PropertyValue::ref
struct Property * ref
Definition: rofi-types.h:199
Property
struct Property Property
WL_EAST
@ WL_EAST
Definition: rofi-types.h:164
ROFI_PU_EM
@ ROFI_PU_EM
Definition: rofi-types.h:82
ThemeColor::red
double red
Definition: rofi-types.h:117
P_HIGHLIGHT
@ P_HIGHLIGHT
Definition: rofi-types.h:29
rofi_int_matcher
struct rofi_int_matcher_t rofi_int_matcher
WL_NORTH_EAST
@ WL_NORTH_EAST
Definition: rofi-types.h:172
P_POSITION
@ P_POSITION
Definition: rofi-types.h:27
WL_SOUTH_WEST
@ WL_SOUTH_WEST
Definition: rofi-types.h:176
P_LIST
@ P_LIST
Definition: rofi-types.h:31
P_BOOLEAN
@ P_BOOLEAN
Definition: rofi-types.h:19
ROFI_HL_ITALIC
@ ROFI_HL_ITALIC
Definition: rofi-types.h:60
ROFI_HL_SMALL_CAPS
@ ROFI_HL_SMALL_CAPS
Definition: rofi-types.h:58
_PropertyValue::def_value
struct Property * def_value
Definition: rofi-types.h:201
RofiDistance
Definition: rofi-types.h:93
ROFI_HL_UNDERLINE
@ ROFI_HL_UNDERLINE
Definition: rofi-types.h:54
WL_CENTER
@ WL_CENTER
Definition: rofi-types.h:160
RofiHighlightColorStyle::style
RofiHighlightStyle style
Definition: rofi-types.h:143
_PropertyValue::name
char * name
Definition: rofi-types.h:197
Property
Definition: rofi-types.h:213
P_ORIENTATION
@ P_ORIENTATION
Definition: rofi-types.h:33
RofiPadding
Definition: rofi-types.h:130
_PropertyValue::s
char * s
Definition: rofi-types.h:186
ROFI_HL_STRIKETHROUGH
@ ROFI_HL_STRIKETHROUGH
Definition: rofi-types.h:56
WL_WEST
@ WL_WEST
Definition: rofi-types.h:168
WL_SOUTH_EAST
@ WL_SOUTH_EAST
Definition: rofi-types.h:174
PropertyValue
union _PropertyValue PropertyValue
_PropertyValue::link
struct _PropertyValue::@3 link
P_DOUBLE
@ P_DOUBLE
Definition: rofi-types.h:15
rofi_int_matcher_t::invert
gboolean invert
Definition: rofi-types.h:237
tpool
GThreadPool * tpool
Definition: view.c:83
Property::type
PropertyType type
Definition: rofi-types.h:217
RofiPixelUnit
RofiPixelUnit
Definition: rofi-types.h:78
rofi_range_pair::start
unsigned int start
Definition: rofi-types.h:227
WL_SOUTH
@ WL_SOUTH
Definition: rofi-types.h:166
P_STRING
@ P_STRING
Definition: rofi-types.h:17
_PropertyValue::i
int i
Definition: rofi-types.h:182
ROFI_HL_SOLID
@ ROFI_HL_SOLID
Definition: rofi-types.h:69
RofiDistance::distance
double distance
Definition: rofi-types.h:95
ThemeColor::alpha
double alpha
Definition: rofi-types.h:123
RofiPadding::right
RofiDistance right
Definition: rofi-types.h:132
WL_NORTH
@ WL_NORTH
Definition: rofi-types.h:162
WindowLocation
WindowLocation
Definition: rofi-types.h:158
_PropertyValue::b
gboolean b
Definition: rofi-types.h:188
ROFI_PU_PERCENT
@ ROFI_PU_PERCENT
Definition: rofi-types.h:84
RofiPadding::left
RofiDistance left
Definition: rofi-types.h:134
Property::value
PropertyValue value
Definition: rofi-types.h:219
Property::name
char * name
Definition: rofi-types.h:215
RofiPadding::top
RofiDistance top
Definition: rofi-types.h:131
P_INHERIT
@ P_INHERIT
Definition: rofi-types.h:35
RofiHighlightStyle
RofiHighlightStyle
Definition: rofi-types.h:48
WL_NORTH_WEST
@ WL_NORTH_WEST
Definition: rofi-types.h:170
_PropertyValue::color
ThemeColor color
Definition: rofi-types.h:190
rofi_int_matcher_t::regex
GRegex * regex
Definition: rofi-types.h:236
ROFI_HL_NONE
@ ROFI_HL_NONE
Definition: rofi-types.h:50
RofiDistance::type
RofiPixelUnit type
Definition: rofi-types.h:97
_thread_state::callback
void(* callback)(struct _thread_state *t, gpointer data)
Definition: rofi-types.h:246
ROFI_HL_BOLD
@ ROFI_HL_BOLD
Definition: rofi-types.h:52
RofiPadding::bottom
RofiDistance bottom
Definition: rofi-types.h:133
P_LINK
@ P_LINK
Definition: rofi-types.h:25
RofiHighlightColorStyle
Definition: rofi-types.h:141
_PropertyValue::f
double f
Definition: rofi-types.h:184
ROFI_PU_PX
@ ROFI_PU_PX
Definition: rofi-types.h:80
ROFI_ORIENTATION_HORIZONTAL
@ ROFI_ORIENTATION_HORIZONTAL
Definition: rofi-types.h:108
RofiOrientation
RofiOrientation
Definition: rofi-types.h:106
P_COLOR
@ P_COLOR
Definition: rofi-types.h:21
ROFI_HL_DASH
@ ROFI_HL_DASH
Definition: rofi-types.h:71
ROFI_PU_CH
@ ROFI_PU_CH
Definition: rofi-types.h:86