rofi 2.0.0
wayland.h File Reference
#include <cairo.h>
#include <glib.h>
#include "display.h"
Include dependency graph for wayland.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct _display_buffer_pool display_buffer_pool

Functions

display_buffer_pooldisplay_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 Documentation

◆ display_buffer_pool

Definition at line 36 of file wayland.h.

Function Documentation

◆ display_buffer_pool_free()

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().

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

◆ display_buffer_pool_get_next_buffer()

cairo_surface_t * display_buffer_pool_get_next_buffer ( display_buffer_pool * pool)

◆ display_buffer_pool_new()

display_buffer_pool * display_buffer_pool_new ( gint width,
gint height )

◆ display_get_surface_dimensions()

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().

Here is the caller graph for this function:

◆ display_set_surface_dimensions()

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().

Here is the caller graph for this function:

◆ display_surface_commit()

void display_surface_commit ( cairo_surface_t * surface)

◆ wayland_display_set_cursor_type()

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().

Here is the call graph for this function:

◆ wayland_get_dpi_estimation()

double wayland_get_dpi_estimation ( void )

Tries to guess the DPI.

Returns
an guess for the dpi, or -1 if no guess could be made.

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().

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