rofi 1.7.9
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 194 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 244 of file mode-private.h.

Referenced by mode_completer_result(), and mode_init().

◆ _create

_mode_create rofi_mode::_create

Create mode.

Definition at line 239 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 208 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 220 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 216 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 218 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 224 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 210 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 206 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 222 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 212 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 214 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 196 of file mode-private.h.

Referenced by mode_get_abi_version().

◆ cfg_name_key

char rofi_mode::cfg_name_key[128]

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

Referenced by mode_set_config().

◆ display_name

char* rofi_mode::display_name

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

Referenced by mode_get_display_name(), mode_set_config(), and parse_header_entry().

◆ ed

void* rofi_mode::ed

Extra fields for script

Definition at line 247 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 253 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 254 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 234 of file mode-private.h.

Referenced by script_mode_parse_setup().

◆ module

GModule* rofi_mode::module

Module

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

Referenced by mode_plugin_get_module(), and mode_plugin_set_module().

◆ name

◆ private_data

◆ type

ModeType rofi_mode::type

The documentation for this struct was generated from the following file:
  • /builddir/build/BUILD/rofi-1.7.9-build/rofi-1.7.9/include/mode-private.h