rofi
1.5.4
|
Macros | |
#define | color_reset "\033[0m" |
#define | color_bold "\033[1m" |
#define | color_italic "\033[2m" |
#define | color_green "\033[0;32m" |
#define | color_red "\033[0;31m" |
#define | ERROR_MSG(a) |
#define | ERROR_MSG_MARKUP TRUE |
Functions | |
unsigned int | rofi_get_num_enabled_modi (void) |
const Mode * | rofi_get_mode (unsigned int index) |
void | rofi_add_error_message (GString *str) |
void | rofi_set_return_code (int code) |
void | rofi_quit_main_loop (void) |
Mode * | rofi_collect_modi_search (const char *name) |
Variables | |
const char * | cache_dir |
#define color_green "\033[0;32m" |
#define color_red "\033[0;31m" |
#define ERROR_MSG | ( | a | ) |
Appends instructions on how to report an error.
#define ERROR_MSG_MARKUP TRUE |
void rofi_add_error_message | ( | GString * | str | ) |
str | A GString with an error message to display. |
Queue an error.
Definition at line 90 of file rofi.c.
References list_of_error_msgs.
Referenced by config_sanity_check(), help_print_mode_not_found(), parse_keys_abe(), and yyerror().
Mode* rofi_collect_modi_search | ( | const char * | name | ) |
name | Search for mode with this name. |
Collected modi
name | Search for mode with this name. |
Definition at line 468 of file rofi.c.
References available_modi, and num_available_modi.
Referenced by add_mode(), combi_mode_parse_switchers(), and rofi_collect_modi_add().
const Mode* rofi_get_mode | ( | unsigned int | index | ) |
index | The mode to return. (should be smaller then rofi_get_num_enabled_mode) |
Get an enabled mode handle.
Definition at line 134 of file rofi.c.
References modi.
Referenced by rofi_view_add_widget(), and rofi_view_switch_mode().
unsigned int rofi_get_num_enabled_modi | ( | void | ) |
Get the number of enabled modi.
Definition at line 129 of file rofi.c.
References num_modi.
Referenced by rofi_view_add_widget().
void rofi_quit_main_loop | ( | void | ) |
Quit rofi mainloop. This will exit program.
Definition at line 635 of file rofi.c.
References main_loop.
Referenced by rofi_view_maybe_update().
void rofi_set_return_code | ( | int | code | ) |
code | the code to return |
Return value are used for integrating dmenu rofi in scripts. This function sets the code that rofi will return on exit.
Definition at line 124 of file rofi.c.
References return_code.
Referenced by dmenu_finish(), show_error_dialog(), and startup().
const char* cache_dir |
Pointer to xdg cache directory.
Location of Cache directory.
Definition at line 84 of file rofi.c.
Referenced by delete_entry(), delete_ssh(), exec_cmd(), exec_ssh(), get_apps(), get_ssh(), and main().