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 {
64  ROFI_HL_COLOR = 8
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;
242 
246 typedef struct Property
247 {
249  char *name;
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 );
282 
283 extern GThreadPool *tpool;
284 
285 G_END_DECLS
286 #endif // INCLUDE_ROFI_TYPES_H
rofi_range_pair
Definition: rofi-types.h:260
_PropertyValue
Definition: rofi-types.h:212
rofi_range_pair
struct rofi_range_pair rofi_range_pair
P_PADDING
@ P_PADDING
Definition: rofi-types.h:25
ROFI_HL_COLOR
@ ROFI_HL_COLOR
Definition: rofi-types.h:64
PropertyType
PropertyType
Definition: rofi-types.h:11
thread_state
struct _thread_state thread_state
ThemeColor::green
double green
Definition: rofi-types.h:151
_thread_state
Definition: rofi-types.h:279
ThemeColor
Definition: rofi-types.h:147
_PropertyValue::list
GList * list
Definition: rofi-types.h:240
ROFI_DISTANCE_MODIFIER_DIVIDE
@ ROFI_DISTANCE_MODIFIER_DIVIDE
Definition: rofi-types.h:101
PropertyTypeName
const char *const PropertyTypeName[P_NUM_TYPES]
Definition: rofi-types.c:6
_PropertyValue::padding
RofiPadding padding
Definition: rofi-types.h:226
RofiDistanceUnit::right
struct RofiDistanceUnit * right
Definition: rofi-types.h:123
ROFI_ORIENTATION_VERTICAL
@ ROFI_ORIENTATION_VERTICAL
Definition: rofi-types.h:139
RofiDistance::style
RofiLineStyle style
Definition: rofi-types.h:131
RofiLineStyle
RofiLineStyle
Definition: rofi-types.h:69
RofiHighlightColorStyle::color
ThemeColor color
Definition: rofi-types.h:177
_PropertyValue::highlight
RofiHighlightColorStyle highlight
Definition: rofi-types.h:238
P_INTEGER
@ P_INTEGER
Definition: rofi-types.h:13
P_NUM_TYPES
@ P_NUM_TYPES
Definition: rofi-types.h:39
rofi_int_matcher_t
Definition: rofi-types.h:269
RofiDistanceModifier
RofiDistanceModifier
Definition: rofi-types.h:97
ThemeColor::blue
double blue
Definition: rofi-types.h:153
_PropertyValue::ref
struct Property * ref
Definition: rofi-types.h:233
Property
struct Property Property
WL_EAST
@ WL_EAST
Definition: rofi-types.h:196
rofi_range_pair::start
int start
Definition: rofi-types.h:261
ROFI_PU_EM
@ ROFI_PU_EM
Definition: rofi-types.h:86
ThemeColor::red
double red
Definition: rofi-types.h:149
ROFI_DISTANCE_MODIFIER_MIN
@ ROFI_DISTANCE_MODIFIER_MIN
Definition: rofi-types.h:105
P_HIGHLIGHT
@ P_HIGHLIGHT
Definition: rofi-types.h:31
rofi_int_matcher
struct rofi_int_matcher_t rofi_int_matcher
ROFI_DISTANCE_MODIFIER_NONE
@ ROFI_DISTANCE_MODIFIER_NONE
Definition: rofi-types.h:98
WL_NORTH_EAST
@ WL_NORTH_EAST
Definition: rofi-types.h:204
P_POSITION
@ P_POSITION
Definition: rofi-types.h:29
WL_SOUTH_WEST
@ WL_SOUTH_WEST
Definition: rofi-types.h:208
P_LIST
@ P_LIST
Definition: rofi-types.h:33
P_BOOLEAN
@ P_BOOLEAN
Definition: rofi-types.h:21
RofiDistanceUnit::modtype
RofiDistanceModifier modtype
Definition: rofi-types.h:117
ROFI_HL_ITALIC
@ ROFI_HL_ITALIC
Definition: rofi-types.h:62
ROFI_HL_SMALL_CAPS
@ ROFI_HL_SMALL_CAPS
Definition: rofi-types.h:60
_PropertyValue::def_value
struct Property * def_value
Definition: rofi-types.h:235
ROFI_DISTANCE_MODIFIER_GROUP
@ ROFI_DISTANCE_MODIFIER_GROUP
Definition: rofi-types.h:104
RofiDistance
Definition: rofi-types.h:127
ROFI_HL_UNDERLINE
@ ROFI_HL_UNDERLINE
Definition: rofi-types.h:56
ROFI_DISTANCE_MODIFIER_ADD
@ ROFI_DISTANCE_MODIFIER_ADD
Definition: rofi-types.h:99
RofiDistanceUnit::distance
double distance
Definition: rofi-types.h:112
WL_CENTER
@ WL_CENTER
Definition: rofi-types.h:192
ROFI_DISTANCE_MODIFIER_SUBTRACT
@ ROFI_DISTANCE_MODIFIER_SUBTRACT
Definition: rofi-types.h:100
RofiHighlightColorStyle::style
RofiHighlightStyle style
Definition: rofi-types.h:175
P_CHAR
@ P_CHAR
Definition: rofi-types.h:19
_PropertyValue::name
char * name
Definition: rofi-types.h:231
Property
Definition: rofi-types.h:247
P_ORIENTATION
@ P_ORIENTATION
Definition: rofi-types.h:35
ROFI_PU_MM
@ ROFI_PU_MM
Definition: rofi-types.h:84
RofiPadding
Definition: rofi-types.h:162
_PropertyValue::s
char * s
Definition: rofi-types.h:218
rofi_range_pair::stop
int stop
Definition: rofi-types.h:262
ROFI_HL_STRIKETHROUGH
@ ROFI_HL_STRIKETHROUGH
Definition: rofi-types.h:58
WL_WEST
@ WL_WEST
Definition: rofi-types.h:200
WL_SOUTH_EAST
@ WL_SOUTH_EAST
Definition: rofi-types.h:206
PropertyValue
union _PropertyValue PropertyValue
ROFI_DISTANCE_MODIFIER_MAX
@ ROFI_DISTANCE_MODIFIER_MAX
Definition: rofi-types.h:106
P_DOUBLE
@ P_DOUBLE
Definition: rofi-types.h:15
rofi_int_matcher_t::invert
gboolean invert
Definition: rofi-types.h:271
tpool
GThreadPool * tpool
Definition: view.c:83
Property::type
PropertyType type
Definition: rofi-types.h:251
RofiPixelUnit
RofiPixelUnit
Definition: rofi-types.h:80
WL_SOUTH
@ WL_SOUTH
Definition: rofi-types.h:198
P_STRING
@ P_STRING
Definition: rofi-types.h:17
_PropertyValue::i
int i
Definition: rofi-types.h:214
ROFI_HL_SOLID
@ ROFI_HL_SOLID
Definition: rofi-types.h:71
ThemeColor::alpha
double alpha
Definition: rofi-types.h:155
RofiPadding::right
RofiDistance right
Definition: rofi-types.h:164
RofiDistanceUnit
struct RofiDistanceUnit RofiDistanceUnit
WL_NORTH
@ WL_NORTH
Definition: rofi-types.h:194
WindowLocation
WindowLocation
Definition: rofi-types.h:190
_PropertyValue::b
gboolean b
Definition: rofi-types.h:222
ROFI_PU_PERCENT
@ ROFI_PU_PERCENT
Definition: rofi-types.h:88
RofiPadding::left
RofiDistance left
Definition: rofi-types.h:166
Property::value
PropertyValue value
Definition: rofi-types.h:253
Property::name
char * name
Definition: rofi-types.h:249
_PropertyValue::link
struct _PropertyValue::@4 link
RofiPadding::top
RofiDistance top
Definition: rofi-types.h:163
P_INHERIT
@ P_INHERIT
Definition: rofi-types.h:37
RofiHighlightStyle
RofiHighlightStyle
Definition: rofi-types.h:50
WL_NORTH_WEST
@ WL_NORTH_WEST
Definition: rofi-types.h:202
_PropertyValue::color
ThemeColor color
Definition: rofi-types.h:224
rofi_int_matcher_t::regex
GRegex * regex
Definition: rofi-types.h:270
ROFI_HL_NONE
@ ROFI_HL_NONE
Definition: rofi-types.h:52
_thread_state::callback
void(* callback)(struct _thread_state *t, gpointer data)
Definition: rofi-types.h:280
ROFI_HL_BOLD
@ ROFI_HL_BOLD
Definition: rofi-types.h:54
RofiPadding::bottom
RofiDistance bottom
Definition: rofi-types.h:165
ROFI_DISTANCE_MODIFIER_MODULO
@ ROFI_DISTANCE_MODIFIER_MODULO
Definition: rofi-types.h:103
P_LINK
@ P_LINK
Definition: rofi-types.h:27
RofiHighlightColorStyle
Definition: rofi-types.h:173
_PropertyValue::f
double f
Definition: rofi-types.h:216
_PropertyValue::c
char c
Definition: rofi-types.h:220
ROFI_PU_PX
@ ROFI_PU_PX
Definition: rofi-types.h:82
RofiDistance::base
RofiDistanceUnit base
Definition: rofi-types.h:129
ROFI_ORIENTATION_HORIZONTAL
@ ROFI_ORIENTATION_HORIZONTAL
Definition: rofi-types.h:140
RofiOrientation
RofiOrientation
Definition: rofi-types.h:138
RofiDistanceUnit::type
RofiPixelUnit type
Definition: rofi-types.h:114
P_COLOR
@ P_COLOR
Definition: rofi-types.h:23
ROFI_HL_DASH
@ ROFI_HL_DASH
Definition: rofi-types.h:73
RofiDistanceUnit::left
struct RofiDistanceUnit * left
Definition: rofi-types.h:120
RofiDistanceUnit
Definition: rofi-types.h:110
ROFI_DISTANCE_MODIFIER_MULTIPLY
@ ROFI_DISTANCE_MODIFIER_MULTIPLY
Definition: rofi-types.h:102
ROFI_PU_CH
@ ROFI_PU_CH
Definition: rofi-types.h:90