rofi 1.7.5
xrmoptions.h
Go to the documentation of this file.
1/*
2 * rofi
3 *
4 * MIT/X11 License
5 * Copyright © 2013-2022 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
84
90
96void config_xresource_free(void);
97
106void config_parser_add_option(XrmOptionType type, const char *key, void **value,
107 const char *comment);
108
113void print_options(void);
114
124void print_help_msg(const char *option, const char *type, const char *text,
125 const char *def, int isatty);
126
134char **config_parser_return_display_help(unsigned int *length);
135
146gboolean config_parse_set_property(const Property *p, char **error);
147
154void config_parse_dump_config_rasi_format(FILE *out, gboolean changes);
156#endif
void config_parse_cmd_options(void)
Definition xrmoptions.c:560
void print_options(void)
Definition xrmoptions.c:958
void config_parser_add_option(XrmOptionType type, const char *key, void **value, const char *comment)
Definition xrmoptions.c:455
XrmOptionType
Definition xrmoptions.h:72
void print_help_msg(const char *option, const char *type, const char *text, const char *def, int isatty)
Definition xrmoptions.c:975
gboolean config_parse_set_property(const Property *p, char **error)
Set config option.
Definition xrmoptions.c:711
void config_parse_dump_config_rasi_format(FILE *out, gboolean changes)
Dump configuration in rasi format.
Definition xrmoptions.c:820
char ** config_parser_return_display_help(unsigned int *length)
@ xrm_SNumber
Definition xrmoptions.h:78
@ xrm_Boolean
Definition xrmoptions.h:80
@ xrm_Number
Definition xrmoptions.h:76
@ xrm_Char
Definition xrmoptions.h:82
@ xrm_String
Definition xrmoptions.h:74
void config_xresource_free(void)
Definition xrmoptions.c:758