rofi  1.7.0
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
 
MenuReturn retv
 
workarea mon
 
boxsidebar_bar
 
unsigned int num_modi
 
textbox ** modi
 
textboxtb_total_rows
 
textboxtb_filtered_rows
 
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
 

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(), and rofi_view_trigger_global_action().

◆ 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().

◆ 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_view_nav_last(), rofi_view_nav_row_tab(), rofi_view_refilter(), 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 117 of file view-internal.h.

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

◆ height

◆ 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 111 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().

◆ modi

textbox** RofiViewState::modi

Array of textbox that act as buttons for switching modi

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_modi_trigger_action().

◆ mon

workarea RofiViewState::mon

Monitor workarea the view is displayed on

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

◆ motion_target

widget* RofiViewState::motion_target

Widget being targeted.

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

Referenced by rofi_view_handle_mouse_motion(), and rofi_view_trigger_action().

◆ 

struct { ... } RofiViewState::mouse

Position and target of the mouse.

Referenced by 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 113 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_add_widget(), rofi_view_create(), rofi_view_get_next_position(), and rofi_view_refilter().

◆ num_modi

unsigned int RofiViewState::num_modi

number of modi to display

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

Referenced by rofi_view_add_widget(), rofi_view_free(), rofi_view_switch_mode(), and textbox_sidebar_modi_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(), and rofi_view_set_overlay().

◆ 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().

◆ 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

int RofiViewState::refilter

◆ reload

int RofiViewState::reload

Flag indicating if view needs to be reloaded.

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

Referenced by rofi_view_refilter(), rofi_view_reload_idle(), and rofi_view_switch_mode().

◆ retv

◆ selected_line

◆ sidebar_bar

box* RofiViewState::sidebar_bar

box holding the different modi buttons

Definition at line 99 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_modi_trigger_action().

◆ sw

◆ tb_filtered_rows

textbox* RofiViewState::tb_filtered_rows

filtered rows

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

Referenced by rofi_view_add_widget(), and rofi_view_refilter().

◆ tb_total_rows

textbox* RofiViewState::tb_total_rows

Total rows.

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

Referenced by rofi_view_add_widget(), and rofi_view_refilter().

◆ text

◆ tokens

rofi_int_matcher** RofiViewState::tokens

Regexs used for matching

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

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

◆ width

◆ x

◆ y


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