|
Blender V4.3
|
#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 |
Declaration of GHOST_SystemWayland class.
Definition in file GHOST_SystemWayland.hh.
| #define FRACTIONAL_DENOMINATOR 120 |
Definition at line 82 of file GHOST_SystemWayland.hh.
Referenced by GHOST_WindowWayland::GHOST_WindowWayland(), gwl_window_fractional_from_viewport(), gwl_window_fractional_from_viewport_round(), gwl_window_fractional_to_viewport(), gwl_window_fractional_to_viewport_round(), gwl_window_scale_wl_fixed_from(), gwl_window_scale_wl_fixed_to(), output_handle_done(), output_scale_cmp(), GHOST_WindowWayland::outputs_changed_update_scale(), outputs_max_scale_or_default(), outputs_uniform_scale_or_default(), update_cursor_scale(), wp_fractional_scale_handle_preferred_scale(), and xdg_output_handle_logical_size().
| bool ghost_wl_display_report_error_if_set | ( | wl_display * | display | ) |
Definition at line 1992 of file GHOST_SystemWayland.cc.
References ghost_wl_display_report_error_from_code(), and wl_display_get_error.
Referenced by GHOST_WindowWayland::GHOST_WindowWayland().
| bool ghost_wl_output_own | ( | const struct wl_output * | wl_output | ) |
Referenced by GHOST_SystemWayland::output_unref().
| 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().
| struct GWL_Output * ghost_wl_output_user_data | ( | struct wl_output * | wl_output | ) |
Definition at line 9021 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, ghost_wl_output_own(), and output.
Referenced by cursor_surface_handle_enter(), cursor_surface_handle_leave(), GHOST_SystemWayland::output_unref(), surface_handle_enter(), and surface_handle_leave().
| bool ghost_wl_surface_own | ( | const struct wl_surface * | wl_surface | ) |
| bool ghost_wl_surface_own_cursor_pointer | ( | const struct wl_surface * | wl_surface | ) |
| bool ghost_wl_surface_own_cursor_tablet | ( | const struct wl_surface * | wl_surface | ) |
| 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.
| void ghost_wl_surface_tag | ( | struct wl_surface * | wl_surface | ) |
Definition at line 8795 of file GHOST_SystemWayland.cc.
References ghost_wl_surface_tag_id, wl_proxy_set_tag, and wl_surface.
Referenced by GHOST_WindowWayland::GHOST_WindowWayland().
| void ghost_wl_surface_tag_cursor_pointer | ( | struct wl_surface * | wl_surface | ) |
Definition at line 8801 of file GHOST_SystemWayland.cc.
References ghost_wl_surface_cursor_pointer_tag_id, wl_proxy_set_tag, and wl_surface.
Referenced by gwl_seat_capability_pointer_enable().
| void ghost_wl_surface_tag_cursor_tablet | ( | struct wl_surface * | wl_surface | ) |
Definition at line 8807 of file GHOST_SystemWayland.cc.
References ghost_wl_surface_cursor_tablet_tag_id, wl_proxy_set_tag, and wl_surface.
Referenced by tablet_seat_handle_tool_added().
| GHOST_WindowWayland * ghost_wl_surface_user_data | ( | struct wl_surface * | wl_surface | ) |
Definition at line 9029 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, ghost_wl_surface_own(), and wl_surface.
Referenced by data_device_handle_drop(), dnd_events(), GHOST_SystemWayland::getCursorPosition(), gwl_seat_key_repeat_timer_fn(), keyboard_handle_enter(), keyboard_handle_key(), pointer_handle_enter(), pointer_handle_frame(), relative_pointer_handle_relative_motion(), setCursorGrab_use_software_confine(), GHOST_SystemWayland::setCursorPosition(), tablet_tool_handle_frame(), tablet_tool_handle_proximity_in(), and GHOST_SystemWayland::window_cursor_grab_set().
| 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().
| 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().
| wl_fixed_t gwl_window_scale_wl_fixed_from | ( | const GWL_WindowScaleParams & | scale_params, |
| wl_fixed_t | value ) |
Definition at line 242 of file GHOST_WindowWayland.cc.
References FRACTIONAL_DENOMINATOR, GWL_WindowScaleParams::is_fractional, and GWL_WindowScaleParams::scale.
Referenced by gwl_window_scale_int_from(), and GHOST_SystemWayland::window_cursor_grab_set().
| wl_fixed_t gwl_window_scale_wl_fixed_to | ( | const GWL_WindowScaleParams & | scale_params, |
| wl_fixed_t | value ) |
Definition at line 234 of file GHOST_WindowWayland.cc.
References FRACTIONAL_DENOMINATOR, GWL_WindowScaleParams::is_fractional, and GWL_WindowScaleParams::scale.
Referenced by gwl_window_scale_int_to(), and GHOST_SystemWayland::window_cursor_grab_set().