rofi 2.1.0
ViewThreadPool
Collaboration diagram for ViewThreadPool:

Functions

void rofi_view_workers_initialize (void)
void rofi_view_workers_finalize (void)
void rofi_view_get_current_monitor (int *width, int *height)
void rofi_capture_screenshot (void)
void rofi_view_set_window_title (const char *title)
void rofi_view_set_size (RofiViewState *state, gint width, gint height)
void rofi_view_get_size (RofiViewState *state, gint *width, gint *height)
void rofi_view_ping_mouse (RofiViewState *state)
void rofi_view_pool_refresh (void)
void rofi_view_get_menu_rect (int *x, int *y, int *w, int *h)
void rofi_view_set_cursor (RofiCursorType type)
void input_history_save (void)
void input_history_initialize (void)
void view_init (const struct _view_proxy *view_in)
void rofi_view_ellipsize_listview (RofiViewState *state, PangoEllipsizeMode mode)
gboolean rofi_set_im_window_pos (int new_x, int new_y)
void rofi_view_cancel (RofiViewState *state)
WidgetTriggerActionResult textbox_button_trigger_action (widget *wid, MouseBindingMouseDefaultAction action, G_GNUC_UNUSED gint x, G_GNUC_UNUSED gint y, G_GNUC_UNUSED void *user_data)

Variables

const struct _view_proxy * xcb_view_proxy

Detailed Description

The view can (optionally) keep a set of worker threads around to parallize work. This includes filtering and sorting.

Function Documentation

◆ input_history_initialize()

◆ input_history_save()

◆ rofi_capture_screenshot()

void rofi_capture_screenshot ( void )

Takes a screenshot.

Stores a screenshot of Rofi at that point in time.

Definition at line 154 of file view.c.

References color_green, color_reset, current_active_menu, RofiViewState::height, RofiViewState::main_window, rofi_capture_screenshot(), screenshot_taken_user_callback(), WIDGET, widget_draw(), and RofiViewState::width.

Referenced by record(), rofi_capture_screenshot(), rofi_view_trigger_global_action(), and take_screenshot_quit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_set_im_window_pos()

gboolean rofi_set_im_window_pos ( int new_x,
int new_y )
Parameters
new_xNew XIM window x pos
new_yNew XIM window y pos

Updates the XIM window position to new_x and new_y, relative to the main_window

References rofi_set_im_window_pos(), rofi_view_cancel(), and textbox_button_trigger_action().

Referenced by rofi_set_im_window_pos(), and xcb_rofi_view_update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_cancel()

void rofi_view_cancel ( RofiViewState * state)

Definition at line 331 of file view.c.

References MENU_CANCEL, RofiViewState::quit, RofiViewState::retv, and rofi_view_cancel().

Referenced by rofi_set_im_window_pos(), rofi_view_cancel(), and wayland_pointer_send_events().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_ellipsize_listview()

void rofi_view_ellipsize_listview ( RofiViewState * state,
PangoEllipsizeMode mode )
Parameters
stateThe window state handle
modeThe pango ellipsize mode to user set ellipsize mode to start.

Definition at line 2143 of file view.c.

References RofiViewState::list_view, listview_set_ellipsize(), and rofi_view_ellipsize_listview().

Referenced by dmenu_mode_dialog(), rofi_view_ellipsize_listview(), and view_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_get_current_monitor()

void rofi_view_get_current_monitor ( int * width,
int * height )
Parameters
widththe width of the monitor.
heightthe height of the monitor.

Return the current monitor workarea.

Definition at line 2229 of file view.c.

References _view_proxy::get_current_monitor, proxy, and rofi_view_get_current_monitor().

Referenced by get_pixels(), and rofi_view_get_current_monitor().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_get_menu_rect()

void rofi_view_get_menu_rect ( int * x,
int * y,
int * w,
int * h )

Definition at line 2245 of file view.c.

References _view_proxy::get_menu_rect, proxy, and rofi_view_get_menu_rect().

Referenced by rofi_view_get_menu_rect(), update_cursor_rectangle(), and wayland_pointer_send_events().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_get_size()

void rofi_view_get_size ( RofiViewState * state,
gint * width,
gint * height )

Definition at line 2237 of file view.c.

References _view_proxy::get_size, proxy, and rofi_view_get_size().

Referenced by rofi_view_get_size().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_ping_mouse()

void rofi_view_ping_mouse ( RofiViewState * state)

Definition at line 2241 of file view.c.

References _view_proxy::ping_mouse, proxy, and rofi_view_ping_mouse().

Referenced by rofi_view_create(), and rofi_view_ping_mouse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_pool_refresh()

void rofi_view_pool_refresh ( void )

Definition at line 2243 of file view.c.

References _view_proxy::pool_refresh, proxy, and rofi_view_pool_refresh().

Referenced by rofi_view_pool_refresh(), wayland_layer_shell_surface_closed(), wayland_rofi_view_window_update_size(), wayland_set_fullscreen_mode(), and wayland_surface_protocol_enter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_set_cursor()

void rofi_view_set_cursor ( RofiCursorType type)

Definition at line 2215 of file view.c.

References proxy, rofi_view_set_cursor(), and _view_proxy::set_cursor.

Referenced by rofi_view_handle_mouse_motion(), and rofi_view_set_cursor().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_set_size()

void rofi_view_set_size ( RofiViewState * state,
gint width,
gint height )

Definition at line 2233 of file view.c.

References proxy, rofi_view_set_size(), and _view_proxy::set_size.

Referenced by rofi_view_set_size(), wayland_layer_shell_surface_closed(), and wayland_surface_protocol_enter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_set_window_title()

void rofi_view_set_window_title ( const char * title)

Set the window title.

Definition at line 2195 of file view.c.

References proxy, rofi_view_set_window_title(), and _view_proxy::set_window_title.

Referenced by rofi_view_create(), rofi_view_set_window_title(), and rofi_view_switch_mode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_workers_finalize()

void rofi_view_workers_finalize ( void )

Stop all threads and free the resources used by the threadpool

Definition at line 2085 of file view.c.

References rofi_view_workers_finalize(), and tpool.

Referenced by cleanup(), page_changed_callback(), and rofi_view_workers_finalize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_workers_initialize()

void rofi_view_workers_initialize ( void )

Initialize the threadpool

Definition at line 2057 of file view.c.

References config, rofi_thread_pool_state_free(), rofi_thread_workers_sort(), rofi_view_call_thread(), rofi_view_workers_initialize(), Settings::threads, TICK_N, and tpool.

Referenced by main(), page_changed_callback(), and rofi_view_workers_initialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ textbox_button_trigger_action()

WidgetTriggerActionResult textbox_button_trigger_action ( widget * wid,
MouseBindingMouseDefaultAction action,
G_GNUC_UNUSED gint x,
G_GNUC_UNUSED gint y,
G_GNUC_UNUSED void * user_data )

◆ view_init()

void view_init ( const struct _view_proxy * view_in)

References rofi_view_ellipsize_listview(), and view_init().

Here is the call graph for this function:

Variable Documentation

◆ xcb_view_proxy

const struct _view_proxy* xcb_view_proxy
extern

Definition at line 1003 of file view.c.

Referenced by xcb_display_view_proxy().