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 {
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;
207 } PropertyValue;
208 
212 typedef struct Property
213 {
215  char *name;
220 } Property;
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 );
247 } thread_state;
248 
249 extern GThreadPool *tpool;
250 
251 G_END_DECLS
252 #endif // INCLUDE_ROFI_TYPES_H
RofiHighlightColorStyle highlight
Definition: rofi-types.h:204
double distance
Definition: rofi-types.h:95
RofiLineStyle
Definition: rofi-types.h:66
ThemeColor color
Definition: rofi-types.h:190
RofiDistance bottom
Definition: rofi-types.h:133
double blue
Definition: rofi-types.h:121
double green
Definition: rofi-types.h:119
RofiHighlightStyle style
Definition: rofi-types.h:143
double red
Definition: rofi-types.h:117
struct Property * def_value
Definition: rofi-types.h:201
GList * list
Definition: rofi-types.h:206
struct rofi_range_pair rofi_range_pair
RofiHighlightStyle
Definition: rofi-types.h:47
PropertyValue value
Definition: rofi-types.h:219
PropertyType type
Definition: rofi-types.h:217
struct Property Property
RofiDistance right
Definition: rofi-types.h:132
char * name
Definition: rofi-types.h:215
const char *const PropertyTypeName[P_NUM_TYPES]
Definition: rofi-types.c:6
RofiLineStyle style
Definition: rofi-types.h:99
RofiOrientation
Definition: rofi-types.h:105
unsigned int stop
Definition: rofi-types.h:228
GThreadPool * tpool
Definition: view.c:83
double alpha
Definition: rofi-types.h:123
RofiPadding padding
Definition: rofi-types.h:192
WindowLocation
Definition: rofi-types.h:157
struct rofi_int_matcher_t rofi_int_matcher
void(* callback)(struct _thread_state *t, gpointer data)
Definition: rofi-types.h:246
unsigned int start
Definition: rofi-types.h:227
struct Property * ref
Definition: rofi-types.h:199
gboolean b
Definition: rofi-types.h:188
PropertyType
Definition: rofi-types.h:10
RofiPixelUnit
Definition: rofi-types.h:77
RofiPixelUnit type
Definition: rofi-types.h:97
union _PropertyValue PropertyValue
struct _PropertyValue::@3 link
RofiDistance left
Definition: rofi-types.h:134
struct _thread_state thread_state
RofiDistance top
Definition: rofi-types.h:131