rofi 1.7.9
mode.h File Reference
#include "rofi-types.h"
#include <cairo.h>
#include <gmodule.h>
Include dependency graph for mode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ABI_VERSION   7u

Typedefs

typedef struct rofi_mode Mode

Enumerations

enum  ModeMode {
  MODE_EXIT = 1000 , NEXT_DIALOG = 1001 , RELOAD_DIALOG = 1002 , PREVIOUS_DIALOG = 1003 ,
  RESET_DIALOG = 1004
}
enum  MenuReturn {
  MENU_OK = 0x00010000 , MENU_CANCEL = 0x00020000 , MENU_NEXT = 0x00040000 , MENU_CUSTOM_INPUT = 0x00080000 ,
  MENU_ENTRY_DELETE = 0x00100000 , MENU_QUICK_SWITCH = 0x00200000 , MENU_CUSTOM_COMMAND = 0x00800000 , MENU_PREVIOUS = 0x00400000 ,
  MENU_COMPLETE = 0x01000000 , MENU_CUSTOM_ACTION = 0x10000000 , MENU_LOWER_MASK = 0x0000FFFF
}

Functions

void mode_destroy (Mode *mode)
unsigned int mode_get_num_entries (const Mode *mode)
char * mode_get_display_value (const Mode *mode, unsigned int selected_line, int *state, GList **attribute_list, int get_entry)
cairo_surface_t * mode_get_icon (Mode *mode, unsigned int selected_line, unsigned int height)
char * mode_get_completion (const Mode *mode, unsigned int selected_line)
ModeMode mode_result (Mode *mode, int menu_retv, char **input, unsigned int selected_line)
int mode_token_match (const Mode *mode, rofi_int_matcher **tokens, unsigned int selected_line)
const char * mode_get_name (const Mode *mode)
void mode_free (Mode **mode)
void * mode_get_private_data (const Mode *mode)
void mode_set_private_data (Mode *mode, void *pd)
const char * mode_get_display_name (const Mode *mode)
void mode_set_config (Mode *mode)
char * mode_preprocess_input (Mode *mode, const char *input)
char * mode_get_message (const Mode *mode)
Modemode_create (const Mode *mode)
ModeMode mode_completer_result (Mode *sw, int menu_retv, char **input, unsigned int selected_line, char **path)
gboolean mode_is_completer (const Mode *sw)
int mode_get_abi_version (Mode *const mode)
void mode_plugin_set_module (Mode *mode, GModule *mod)
GModule * mode_plugin_get_module (Mode *mode)
int mode_init (Mode *mode)

Macro Definition Documentation

◆ ABI_VERSION

#define ABI_VERSION   7u

ABI version to check if loaded plugin is compatible.

Definition at line 36 of file mode.h.

Referenced by rofi_collectmodes_dir().