rofi 1.7.8
rofi_mode Struct Reference

#include <mode-private.h>

Collaboration diagram for rofi_mode:
Collaboration graph

Data Fields

unsigned int abi_version
 
char * name
 
char cfg_name_key [128]
 
char * display_name
 
__mode_init _init
 
__mode_destroy _destroy
 
__mode_get_num_entries _get_num_entries
 
_mode_result _result
 
_mode_token_match _token_match
 
_mode_get_display_value _get_display_value
 
_mode_get_icon _get_icon
 
_mode_get_completion _get_completion
 
_mode_preprocess_input _preprocess_input
 
_mode_get_message _get_message
 
void * private_data
 
_mode_free free
 
_mode_create _create
 
_mode_completer_result _completer_result
 
void * ed
 
GModule * module
 
uint32_t fallback_icon_fetch_uid
 
uint32_t fallback_icon_not_found
 
ModeType type
 

Detailed Description

Structure defining a switcher. It consists of a name, callback and if enabled a textbox for the sidebar-mode.

Definition at line 197 of file mode-private.h.

Field Documentation

◆ _completer_result

_mode_completer_result rofi_mode::_completer_result

If this mode is used as completer.

Definition at line 247 of file mode-private.h.

Referenced by mode_completer_result(), and mode_init().

◆ _create

_mode_create rofi_mode::_create

Create mode.

Definition at line 242 of file mode-private.h.

Referenced by mode_create().

◆ _destroy

__mode_destroy rofi_mode::_destroy

Destroy the switcher, e.g. free all its memory.

Definition at line 211 of file mode-private.h.

Referenced by mode_destroy(), and script_mode_parse_setup().

◆ _get_completion

_mode_get_completion rofi_mode::_get_completion

Get the 'completed' entry.

Definition at line 223 of file mode-private.h.

Referenced by mode_get_completion(), and script_mode_parse_setup().

◆ _get_display_value

_mode_get_display_value rofi_mode::_get_display_value

Get the string to display for the entry.

Definition at line 219 of file mode-private.h.

Referenced by _get_display_value(), mode_get_completion(), mode_get_display_value(), and script_mode_parse_setup().

◆ _get_icon

_mode_get_icon rofi_mode::_get_icon

Get the icon for the entry.

Definition at line 221 of file mode-private.h.

Referenced by _get_icon(), mode_get_icon(), and script_mode_parse_setup().

◆ _get_message

_mode_get_message rofi_mode::_get_message

Definition at line 227 of file mode-private.h.

Referenced by mode_get_message(), and script_mode_parse_setup().

◆ _get_num_entries

__mode_get_num_entries rofi_mode::_get_num_entries

Get number of entries to display. (unfiltered).

Definition at line 213 of file mode-private.h.

Referenced by mode_get_num_entries(), run_mode_get_num_entries(), and script_mode_parse_setup().

◆ _init

__mode_init rofi_mode::_init

A switcher normally consists of the following parts: Initialize the Mode

Definition at line 209 of file mode-private.h.

Referenced by mode_init(), and script_mode_parse_setup().

◆ _preprocess_input

_mode_preprocess_input rofi_mode::_preprocess_input

Definition at line 225 of file mode-private.h.

Referenced by mode_preprocess_input(), and script_mode_parse_setup().

◆ _result

_mode_result rofi_mode::_result

Process the result of the user selection.

Definition at line 215 of file mode-private.h.

Referenced by mode_result(), and script_mode_parse_setup().

◆ _token_match

_mode_token_match rofi_mode::_token_match

Token match.

Definition at line 217 of file mode-private.h.

Referenced by mode_token_match(), run_token_match(), and script_mode_parse_setup().

◆ abi_version

unsigned int rofi_mode::abi_version

Used for external plugins.

Definition at line 199 of file mode-private.h.

Referenced by rofi_collectmodes_dir().

◆ cfg_name_key

char rofi_mode::cfg_name_key[128]

Definition at line 202 of file mode-private.h.

Referenced by mode_set_config().

◆ display_name

char* rofi_mode::display_name

◆ ed

void* rofi_mode::ed

Extra fields for script

Definition at line 250 of file mode-private.h.

Referenced by execute_executor(), script_mode_parse_setup(), and script_switcher_free().

◆ fallback_icon_fetch_uid

uint32_t rofi_mode::fallback_icon_fetch_uid

Fallack icon.

Definition at line 256 of file mode-private.h.

Referenced by mode_get_icon(), and mode_init().

◆ fallback_icon_not_found

uint32_t rofi_mode::fallback_icon_not_found

Definition at line 257 of file mode-private.h.

Referenced by mode_get_icon(), and mode_init().

◆ free

_mode_free rofi_mode::free

Free SWitcher Only to be used when the switcher object itself is dynamic. And has data in ed

Definition at line 237 of file mode-private.h.

Referenced by script_mode_parse_setup().

◆ module

GModule* rofi_mode::module

Module

Definition at line 253 of file mode-private.h.

Referenced by rofi_collectmodes_destroy(), and rofi_collectmodes_dir().

◆ name

◆ private_data

◆ type

ModeType rofi_mode::type

The documentation for this struct was generated from the following file: