rofi  1.5.4
view.h File Reference
#include "mode.h"
Include dependency graph for view.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct RofiViewState RofiViewState
 

Enumerations

enum  MenuFlags {
  MENU_NORMAL = 0, MENU_PASSWORD = 1, MENU_NORMAL_WINDOW = 2, MENU_ERROR_DIALOG = 4,
  MENU_INDICATOR = 8
}
 

Functions

RofiViewStaterofi_view_create (Mode *sw, const char *input, MenuFlags menu_flags, void(*finalize)(RofiViewState *))
 
void rofi_view_finalize (RofiViewState *state)
 
MenuReturn rofi_view_get_return_value (const RofiViewState *state)
 
unsigned int rofi_view_get_next_position (const RofiViewState *state)
 
void rofi_view_handle_text (RofiViewState *state, char *text)
 
void rofi_view_handle_mouse_motion (RofiViewState *state, gint x, gint y)
 
void rofi_view_maybe_update (RofiViewState *state)
 
void rofi_view_temp_configure_notify (RofiViewState *state, xcb_configure_notify_event_t *xce)
 
void rofi_view_temp_click_to_exit (RofiViewState *state, xcb_window_t target)
 
void rofi_view_frame_callback (void)
 
unsigned int rofi_view_get_completed (const RofiViewState *state)
 
const char * rofi_view_get_user_input (const RofiViewState *state)
 
void rofi_view_set_selected_line (RofiViewState *state, unsigned int selected_line)
 
unsigned int rofi_view_get_selected_line (const RofiViewState *state)
 
void rofi_view_restart (RofiViewState *state)
 
gboolean rofi_view_trigger_action (RofiViewState *state, BindingsScope scope, guint action)
 
void rofi_view_free (RofiViewState *state)
 
RofiViewStaterofi_view_get_active (void)
 
void rofi_view_set_active (RofiViewState *state)
 
int rofi_view_error_dialog (const char *msg, int markup)
 
void rofi_view_queue_redraw (void)
 
void rofi_view_cleanup (void)
 
Moderofi_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_clear_input (RofiViewState *state)
 
void __create_window (MenuFlags menu_flags)
 
xcb_window_t rofi_view_get_window (void)
 
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)
 

Function Documentation

◆ rofi_capture_screenshot()

void rofi_capture_screenshot ( void  )

Takes a screenshot.

Stores a screenshot of Rofi at that point in time.

Definition at line 177 of file view.c.

References CacheState, color_green, and color_reset.

Referenced by record(), and rofi_view_trigger_global_action().

Here is the caller graph for this function:

◆ rofi_view_get_current_monitor()

void rofi_view_get_current_monitor ( int *  width,
int *  height 
)

Return the current monitor workarea.

Returns
the current monitor workarea

Definition at line 135 of file view.c.

References CacheState.

Referenced by distance_get_pixel().

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 1879 of file view.c.

References tpool.

Referenced by cleanup().

Here is the caller graph for this function:

◆ rofi_view_workers_initialize()

void rofi_view_workers_initialize ( void  )

Initialize the threadpool

Definition at line 1852 of file view.c.

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

Referenced by main().

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