|
rofi 2.0.0
|

Functions | |
| RofiViewState * | rofi_view_get_active (void) |
| void | rofi_view_set_active (RofiViewState *state) |
| void | rofi_view_remove_active (RofiViewState *state) |
| int | rofi_view_error_dialog (const char *msg, int markup) |
| void | rofi_view_queue_redraw (void) |
| void | rofi_view_calculate_window_position (RofiViewState *state) |
| void | rofi_view_cleanup (void) |
| Mode * | rofi_view_get_mode (RofiViewState *state) |
| void | rofi_view_hide (void) |
| void | rofi_view_reload (void) |
| void | rofi_view_switch_mode (RofiViewState *state, Mode *mode) |
| void | rofi_view_set_overlay (RofiViewState *state, const char *text) |
| void | rofi_view_set_overlay_timeout (RofiViewState *state, const char *text) |
| void | rofi_view_clear_input (RofiViewState *state) |
| void | __create_window (MenuFlags menu_flags) |
| xcb_window_t | rofi_view_get_window (void) |
Global menu view functions. These do not work on the view itself but modifies the global state.
| void __create_window | ( | MenuFlags | menu_flags | ) |
| void rofi_view_calculate_window_position | ( | RofiViewState * | state | ) |
Definition at line 2135 of file view.c.
References proxy.
Referenced by rofi_view_create(), rofi_view_error_dialog(), and rofi_view_refilter_real().

| void rofi_view_cleanup | ( | void | ) |
Cleanup internal data of the view.
Definition at line 2153 of file view.c.
References proxy.
Referenced by teardown().

| void rofi_view_clear_input | ( | RofiViewState * | state | ) |
| state | The handle to the view. |
Clears the user entry box, set selected to 0.
Definition at line 2072 of file view.c.
References rofi_view_set_selected_line(), RofiViewState::text, and textbox_text().
Referenced by process_result().


| int rofi_view_error_dialog | ( | const char * | msg, |
| int | markup ) |
| msg | The error message to show. |
| markup | The error message uses pango markup. |
The error message to show.
Definition at line 1915 of file view.c.
References __rofi_view_state_create(), box_add(), box_create(), CacheState, config, DISPLAY_XCB, RofiViewState::finalize, RofiViewState::height, RofiViewState::list_view, listview_set_fixed_num_lines(), RofiViewState::main_window, MENU_CANCEL, MENU_ERROR_DIALOG, RofiViewState::menu_flags, MENU_NORMAL_WINDOW, NORMAL, process_result(), RofiViewState::retv, rofi_error_user_callback(), ROFI_ORIENTATION_VERTICAL, rofi_view_calculate_window_height(), rofi_view_calculate_window_position(), rofi_view_calculate_window_width(), rofi_view_set_active(), rofi_view_window_update_size(), TB_AUTOHEIGHT, TB_MARKUP, TB_WRAP, RofiViewState::text, textbox_create(), WIDGET, widget_queue_redraw(), WIDGET_TYPE_TEXTBOX_TEXT, and xcb.
Referenced by dmenu_mode_init(), execute_executor(), execute_generator(), file_browser_mode_init_config(), help_print_no_arguments(), helper_execute(), helper_parse_setup(), helper_string_replace_if_exists_v(), recursive_browser_mode_init_config(), run_mode_index(), show_error_dialog(), and startup().


| RofiViewState * rofi_view_get_active | ( | void | ) |
Get the current active view Handle.
Definition at line 299 of file view.c.
References current_active_menu.
Referenced by binding_check_action(), binding_trigger_action(), dmenu_async_read_proc(), main_loop_x11_event_handler(), main_loop_x11_event_handler_view(), rofi_view_maybe_update(), rofi_view_overlay_timeout(), rofi_view_take_action(), rofi_view_trigger_global_action(), run_mode_index(), script_mode_result(), wayland_key_repeat(), wayland_key_repeat_delay(), wayland_keyboard_key(), wayland_keyboard_modifiers(), wayland_layer_shell_surface_closed(), wayland_pointer_send_events(), wayland_rofi_view_pool_refresh(), wayland_rofi_view_queue_redraw(), wayland_rofi_view_reload_idle(), wayland_rofi_view_repaint(), wayland_surface_protocol_enter(), xcb_rofi_view_queue_redraw(), xcb_rofi_view_reload_idle(), and xcb_rofi_view_repaint().

| Mode * rofi_view_get_mode | ( | RofiViewState * | state | ) |
| state | The handle to the view |
Get the mode currently displayed by the view.
Definition at line 2028 of file view.c.
References RofiViewState::sw.
Referenced by dmenu_finalize().

| xcb_window_t rofi_view_get_window | ( | void | ) |
Get the handle of the main window.
Definition at line 2163 of file view.c.
References proxy.
Referenced by main_loop_x11_event_handler_view().

| void rofi_view_hide | ( | void | ) |
| void rofi_view_queue_redraw | ( | void | ) |
Queue a redraw. This triggers a X11 Expose Event.
Definition at line 2129 of file view.c.
References proxy.
Referenced by rofi_view_overlay_timeout(), rofi_view_set_active(), rofi_view_set_overlay(), textbox_blink(), and xcb_rofi_view_update().

| void rofi_view_reload | ( | void | ) |
Indicate the current view needs to reload its data. This can only be done when more information is available.
The reloading happens 'lazy', multiple calls might be handled at once.
Definition at line 2157 of file view.c.
References proxy.
Referenced by dmenu_async_read_proc(), recursive_browser_async_read_proc(), and rofi_icon_fetcher_worker().

| void rofi_view_remove_active | ( | RofiViewState * | state | ) |
| state | remove view handle. |
remove state handle from queue, if current view, pop view from stack.
Definition at line 301 of file view.c.
References CacheState, current_active_menu, and rofi_view_set_active().
Referenced by process_result().


| void rofi_view_set_active | ( | RofiViewState * | state | ) |
| state | the new active view handle. |
Set the current active view Handle, If NULL passed a queued view is popped from stack.
Definition at line 308 of file view.c.
References CacheState, current_active_menu, rofi_view_queue_redraw(), and rofi_view_window_update_size().
Referenced by dmenu_finish(), dmenu_mode_dialog(), rofi_view_error_dialog(), rofi_view_remove_active(), and run_mode_index().


| void rofi_view_set_overlay | ( | RofiViewState * | state, |
| const char * | text ) |
| state | The handle to the view |
| text | An UTF-8 encoded character array with the text to overlay. |
Overlays text over the current view. Passing NULL for text hides the overlay.
Definition at line 2054 of file view.c.
References CacheState, RofiViewState::list_view, RofiViewState::overlay, rofi_view_queue_redraw(), textbox_text(), WIDGET, widget_disable(), and widget_enable().
Referenced by dmenu_async_read_proc(), dmenu_finalize(), dmenu_mode_dialog(), and rofi_view_set_overlay_timeout().


| void rofi_view_set_overlay_timeout | ( | RofiViewState * | state, |
| const char * | text ) |
| state | The handle to the view |
| text | An UTF-8 encoded character array with the text to overlay. |
Overlays text over the current view. Passing NULL for text hides the overlay. This message is automatically removed after X seconds.
Definition at line 2040 of file view.c.
References CacheState, RofiViewState::list_view, RofiViewState::overlay, rofi_theme_get_integer(), rofi_view_overlay_timeout(), rofi_view_set_overlay(), WIDGET, and widget_disable().
Referenced by rofi_view_trigger_global_action().


| void rofi_view_switch_mode | ( | RofiViewState * | state, |
| Mode * | mode ) |
| state | The handle to the view |
| mode | The new mode to display |
Change the current view to show a different mode.
Definition at line 2084 of file view.c.
References HIGHLIGHT, mode_get_display_name(), RofiViewState::modes, NORMAL, RofiViewState::num_modes, RofiViewState::prompt, RofiViewState::refilter, RofiViewState::reload, rofi_get_mode(), rofi_view_refilter_force(), rofi_view_restart(), rofi_view_set_window_title(), rofi_view_update(), rofi_view_update_prompt(), RofiViewState::sidebar_bar, RofiViewState::sw, and textbox_font().
Referenced by process_result().

