rofi
1.7.3
xrmoptions.h
Go to the documentation of this file.
1
/*
2
* rofi
3
*
4
* MIT/X11 License
5
* Copyright © 2013-2021 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 "
theme.h
"
31
#include "
xcb.h
"
32
// Big thanks to Sean Pringle for this code.
33
72
typedef
enum
{
74
xrm_String
= 0,
76
xrm_Number
= 1,
78
xrm_SNumber
= 2,
80
xrm_Boolean
= 3,
82
xrm_Char
= 4
83
}
XrmOptionType
;
84
89
void
config_parse_cmd_options
(
void
);
90
96
void
config_xresource_free
(
void
);
97
106
void
config_parser_add_option
(
XrmOptionType
type,
const
char
*key,
void
**value,
107
const
char
*comment);
108
113
void
print_options
(
void
);
114
124
void
print_help_msg
(
const
char
*option,
const
char
*type,
const
char
*text,
125
const
char
*def,
int
isatty);
126
134
char
**
config_parser_return_display_help
(
unsigned
int
*length);
135
146
gboolean
config_parse_set_property
(
const
Property
*p,
char
**error);
147
154
void
config_parse_dump_config_rasi_format
(FILE *out, gboolean changes);
156
#endif
config_parse_dump_config_rasi_format
void config_parse_dump_config_rasi_format(FILE *out, gboolean changes)
Dump configuration in rasi format.
Definition:
xrmoptions.c:791
print_help_msg
void print_help_msg(const char *option, const char *type, const char *text, const char *def, int isatty)
Definition:
xrmoptions.c:946
XrmOptionType
XrmOptionType
Definition:
xrmoptions.h:72
xrm_Char
@ xrm_Char
Definition:
xrmoptions.h:82
config_parse_set_property
gboolean config_parse_set_property(const Property *p, char **error)
Set config option.
Definition:
xrmoptions.c:682
theme.h
config_parser_return_display_help
char ** config_parser_return_display_help(unsigned int *length)
Definition:
xrmoptions.c:1003
Property
Definition:
rofi-types.h:287
config_xresource_free
void config_xresource_free(void)
Definition:
xrmoptions.c:729
config_parse_cmd_options
void config_parse_cmd_options(void)
Definition:
xrmoptions.c:533
config_parser_add_option
void config_parser_add_option(XrmOptionType type, const char *key, void **value, const char *comment)
Definition:
xrmoptions.c:428
xcb.h
xrm_String
@ xrm_String
Definition:
xrmoptions.h:74
xrm_SNumber
@ xrm_SNumber
Definition:
xrmoptions.h:78
print_options
void print_options(void)
Definition:
xrmoptions.c:929
xrm_Number
@ xrm_Number
Definition:
xrmoptions.h:76
xrm_Boolean
@ xrm_Boolean
Definition:
xrmoptions.h:80
include
xrmoptions.h
Generated by
1.8.20