rofi  1.6.0
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 {
40 } PropertyType;
41 
46 extern const char * const PropertyTypeName[P_NUM_TYPES];
47 
49 typedef enum
50 {
66 
68 typedef enum
69 {
75 
79 typedef enum
80 {
92 
96 typedef enum
97 {
106 
107 typedef struct RofiDistanceUnit
108 {
110  double distance;
113 
116 
119 
123 
124 typedef struct
125 {
130 } RofiDistance;
131 
135 typedef enum
136 {
140 
144 typedef struct
145 {
147  double red;
149  double green;
151  double blue;
153  double alpha;
154 } ThemeColor;
155 
159 typedef struct
160 {
165 } RofiPadding;
166 
170 typedef struct
171 {
177 
187 typedef enum
188 {
192  WL_NORTH = 1,
194  WL_EAST = 2,
196  WL_SOUTH = 4,
198  WL_WEST = 8,
208 
209 typedef union _PropertyValue
210 {
212  int i;
214  double f;
216  char *s;
218  char c;
220  gboolean b;
226  struct
227  {
229  char *name;
231  struct Property *ref;
234  } link;
238  GList *list;
239 } PropertyValue;
240 
244 typedef struct Property
245 {
247  char *name;
252 } Property;
253 
257 typedef struct rofi_range_pair
258 {
259  int start;
260  int stop;
262 
266 typedef struct rofi_int_matcher_t
267 {
268  GRegex *regex;
269  gboolean invert;
271 
276 typedef struct _thread_state
277 {
278  void ( *callback )( struct _thread_state *t, gpointer data );
279 } thread_state;
280 
281 extern GThreadPool *tpool;
282 
283 G_END_DECLS
284 #endif // INCLUDE_ROFI_TYPES_H
RofiHighlightColorStyle highlight
Definition: rofi-types.h:236
struct RofiDistanceUnit RofiDistanceUnit
struct RofiDistanceUnit * right
Definition: rofi-types.h:121
RofiLineStyle
Definition: rofi-types.h:68
ThemeColor color
Definition: rofi-types.h:222
RofiPixelUnit type
Definition: rofi-types.h:112
RofiDistance bottom
Definition: rofi-types.h:163
double blue
Definition: rofi-types.h:151
double green
Definition: rofi-types.h:149
RofiHighlightStyle style
Definition: rofi-types.h:173
double red
Definition: rofi-types.h:147
struct Property * def_value
Definition: rofi-types.h:233
GList * list
Definition: rofi-types.h:238
struct rofi_range_pair rofi_range_pair
RofiHighlightStyle
Definition: rofi-types.h:49
PropertyValue value
Definition: rofi-types.h:251
PropertyType type
Definition: rofi-types.h:249
struct Property Property
RofiDistanceModifier modtype
Definition: rofi-types.h:115
RofiDistance right
Definition: rofi-types.h:162
char * name
Definition: rofi-types.h:247
const char *const PropertyTypeName[P_NUM_TYPES]
Definition: rofi-types.c:6
RofiLineStyle style
Definition: rofi-types.h:129
RofiOrientation
Definition: rofi-types.h:135
RofiDistanceModifier
Definition: rofi-types.h:96
GThreadPool * tpool
Definition: view.c:83
double alpha
Definition: rofi-types.h:153
RofiPadding padding
Definition: rofi-types.h:224
RofiDistanceUnit base
Definition: rofi-types.h:127
WindowLocation
Definition: rofi-types.h:187
struct rofi_int_matcher_t rofi_int_matcher
struct Property * ref
Definition: rofi-types.h:231
gboolean b
Definition: rofi-types.h:220
PropertyType
Definition: rofi-types.h:10
RofiPixelUnit
Definition: rofi-types.h:79
struct RofiDistanceUnit * left
Definition: rofi-types.h:118
union _PropertyValue PropertyValue
RofiDistance left
Definition: rofi-types.h:164
struct _thread_state thread_state
RofiDistance top
Definition: rofi-types.h:161