Blender V5.0
GWL_Output Struct Reference

#include <GHOST_SystemWayland.hh>

Public Attributes

struct { 
   wl_output *   output = nullptr 
wl
struct { 
   struct zxdg_output_v1 *   output = nullptr 
xdg
GHOST_SystemWaylandsystem = nullptr
int32_t size_native [2] = {0, 0}
int32_t size_mm [2] = {0, 0}
int32_t size_logical [2] = {0, 0}
bool has_size_logical = false
int32_t position_logical [2] = {0, 0}
bool has_position_logical = false
int transform = 0
int scale = 1
int scale_fractional = (1 * FRACTIONAL_DENOMINATOR)
bool has_scale_fractional = false
std::string make
std::string model

Detailed Description

Definition at line 93 of file GHOST_SystemWayland.hh.

Member Data Documentation

◆ has_position_logical

bool GWL_Output::has_position_logical = false

Definition at line 130 of file GHOST_SystemWayland.hh.

◆ has_scale_fractional

bool GWL_Output::has_scale_fractional = false

◆ has_size_logical

bool GWL_Output::has_size_logical = false

Definition at line 126 of file GHOST_SystemWayland.hh.

◆ make

std::string GWL_Output::make

Definition at line 145 of file GHOST_SystemWayland.hh.

◆ model

std::string GWL_Output::model

Definition at line 146 of file GHOST_SystemWayland.hh.

◆ output [1/2]

struct zxdg_output_v1* GWL_Output::output = nullptr

Definition at line 102 of file GHOST_SystemWayland.hh.

◆ output [2/2]

wl_output* GWL_Output::output = nullptr

Definition at line 97 of file GHOST_SystemWayland.hh.

◆ position_logical

int32_t GWL_Output::position_logical[2] = {0, 0}

Monitor position in pixels.

Definition at line 129 of file GHOST_SystemWayland.hh.

◆ scale

int GWL_Output::scale = 1

◆ scale_fractional

int GWL_Output::scale_fractional = (1 * FRACTIONAL_DENOMINATOR)

The integer scale value should be used in almost all cases, as this is what is used for most API calls. Only use fractional scaling to calculate the DPI.

Note
Use the same scale as #wp_fractional_scale_manager_v1 (avoid floating point arithmetic in general).

Definition at line 142 of file GHOST_SystemWayland.hh.

Referenced by output_scale_cmp(), outputs_max_scale_or_default(), and outputs_uniform_scale_or_default().

◆ size_logical

int32_t GWL_Output::size_logical[2] = {0, 0}

Dimensions in logical points.

Note
A 2x Hi-DPI monitor with a size_native of 1600x1200 would have a size_logical of 800x600.
Rotation (from the transform flag has been applied.

Definition at line 125 of file GHOST_SystemWayland.hh.

◆ size_mm

int32_t GWL_Output::size_mm[2] = {0, 0}

Dimensions in millimeter.

Definition at line 115 of file GHOST_SystemWayland.hh.

◆ size_native

int32_t GWL_Output::size_native[2] = {0, 0}

Dimensions in pixels.

Note
Rotation (from the transform flag has not been applied. So a vertical monitor will still have a larger width.

Definition at line 113 of file GHOST_SystemWayland.hh.

◆ system

GHOST_SystemWayland* GWL_Output::system = nullptr

Definition at line 105 of file GHOST_SystemWayland.hh.

◆ transform

int GWL_Output::transform = 0

Definition at line 132 of file GHOST_SystemWayland.hh.

◆ [struct]

struct { ... } GWL_Output::wl

Wayland core types.

◆ [struct]

struct { ... } GWL_Output::xdg

XDG native types.


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