Blender V5.3
GWL_Output Struct Reference

#include <GHOST_SystemWayland.hh>

Classes

struct  [struct].wl
struct  [struct].xdg

Public Attributes

struct  wl
struct  xdg
GHOST_SystemWayland * system = 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 130 of file GHOST_SystemWayland.hh.

Member Data Documentation

◆ has_position_logical

bool GWL_Output::has_position_logical = false

Definition at line 167 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 163 of file GHOST_SystemWayland.hh.

◆ make

std::string GWL_Output::make

Definition at line 182 of file GHOST_SystemWayland.hh.

◆ model

std::string GWL_Output::model

Definition at line 183 of file GHOST_SystemWayland.hh.

◆ position_logical

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

Monitor position in pixels.

Definition at line 166 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 179 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 162 of file GHOST_SystemWayland.hh.

◆ size_mm

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

Dimensions in millimeter.

Definition at line 152 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 150 of file GHOST_SystemWayland.hh.

◆ system

GHOST_SystemWayland* GWL_Output::system = nullptr

Definition at line 142 of file GHOST_SystemWayland.hh.

◆ transform

int GWL_Output::transform = 0

Definition at line 169 of file GHOST_SystemWayland.hh.

◆ wl

struct GWL_Output::[struct].wl GWL_Output::wl

◆ xdg

struct GWL_Output::[struct].xdg GWL_Output::xdg

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