rofi
1.7.0
|
#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 |
textbox * | tb_total_rows |
textbox * | tb_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 |
Definition at line 48 of file view-internal.h.
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().
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().
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().
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().
int RofiViewState::height |
Height of the view
Definition at line 122 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 85 of file view-internal.h.
unsigned int* RofiViewState::line_map |
Array with the translation between the filtered and unfiltered list.
Definition at line 75 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(), textbox_button_trigger_action(), and update_callback().
listview* RofiViewState::list_view |
listview holding the displayed elements.
Definition at line 64 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_ellipsize_start(), 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(), rofi_view_trigger_global_action(), and textbox_button_trigger_action().
box* RofiViewState::main_window |
Widget representing the main container.
Definition at line 55 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_handle_mouse_motion(), rofi_view_resolve_cursor(), 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 111 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 68 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 70 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 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().
workarea RofiViewState::mon |
Monitor workarea the view is displayed on
Definition at line 96 of file view-internal.h.
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().
int RofiViewState::mouse_seen |
If mouse was within view previously
Definition at line 113 of file view-internal.h.
Referenced by rofi_view_create().
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().
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().
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().
KeyBindingAction RofiViewState::prev_action |
Previously called key action.
Definition at line 83 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 57 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 88 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 53 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 115 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 94 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 92 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(), rofi_view_trigger_global_action(), and textbox_button_trigger_action().
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().
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().
Mode* RofiViewState::sw |
Mode bound to to this view.
Definition at line 50 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::tb_filtered_rows |
filtered rows
Definition at line 108 of file view-internal.h.
Referenced by rofi_view_add_widget(), and rofi_view_refilter().
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().
textbox* RofiViewState::text |
textbox with the user input in the input bar.
Definition at line 59 of file view-internal.h.
Referenced by process_result(), 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 139 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 120 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
X position
Definition at line 124 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
Y position
Definition at line 126 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().