|
rofi 2.1.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 264 of file display.c.
References display_buffer_pool_free(), _display_buffer_pool::to_free, and wayland_buffer_cleanup().
Referenced by display_buffer_pool_free(), and wayland_rofi_view_pool_refresh().


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


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


| gboolean display_get_surface_dimensions | ( | int * | width, |
| int * | height ) |
Definition at line 2020 of file display.c.
References display_get_surface_dimensions(), wayland_stuff::layer_height, wayland_stuff::layer_width, and wayland.
Referenced by display_get_surface_dimensions(), 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 2038 of file display.c.
References display_set_surface_dimensions(), wayland_stuff::layer_height, wayland_stuff::layer_width, wayland, WL_CENTER, WL_EAST, WL_NORTH, WL_NORTH_EAST, WL_NORTH_WEST, WL_SOUTH, WL_SOUTH_EAST, WL_SOUTH_WEST, WL_WEST, and wayland_stuff::wlr_surface.
Referenced by display_set_surface_dimensions(), window_update_size_normal(), and window_update_size_with_outside_click().


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


| void wayland_display_set_cursor_type | ( | RofiCursorType | type | ) |
Definition at line 835 of file display.c.
References wayland_stuff::cursor, _wayland_seat::pointer, rofi_cursor_type_to_wl_cursor(), wayland_stuff::seats, wayland, wayland_cursor_update_for_seat(), and wayland_display_set_cursor_type().
Referenced by wayland_display_set_cursor_type().


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

