rofi
1.5.1
|
#include <view-internal.h>
Data Fields | |
Mode * | sw |
int | refilter |
box * | main_window |
textbox * | prompt |
textbox * | text |
textbox * | case_indicator |
listview * | list_view |
textbox * | overlay |
container * | mesg_box |
textbox * | mesg_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 |
box * | sidebar_bar |
unsigned int | num_modi |
textbox ** | modi |
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 |
Definition at line 46 of file view-internal.h.
textbox* RofiViewState::case_indicator |
textbox showing the state of the case sensitive and sortng.
Definition at line 60 of file view-internal.h.
Referenced by rofi_view_add_widget(), and rofi_view_trigger_global_action().
int* RofiViewState::distance |
Array with the levenshtein distance for each eleemnt.
Definition at line 72 of file view-internal.h.
Referenced by _rofi_view_reload_row(), filter_elements(), rofi_view_create(), rofi_view_free(), and rofi_view_refilter().
unsigned int RofiViewState::filtered_lines |
number of (filtered) elements to show.
Definition at line 79 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().
void( * RofiViewState::finalize) (struct RofiViewState *state) |
The function to be called when finalizing this view
Definition at line 110 of file view-internal.h.
Referenced by rofi_view_create(), rofi_view_error_dialog(), and rofi_view_finalize().
int RofiViewState::height |
Height of the view
Definition at line 115 of file view-internal.h.
Referenced by rofi_view_calculate_window_position(), rofi_view_create(), rofi_view_error_dialog(), rofi_view_refilter(), rofi_view_repaint(), rofi_view_temp_configure_notify(), and rofi_view_window_update_size().
xcb_timestamp_t RofiViewState::last_button_press |
Time previous key action was executed.
Definition at line 84 of file view-internal.h.
unsigned int* RofiViewState::line_map |
Array with the translation between the filtered and unfiltered list.
Definition at line 74 of file view-internal.h.
Referenced by _rofi_view_reload_row(), filter_elements(), rofi_view_create(), rofi_view_free(), rofi_view_get_next_position(), rofi_view_listview_mouse_activated_cb(), rofi_view_nav_row_select(), rofi_view_nav_row_tab(), rofi_view_refilter(), rofi_view_set_selected_line(), rofi_view_trigger_global_action(), and update_callback().
listview* RofiViewState::list_view |
listview holding the displayed elements.
Definition at line 63 of file view-internal.h.
Referenced by _rofi_view_reload_row(), rofi_view_add_widget(), rofi_view_calculate_window_position(), rofi_view_create(), rofi_view_error_dialog(), rofi_view_get_next_position(), rofi_view_nav_first(), rofi_view_nav_last(), rofi_view_nav_row_select(), rofi_view_nav_row_tab(), rofi_view_refilter(), rofi_view_set_overlay(), rofi_view_set_selected_line(), and rofi_view_trigger_global_action().
box* RofiViewState::main_window |
Widget representing the main container.
Definition at line 54 of file view-internal.h.
Referenced by rofi_view_calculate_height(), rofi_view_calculate_window_position(), rofi_view_calculate_window_width(), rofi_view_create(), rofi_view_error_dialog(), rofi_view_free(), rofi_view_temp_configure_notify(), rofi_view_trigger_action(), rofi_view_update(), and rofi_view_window_update_size().
MenuFlags RofiViewState::menu_flags |
Settings of the menu
Definition at line 104 of file view-internal.h.
Referenced by rofi_view_add_widget(), rofi_view_create(), and rofi_view_error_dialog().
container* RofiViewState::mesg_box |
container holding the message box
Definition at line 67 of file view-internal.h.
Referenced by rofi_view_add_widget(), and rofi_view_reload_message_bar().
textbox* RofiViewState::mesg_tb |
textbox containing the message entry
Definition at line 69 of file view-internal.h.
Referenced by rofi_view_add_widget(), and rofi_view_reload_message_bar().
textbox** RofiViewState::modi |
Array of textbox that act as buttons for switching modi
Definition at line 102 of file view-internal.h.
Referenced by rofi_view_add_widget(), rofi_view_free(), rofi_view_switch_mode(), and textbox_sidebar_modi_trigger_action().
workarea RofiViewState::mon |
Monitor workarea the view is displayed on
Definition at line 95 of file view-internal.h.
widget* RofiViewState::motion_target |
Definition at line 125 of file view-internal.h.
Referenced by rofi_view_handle_mouse_motion(), and rofi_view_trigger_action().
struct { ... } RofiViewState::mouse |
Referenced by rofi_view_handle_mouse_motion(), and rofi_view_trigger_action().
int RofiViewState::mouse_seen |
If mouse was within view previously
Definition at line 106 of file view-internal.h.
Referenced by rofi_view_create().
unsigned int RofiViewState::num_lines |
number of (unfiltered) elements to show.
Definition at line 76 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().
unsigned int RofiViewState::num_modi |
number of modi to display
Definition at line 100 of file view-internal.h.
Referenced by rofi_view_add_widget(), rofi_view_free(), rofi_view_switch_mode(), and textbox_sidebar_modi_trigger_action().
textbox* RofiViewState::overlay |
textbox widget showing the overlay.
Definition at line 65 of file view-internal.h.
Referenced by rofi_view_create(), rofi_view_free(), rofi_view_set_overlay(), and rofi_view_update().
KeyBindingAction RofiViewState::prev_action |
Previously called key action.
Definition at line 82 of file view-internal.h.
Referenced by rofi_view_nav_row_tab().
textbox* RofiViewState::prompt |
textbox showing the prompt in the input bar.
Definition at line 56 of file view-internal.h.
Referenced by rofi_view_add_widget(), rofi_view_switch_mode(), and rofi_view_update_prompt().
int RofiViewState::quit |
Indicate view should terminate
Definition at line 87 of file view-internal.h.
Referenced by rofi_view_create(), rofi_view_get_completed(), rofi_view_listview_mouse_activated_cb(), rofi_view_nav_row_tab(), rofi_view_refilter(), rofi_view_restart(), rofi_view_temp_click_to_exit(), rofi_view_trigger_global_action(), and textbox_sidebar_modi_trigger_action().
int RofiViewState::refilter |
Flag indicating if view needs to be refiltered.
Definition at line 52 of file view-internal.h.
Referenced by rofi_view_create(), rofi_view_handle_text(), rofi_view_maybe_update(), rofi_view_nav_row_select(), rofi_view_refilter(), rofi_view_reload_idle(), rofi_view_switch_mode(), and rofi_view_trigger_global_action().
int RofiViewState::reload |
Flag indicating if view needs to be reloaded.
Definition at line 108 of file view-internal.h.
Referenced by rofi_view_refilter(), rofi_view_reload_idle(), and rofi_view_switch_mode().
MenuReturn RofiViewState::retv |
The return state of the view
Definition at line 93 of file view-internal.h.
Referenced by rofi_view_create(), rofi_view_error_dialog(), rofi_view_get_return_value(), rofi_view_listview_mouse_activated_cb(), rofi_view_nav_row_tab(), rofi_view_refilter(), rofi_view_restart(), rofi_view_temp_click_to_exit(), rofi_view_trigger_global_action(), and textbox_sidebar_modi_trigger_action().
unsigned int RofiViewState::selected_line |
The selected line (in the unfiltered list)
Definition at line 91 of file view-internal.h.
Referenced by rofi_view_create(), rofi_view_get_next_position(), rofi_view_get_selected_line(), rofi_view_listview_mouse_activated_cb(), rofi_view_nav_row_tab(), rofi_view_refilter(), rofi_view_set_selected_line(), and rofi_view_trigger_global_action().
box* RofiViewState::sidebar_bar |
box holding the different modi buttons
Definition at line 98 of file view-internal.h.
Referenced by rofi_view_add_widget(), and rofi_view_switch_mode().
int RofiViewState::skip_absorb |
Indicate if we should absorb the key release
Definition at line 89 of file view-internal.h.
Referenced by rofi_view_create(), rofi_view_listview_mouse_activated_cb(), and textbox_sidebar_modi_trigger_action().
Mode* RofiViewState::sw |
Mode bound to to this view.
Definition at line 49 of file view-internal.h.
Referenced by _rofi_view_reload_row(), filter_elements(), process_result(), rofi_view_add_widget(), rofi_view_create(), rofi_view_get_mode(), rofi_view_nav_row_select(), rofi_view_refilter(), rofi_view_reload_message_bar(), rofi_view_switch_mode(), rofi_view_update_prompt(), and update_callback().
textbox* RofiViewState::text |
textbox with the user input in the input bar.
Definition at line 58 of file view-internal.h.
Referenced by rofi_view_add_widget(), rofi_view_clear_input(), rofi_view_create(), rofi_view_error_dialog(), rofi_view_get_user_input(), rofi_view_handle_text(), rofi_view_nav_row_select(), rofi_view_refilter(), and rofi_view_trigger_global_action().
rofi_int_matcher** RofiViewState::tokens |
Regexs used for matching
Definition at line 129 of file view-internal.h.
Referenced by filter_elements(), rofi_view_free(), rofi_view_refilter(), and update_callback().
int RofiViewState::width |
Width of the view
Definition at line 113 of file view-internal.h.
Referenced by rofi_view_calculate_window_position(), rofi_view_calculate_window_width(), rofi_view_create(), rofi_view_error_dialog(), rofi_view_repaint(), rofi_view_temp_configure_notify(), and rofi_view_window_update_size().
int RofiViewState::x |
X position of the view
Definition at line 117 of file view-internal.h.
Referenced by rofi_view_calculate_window_position(), rofi_view_handle_mouse_motion(), rofi_view_temp_configure_notify(), rofi_view_trigger_action(), rofi_view_update(), and rofi_view_window_update_size().
int RofiViewState::y |
Y position of the view
Definition at line 119 of file view-internal.h.
Referenced by rofi_view_calculate_window_position(), rofi_view_handle_mouse_motion(), rofi_view_temp_configure_notify(), rofi_view_trigger_action(), rofi_view_update(), and rofi_view_window_update_size().