rofi  1.5.4
xrmoptions.h
Go to the documentation of this file.
1 /*
2  * rofi
3  *
4  * MIT/X11 License
5  * Copyright © 2013-2017 Qball Cow <qball@gmpclient.org>
6  *
7  * Permission is hereby granted, free of charge, to any person obtaining
8  * a copy of this software and associated documentation files (the
9  * "Software"), to deal in the Software without restriction, including
10  * without limitation the rights to use, copy, modify, merge, publish,
11  * distribute, sublicense, and/or sell copies of the Software, and to
12  * permit persons to whom the Software is furnished to do so, subject to
13  * the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be
16  * included in all copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25  *
26  */
27 
28 #ifndef ROFI_XRMOPTIONS_H
29 #define ROFI_XRMOPTIONS_H
30 #include "xcb.h"
31 #include "theme.h"
32 // Big thanks to Sean Pringle for this code.
33 
69 typedef enum
70 {
80  xrm_Char = 4
82 
92 
99 void config_parse_xresource_options_file ( const char *filename );
100 
105 void config_parse_cmd_options ( void );
106 
112 void config_xresource_free ( void );
113 
120 void config_parse_xresource_dump ( void );
121 
130 void config_parser_add_option ( XrmOptionType type, const char *key, void **value, const char *comment );
131 
135 void print_options ( void );
136 
146 void print_help_msg ( const char *option, const char *type, const char*text, const char *def, int isatty );
147 
155 char ** config_parser_return_display_help ( unsigned int *length );
156 
167 gboolean config_parse_set_property ( const Property *p, char **error );
168 
174 void config_parse_dump_config_rasi_format ( gboolean changes );
175 /* @}*/
176 #endif
xcb
xcb_stuff * xcb
Definition: xcb.c:87
_xcb_stuff
Definition: xcb-internal.h:44
config_parse_xresource_dump
void config_parse_xresource_dump(void)
Definition: xrmoptions.c:555
print_help_msg
void print_help_msg(const char *option, const char *type, const char *text, const char *def, int isatty)
Definition: xrmoptions.c:754
config_parse_xresource_options_file
void config_parse_xresource_options_file(const char *filename)
Definition: xrmoptions.c:334
XrmOptionType
XrmOptionType
Definition: xrmoptions.h:70
xrm_Char
@ xrm_Char
Definition: xrmoptions.h:80
config_parse_set_property
gboolean config_parse_set_property(const Property *p, char **error)
Set config option.
Definition: xrmoptions.c:479
theme.h
config_parser_return_display_help
char ** config_parser_return_display_help(unsigned int *length)
Definition: xrmoptions.c:807
Property
Definition: rofi-types.h:213
config_xresource_free
void config_xresource_free(void)
Definition: xrmoptions.c:497
config_parse_cmd_options
void config_parse_cmd_options(void)
Definition: xrmoptions.c:402
config_parser_add_option
void config_parser_add_option(XrmOptionType type, const char *key, void **value, const char *comment)
Definition: xrmoptions.c:230
config_parse_dump_config_rasi_format
void config_parse_dump_config_rasi_format(gboolean changes)
Dump configuration in rasi format.
Definition: xrmoptions.c:617
xcb.h
xrm_String
@ xrm_String
Definition: xrmoptions.h:72
config_parse_xresource_options
void config_parse_xresource_options(xcb_stuff *xcb)
Definition: xrmoptions.c:325
xrm_SNumber
@ xrm_SNumber
Definition: xrmoptions.h:76
print_options
void print_options(void)
Definition: xrmoptions.c:736
xrm_Number
@ xrm_Number
Definition: xrmoptions.h:74
xrm_Boolean
@ xrm_Boolean
Definition: xrmoptions.h:78