|
rofi 2.0.0
|


Go to the source code of this file.
Typedefs | |
| typedef struct _display_buffer_pool | display_buffer_pool |
Functions | |
| display_buffer_pool * | display_buffer_pool_new (gint width, gint height) |
| void | display_buffer_pool_free (display_buffer_pool *pool) |
| cairo_surface_t * | display_buffer_pool_get_next_buffer (display_buffer_pool *pool) |
| void | display_surface_commit (cairo_surface_t *surface) |
| gboolean | display_get_surface_dimensions (int *width, int *height) |
| void | display_set_surface_dimensions (int width, int height, int x_margin, int y_margin, int loc) |
| void | wayland_display_set_cursor_type (RofiCursorType type) |
| double | wayland_get_dpi_estimation (void) |
| typedef struct _display_buffer_pool display_buffer_pool |
| void display_buffer_pool_free | ( | display_buffer_pool * | pool | ) |
Definition at line 227 of file display.c.
References _display_buffer_pool::to_free, and wayland_buffer_cleanup().
Referenced by wayland_rofi_view_pool_refresh().


| cairo_surface_t * display_buffer_pool_get_next_buffer | ( | display_buffer_pool * | pool | ) |
Definition at line 283 of file display.c.
References _display_buffer_pool::buffers, wayland_buffer::data, _display_buffer_pool::height, wayland_buffer::released, wayland, wayland_cairo_surface_user_data, and _display_buffer_pool::width.
Referenced by wayland_rofi_view_update().

| display_buffer_pool * display_buffer_pool_new | ( | gint | width, |
| gint | height ) |
Definition at line 157 of file display.c.
References wayland_buffer::buffer, _display_buffer_pool::buffers, wayland_buffer::data, _display_buffer_pool::height, wayland_buffer::pool, wayland_buffer::released, wayland, wayland_buffer_listener, and _display_buffer_pool::width.
Referenced by wayland_rofi_view_update().

| gboolean display_get_surface_dimensions | ( | int * | width, |
| int * | height ) |
Definition at line 1652 of file display.c.
References wayland.
Referenced by wayland_rofi_view_calculate_window_height(), wayland_rofi_view_calculate_window_width(), and wayland_rofi_view_get_current_monitor().

| void display_set_surface_dimensions | ( | int | width, |
| int | height, | ||
| int | x_margin, | ||
| int | y_margin, | ||
| int | loc ) |
Definition at line 1665 of file display.c.
References wayland, WL_CENTER, WL_EAST, WL_NORTH, WL_NORTH_EAST, WL_NORTH_WEST, WL_SOUTH, WL_SOUTH_EAST, WL_SOUTH_WEST, and WL_WEST.
Referenced by wayland_rofi_view_window_update_size().

| void display_surface_commit | ( | cairo_surface_t * | surface | ) |
Definition at line 306 of file display.c.
References wayland_buffer::buffer, _display_buffer_pool::height, wayland_buffer::pool, wayland_buffer::released, wayland, wayland_cairo_surface_user_data, and _display_buffer_pool::width.
Referenced by wayland_rofi_view_update().

| void wayland_display_set_cursor_type | ( | RofiCursorType | type | ) |
Definition at line 746 of file display.c.
References _wayland_seat::pointer, rofi_cursor_type_to_wl_cursor(), wayland, and wayland_cursor_update_for_seat().

| double wayland_get_dpi_estimation | ( | void | ) |
Tries to guess the DPI.
Definition at line 1207 of file display.c.
References config, wayland_output::current, wayland_output::scale, wayland, wayland_output_by_name(), and wayland_output_get_dpi.
Referenced by wayland___create_window().

