Blender V4.3
GHOST_SystemWayland.hh File Reference
#include "../GHOST_Types.h"
#include "GHOST_System.hh"
#include "GHOST_WindowWayland.hh"
#include <wayland-client.h>
#include <mutex>
#include <string>
#include <atomic>
#include <thread>

Go to the source code of this file.

Classes

struct  GWL_Output
 
class  GHOST_SystemWayland
 

Macros

#define FRACTIONAL_DENOMINATOR   120
 

Functions

bool ghost_wl_display_report_error_if_set (wl_display *display)
 
bool ghost_wl_output_own (const struct wl_output *wl_output)
 
void ghost_wl_output_tag (struct wl_output *wl_output)
 
struct GWL_Outputghost_wl_output_user_data (struct wl_output *wl_output)
 
bool ghost_wl_surface_own_with_null_check (const struct wl_surface *wl_surface)
 
bool ghost_wl_surface_own (const struct wl_surface *wl_surface)
 
void ghost_wl_surface_tag (struct wl_surface *wl_surface)
 
GHOST_WindowWaylandghost_wl_surface_user_data (struct wl_surface *wl_surface)
 
bool ghost_wl_surface_own_cursor_pointer (const struct wl_surface *wl_surface)
 
void ghost_wl_surface_tag_cursor_pointer (struct wl_surface *wl_surface)
 
bool ghost_wl_surface_own_cursor_tablet (const struct wl_surface *wl_surface)
 
void ghost_wl_surface_tag_cursor_tablet (struct wl_surface *wl_surface)
 
wl_fixed_t gwl_window_scale_wl_fixed_to (const GWL_WindowScaleParams &scale_params, wl_fixed_t value)
 
wl_fixed_t gwl_window_scale_wl_fixed_from (const GWL_WindowScaleParams &scale_params, wl_fixed_t value)
 
int gwl_window_scale_int_to (const GWL_WindowScaleParams &scale_params, int value)
 
int gwl_window_scale_int_from (const GWL_WindowScaleParams &scale_params, int value)
 

Detailed Description

Declaration of GHOST_SystemWayland class.

Definition in file GHOST_SystemWayland.hh.

Macro Definition Documentation

◆ FRACTIONAL_DENOMINATOR

Function Documentation

◆ ghost_wl_display_report_error_if_set()

bool ghost_wl_display_report_error_if_set ( wl_display * display)

◆ ghost_wl_output_own()

bool ghost_wl_output_own ( const struct wl_output * wl_output)

◆ ghost_wl_output_tag()

void ghost_wl_output_tag ( struct wl_output * wl_output)

Definition at line 8789 of file GHOST_SystemWayland.cc.

References ghost_wl_output_tag_id, and wl_proxy_set_tag.

Referenced by gwl_registry_wl_output_add().

◆ ghost_wl_output_user_data()

struct GWL_Output * ghost_wl_output_user_data ( struct wl_output * wl_output)

◆ ghost_wl_surface_own()

bool ghost_wl_surface_own ( const struct wl_surface * wl_surface)

◆ ghost_wl_surface_own_cursor_pointer()

bool ghost_wl_surface_own_cursor_pointer ( const struct wl_surface * wl_surface)

◆ ghost_wl_surface_own_cursor_tablet()

bool ghost_wl_surface_own_cursor_tablet ( const struct wl_surface * wl_surface)

◆ ghost_wl_surface_own_with_null_check()

bool ghost_wl_surface_own_with_null_check ( const struct wl_surface * wl_surface)

Enter/exit handlers may be called with a null window surface (when the window just closed), so add a version of the function that checks this.

All of the functions could in fact however paranoid null checks make the expected state difficult to reason about, so only use this in cases the surface may be null.

◆ ghost_wl_surface_tag()

void ghost_wl_surface_tag ( struct wl_surface * wl_surface)

◆ ghost_wl_surface_tag_cursor_pointer()

void ghost_wl_surface_tag_cursor_pointer ( struct wl_surface * wl_surface)

◆ ghost_wl_surface_tag_cursor_tablet()

void ghost_wl_surface_tag_cursor_tablet ( struct wl_surface * wl_surface)

◆ ghost_wl_surface_user_data()

◆ gwl_window_scale_int_from()

int gwl_window_scale_int_from ( const GWL_WindowScaleParams & scale_params,
int value )

Definition at line 255 of file GHOST_WindowWayland.cc.

References gwl_window_scale_wl_fixed_from().

◆ gwl_window_scale_int_to()

int gwl_window_scale_int_to ( const GWL_WindowScaleParams & scale_params,
int value )

Definition at line 251 of file GHOST_WindowWayland.cc.

References gwl_window_scale_wl_fixed_to().

◆ gwl_window_scale_wl_fixed_from()

wl_fixed_t gwl_window_scale_wl_fixed_from ( const GWL_WindowScaleParams & scale_params,
wl_fixed_t value )

◆ gwl_window_scale_wl_fixed_to()

wl_fixed_t gwl_window_scale_wl_fixed_to ( const GWL_WindowScaleParams & scale_params,
wl_fixed_t value )