Blender V5.3
GWL_Window Struct Reference

Classes

struct  [struct].wl
struct  [struct].wp
struct  [struct].xdg
struct  [struct].backend

Public Attributes

struct  wl
struct  wp
struct  xdg
struct  backend
GHOST_WindowWayland * ghost_window = nullptr
GHOST_SystemWayland * ghost_system = nullptr
GHOST_TDrawingContextType ghost_context_type = GHOST_kDrawingContextTypeNone
std::vector< GWL_Output * > outputs
GWL_XDG_Decor_Window * xdg_decor = nullptr
GWL_XDG_WindowIcon xdg_icon
GWL_WindowFrame frame
GWL_WindowFrame frame_pending
std::mutex frame_pending_mutex
GHOST_CursorGenerator * cursor_generator = nullptr
std::string title
bool is_dialog = false
bool is_init = false
bool is_valid_setup = false
GWL_WindowScaleParams scale_params
std::atomic< bool > pending_actions [PENDING_NUM] = {false}

Detailed Description

Definition at line 351 of file GHOST_WindowWayland.cc.

Member Data Documentation

◆ backend

struct GWL_Window::[struct].backend GWL_Window::backend

◆ cursor_generator

GHOST_CursorGenerator* GWL_Window::cursor_generator = nullptr

Definition at line 426 of file GHOST_WindowWayland.cc.

Referenced by gwl_window_pending_actions_handle().

◆ frame

◆ frame_pending

◆ frame_pending_mutex

std::mutex GWL_Window::frame_pending_mutex

Needed so calls such as GHOST_Window::setClientSize doesn't conflict with WAYLAND callbacks that may run in a thread.

Definition at line 423 of file GHOST_WindowWayland.cc.

Referenced by gwl_window_frame_update_from_pending(), and xdg_toplevel_handle_configure().

◆ ghost_context_type

GHOST_TDrawingContextType GWL_Window::ghost_context_type = GHOST_kDrawingContextTypeNone

Definition at line 387 of file GHOST_WindowWayland.cc.

Referenced by gwl_window_resize_for_backend().

◆ ghost_system

◆ ghost_window

◆ is_dialog

bool GWL_Window::is_dialog = false

Definition at line 430 of file GHOST_WindowWayland.cc.

◆ is_init

bool GWL_Window::is_init = false

True once the window has been initialized.

Definition at line 433 of file GHOST_WindowWayland.cc.

◆ is_valid_setup

bool GWL_Window::is_valid_setup = false

True when the GPU context is valid.

Definition at line 436 of file GHOST_WindowWayland.cc.

◆ outputs

std::vector<GWL_Output *> GWL_Window::outputs

Outputs on which the window is currently shown on.

This is an ordered set (whoever adds to this is responsible for keeping members unique). In practice this is rarely manipulated and is limited by the number of physical displays.

Definition at line 395 of file GHOST_WindowWayland.cc.

◆ pending_actions

std::atomic<bool> GWL_Window::pending_actions[PENDING_NUM] = {false}

These pending actions can't be performed when WAYLAND handlers are running from a thread. Postpone their execution until the main thread can handle them.

Definition at line 446 of file GHOST_WindowWayland.cc.

Referenced by gwl_window_pending_actions_handle(), and gwl_window_pending_actions_tag().

◆ scale_params

GWL_WindowScaleParams GWL_Window::scale_params

Currently only initialized on access (avoids allocations & allows to keep private).

Definition at line 439 of file GHOST_WindowWayland.cc.

◆ title

std::string GWL_Window::title

Definition at line 428 of file GHOST_WindowWayland.cc.

Referenced by gwl_window_title_set().

◆ wl

◆ wp

◆ xdg

◆ xdg_decor

◆ xdg_icon

GWL_XDG_WindowIcon GWL_Window::xdg_icon

Definition at line 398 of file GHOST_WindowWayland.cc.


The documentation for this struct was generated from the following file: