rofi  1.5.1
mode.h File Reference
#include <cairo.h>
#include "rofi-types.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.

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_PREVIOUS = 0x00400000, 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 (const Mode *mode, unsigned int selected_line, 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)
 
int mode_init (Mode *mode)