rofi  1.6.1
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 {
108 
109 typedef struct RofiDistanceUnit
110 {
112  double distance;
115 
118 
121 
125 
126 typedef struct
127 {
132 } RofiDistance;
133 
137 typedef enum
138 {
142 
146 typedef struct
147 {
149  double red;
151  double green;
153  double blue;
155  double alpha;
156 } ThemeColor;
157 
161 typedef struct
162 {
167 } RofiPadding;
168 
172 typedef struct
173 {
179 
189 typedef enum
190 {
194  WL_NORTH = 1,
196  WL_EAST = 2,
198  WL_SOUTH = 4,
200  WL_WEST = 8,
210 
211 typedef union _PropertyValue
212 {
214  int i;
216  double f;
218  char *s;
220  char c;
222  gboolean b;
228  struct
229  {
231  char *name;
233  struct Property *ref;
236  } link;
240  GList *list;
241 } PropertyValue;
242 
246 typedef struct Property
247 {
249  char *name;
254 } Property;
255 
259 typedef struct rofi_range_pair
260 {
261  int start;
262  int stop;
264 
268 typedef struct rofi_int_matcher_t
269 {
270  GRegex *regex;
271  gboolean invert;
273 
278 typedef struct _thread_state
279 {
280  void ( *callback )( struct _thread_state *t, gpointer data );
281 } thread_state;
282 
283 extern GThreadPool *tpool;
284 
285 G_END_DECLS
286 #endif // INCLUDE_ROFI_TYPES_H
RofiHighlightColorStyle highlight
Definition: rofi-types.h:238
struct RofiDistanceUnit RofiDistanceUnit
struct RofiDistanceUnit * right
Definition: rofi-types.h:123
RofiLineStyle
Definition: rofi-types.h:68
ThemeColor color
Definition: rofi-types.h:224
RofiPixelUnit type
Definition: rofi-types.h:114
RofiDistance bottom
Definition: rofi-types.h:165
double blue
Definition: rofi-types.h:153
double green
Definition: rofi-types.h:151
RofiHighlightStyle style
Definition: rofi-types.h:175
double red
Definition: rofi-types.h:149
struct Property * def_value
Definition: rofi-types.h:235
GList * list
Definition: rofi-types.h:240
struct rofi_range_pair rofi_range_pair
RofiHighlightStyle
Definition: rofi-types.h:49
PropertyValue value
Definition: rofi-types.h:253
PropertyType type
Definition: rofi-types.h:251
struct Property Property
RofiDistanceModifier modtype
Definition: rofi-types.h:117
RofiDistance right
Definition: rofi-types.h:164
char * name
Definition: rofi-types.h:249
const char *const PropertyTypeName[P_NUM_TYPES]
Definition: rofi-types.c:6
RofiLineStyle style
Definition: rofi-types.h:131
RofiOrientation
Definition: rofi-types.h:137
RofiDistanceModifier
Definition: rofi-types.h:96
GThreadPool * tpool
Definition: view.c:83
struct _PropertyValue::@4 link
double alpha
Definition: rofi-types.h:155
RofiPadding padding
Definition: rofi-types.h:226
RofiDistanceUnit base
Definition: rofi-types.h:129
WindowLocation
Definition: rofi-types.h:189
struct rofi_int_matcher_t rofi_int_matcher
void(* callback)(struct _thread_state *t, gpointer data)
Definition: rofi-types.h:280
struct Property * ref
Definition: rofi-types.h:233
gboolean b
Definition: rofi-types.h:222
PropertyType
Definition: rofi-types.h:10
RofiPixelUnit
Definition: rofi-types.h:79
struct RofiDistanceUnit * left
Definition: rofi-types.h:120
union _PropertyValue PropertyValue
RofiDistance left
Definition: rofi-types.h:166
struct _thread_state thread_state
RofiDistance top
Definition: rofi-types.h:163