rofi  1.5.1
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
 
void * ed
 
GModule * module
 

Detailed Description

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

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

Field Documentation

◆ _destroy

__mode_destroy rofi_mode::_destroy

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

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

Referenced by mode_destroy(), and script_switcher_parse_setup().

◆ _get_completion

_mode_get_completion rofi_mode::_get_completion

Get the 'completed' entry.

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

Referenced by mode_get_completion(), and script_switcher_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 174 of file mode-private.h.

Referenced by mode_get_completion(), mode_get_display_value(), and script_switcher_parse_setup().

◆ _get_icon

_mode_get_icon rofi_mode::_get_icon

Get the icon for the entry.

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

Referenced by mode_get_icon().

◆ _get_message

_mode_get_message rofi_mode::_get_message

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

Referenced by mode_get_message(), and script_switcher_parse_setup().

◆ _get_num_entries

__mode_get_num_entries rofi_mode::_get_num_entries

Get number of entries to display. (unfiltered).

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

Referenced by mode_get_num_entries(), and script_switcher_parse_setup().

◆ _init

__mode_init rofi_mode::_init

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

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

Referenced by mode_init(), and script_switcher_parse_setup().

◆ _preprocess_input

_mode_preprocess_input rofi_mode::_preprocess_input

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

Referenced by mode_preprocess_input(), and script_switcher_parse_setup().

◆ _result

_mode_result rofi_mode::_result

Process the result of the user selection.

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

Referenced by mode_result(), and script_switcher_parse_setup().

◆ _token_match

_mode_token_match rofi_mode::_token_match

Token match.

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

Referenced by mode_token_match(), and script_switcher_parse_setup().

◆ abi_version

unsigned int rofi_mode::abi_version

Used for external plugins.

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

◆ cfg_name_key

char rofi_mode::cfg_name_key[128]

Definition at line 157 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 194 of file mode-private.h.

Referenced by execute_executor(), script_mode_init(), script_switcher_free(), and script_switcher_parse_setup().

◆ 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 192 of file mode-private.h.

Referenced by script_switcher_parse_setup().

◆ module

GModule* rofi_mode::module

Module

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

Referenced by rofi_collect_modi_destroy().

◆ name

char* rofi_mode::name

◆ private_data


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