rofi 1.7.9
RofiViewState Struct Reference

#include <view-internal.h>

Collaboration diagram for RofiViewState:
Collaboration graph

Data Fields

Modesw
int refilter
boxmain_window
textboxprompt
textboxtext
textboxcase_indicator
listviewlist_view
textboxoverlay
containermesg_box
textboxmesg_tb
int * distance
unsigned int * line_map
unsigned int num_lines
unsigned int filtered_lines
KeyBindingAction prev_action
xcb_timestamp_t last_button_press
int quit
int skip_absorb
unsigned int selected_line
unsigned int previous_line
MenuReturn retv
workarea mon
boxsidebar_bar
unsigned int num_modes
textbox ** modes
textboxtb_total_rows
textboxtb_filtered_rows
textboxtb_current_entry
iconicon_current_entry
MenuFlags menu_flags
int mouse_seen
int reload
void(* finalize )(struct RofiViewState *state)
int width
int height
int x
int y
struct { 
   int   x 
   int   y 
   widget *   motion_target 
mouse
rofi_int_matcher ** tokens
gboolean case_sensitive

Detailed Description

Definition at line 48 of file view-internal.h.

Field Documentation

◆ case_indicator

textbox* RofiViewState::case_indicator

textbox showing the state of the case sensitive and sortng.

Definition at line 61 of file view-internal.h.

Referenced by rofi_view_add_widget(), rofi_view_refilter_real(), and rofi_view_trigger_global_action().

◆ case_sensitive

gboolean RofiViewState::case_sensitive

For case-sensitivity

Definition at line 148 of file view-internal.h.

Referenced by filter_elements(), get_matching_state(), and rofi_view_refilter_real().

◆ distance

int* RofiViewState::distance

Array with the levenshtein distance for each element.

Definition at line 73 of file view-internal.h.

Referenced by _rofi_view_reload_row(), filter_elements(), rofi_view_create(), rofi_view_free(), and rofi_view_refilter_real().

◆ filtered_lines

unsigned int RofiViewState::filtered_lines

number of (filtered) elements to show.

Definition at line 80 of file view-internal.h.

Referenced by rofi_quit_user_callback(), rofi_view_nav_last(), rofi_view_nav_row_tab(), rofi_view_refilter_real(), and rofi_view_set_selected_line().

◆ finalize

void(* RofiViewState::finalize) (struct RofiViewState *state)

The function to be called when finalizing this view

Definition at line 124 of file view-internal.h.

Referenced by rofi_view_create(), rofi_view_error_dialog(), and rofi_view_finalize().

◆ height

◆ icon_current_entry

icon* RofiViewState::icon_current_entry

Extra icon widget that shows the current selected entries icon.

Definition at line 115 of file view-internal.h.

Referenced by rofi_view_add_widget(), and selection_changed_callback().

◆ last_button_press

xcb_timestamp_t RofiViewState::last_button_press

Time previous key action was executed.

Definition at line 85 of file view-internal.h.

◆ line_map

◆ list_view

◆ main_window

◆ menu_flags

MenuFlags RofiViewState::menu_flags

Settings of the menu

Definition at line 118 of file view-internal.h.

Referenced by rofi_view_add_widget(), rofi_view_create(), and rofi_view_error_dialog().

◆ mesg_box

container* RofiViewState::mesg_box

container holding the message box

Definition at line 68 of file view-internal.h.

Referenced by rofi_view_add_widget(), and rofi_view_reload_message_bar().

◆ mesg_tb

textbox* RofiViewState::mesg_tb

textbox containing the message entry

Definition at line 70 of file view-internal.h.

Referenced by rofi_view_add_widget(), and rofi_view_reload_message_bar().

◆ modes

textbox** RofiViewState::modes

Array of textbox that act as buttons for switching modes

Definition at line 105 of file view-internal.h.

Referenced by rofi_view_add_widget(), rofi_view_free(), rofi_view_switch_mode(), and textbox_sidebar_modes_trigger_action().

◆ mon

workarea RofiViewState::mon

Monitor workarea the view is displayed on

Definition at line 98 of file view-internal.h.

◆ motion_target

widget* RofiViewState::motion_target

Widget being targeted.

Definition at line 142 of file view-internal.h.

Referenced by rofi_view_handle_mouse_motion(), and rofi_view_trigger_action().

◆ [struct]

struct { ... } RofiViewState::mouse

Position and target of the mouse.

Referenced by rofi_view_check_action(), rofi_view_handle_mouse_motion(), and rofi_view_trigger_action().

◆ mouse_seen

int RofiViewState::mouse_seen

If mouse was within view previously

Definition at line 120 of file view-internal.h.

Referenced by rofi_view_create().

◆ num_lines

unsigned int RofiViewState::num_lines

number of (unfiltered) elements to show.

Definition at line 77 of file view-internal.h.

Referenced by _rofi_view_reload_row(), rofi_view_create(), rofi_view_get_next_position(), and rofi_view_refilter_real().

◆ num_modes

unsigned int RofiViewState::num_modes

number of modes to display

Definition at line 103 of file view-internal.h.

Referenced by rofi_view_add_widget(), rofi_view_free(), rofi_view_switch_mode(), and textbox_sidebar_modes_trigger_action().

◆ overlay

textbox* RofiViewState::overlay

textbox widget showing the overlay.

Definition at line 66 of file view-internal.h.

Referenced by rofi_view_add_widget(), rofi_view_overlay_timeout(), rofi_view_set_overlay(), and rofi_view_set_overlay_timeout().

◆ prev_action

KeyBindingAction RofiViewState::prev_action

Previously called key action.

Definition at line 83 of file view-internal.h.

Referenced by rofi_view_nav_row_tab().

◆ previous_line

unsigned int RofiViewState::previous_line

The previously selected line (in the unfiltered list)

Definition at line 94 of file view-internal.h.

Referenced by rofi_view_create(), and selection_changed_callback().

◆ prompt

textbox* RofiViewState::prompt

textbox showing the prompt in the input bar.

Definition at line 57 of file view-internal.h.

Referenced by rofi_view_add_widget(), rofi_view_switch_mode(), and rofi_view_update_prompt().

◆ quit

◆ refilter

◆ reload

int RofiViewState::reload

Flag indicating if view needs to be reloaded.

Definition at line 122 of file view-internal.h.

Referenced by rofi_view_refilter_real(), and rofi_view_switch_mode().

◆ retv

◆ selected_line

◆ sidebar_bar

box* RofiViewState::sidebar_bar

box holding the different modes buttons

Definition at line 101 of file view-internal.h.

Referenced by rofi_view_add_widget(), and rofi_view_switch_mode().

◆ skip_absorb

int RofiViewState::skip_absorb

Indicate if we should absorb the key release

Definition at line 90 of file view-internal.h.

Referenced by rofi_view_create(), rofi_view_listview_mouse_activated_cb(), textbox_button_trigger_action(), and textbox_sidebar_modes_trigger_action().

◆ sw

◆ tb_current_entry

textbox* RofiViewState::tb_current_entry

Extra icon widget that shows the current selected entries text.

Definition at line 113 of file view-internal.h.

Referenced by rofi_view_add_widget(), and selection_changed_callback().

◆ tb_filtered_rows

textbox* RofiViewState::tb_filtered_rows

filtered rows

Definition at line 110 of file view-internal.h.

Referenced by rofi_view_add_widget(), and rofi_view_refilter_real().

◆ tb_total_rows

textbox* RofiViewState::tb_total_rows

Total rows.

Definition at line 108 of file view-internal.h.

Referenced by rofi_view_add_widget(), and rofi_view_refilter_real().

◆ text

◆ tokens

rofi_int_matcher** RofiViewState::tokens

Regexs used for matching

Definition at line 146 of file view-internal.h.

Referenced by filter_elements(), rofi_view_free(), rofi_view_refilter_real(), and update_callback().

◆ width

◆ x

◆ y


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