rofi 1.7.5
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
 
uint32_t fallback_icon_fetch_uid
 
uint32_t fallback_icon_not_found
 

Detailed Description

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

Definition at line 159 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 173 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 185 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 181 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 183 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 189 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 175 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 171 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 187 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 177 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 179 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 161 of file mode-private.h.

Referenced by rofi_collectmodes_dir().

◆ cfg_name_key

char rofi_mode::cfg_name_key[128]

Definition at line 164 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 201 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 207 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 208 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 199 of file mode-private.h.

Referenced by script_mode_parse_setup().

◆ module

GModule* rofi_mode::module

Module

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

Referenced by rofi_collectmodes_destroy(), and rofi_collectmodes_dir().

◆ name

◆ private_data


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