Blender  V3.3
Public Attributes | List of all members
output_t Struct Reference

#include <GHOST_SystemWayland.h>

Public Attributes

struct wl_output * wl_output = nullptr
 
struct zxdg_output_v1 * xdg_output = 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
 
wl_fixed_t scale_fractional = wl_fixed_from_int(1)
 
bool has_scale_fractional = false
 
std::string make
 
std::string model
 

Detailed Description

Definition at line 58 of file GHOST_SystemWayland.h.

Member Data Documentation

◆ has_position_logical

bool output_t::has_position_logical = false

Definition at line 71 of file GHOST_SystemWayland.h.

◆ has_scale_fractional

bool output_t::has_scale_fractional = false

Definition at line 84 of file GHOST_SystemWayland.h.

Referenced by output_scale_cmp(), and outputs_max_scale_or_default().

◆ has_size_logical

bool output_t::has_size_logical = false

Definition at line 67 of file GHOST_SystemWayland.h.

◆ make

std::string output_t::make

Definition at line 86 of file GHOST_SystemWayland.h.

◆ model

std::string output_t::model

Definition at line 87 of file GHOST_SystemWayland.h.

◆ position_logical

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

Monitor position in pixels.

Definition at line 70 of file GHOST_SystemWayland.h.

◆ scale

int output_t::scale = 1

Definition at line 74 of file GHOST_SystemWayland.h.

Referenced by output_scale_cmp(), and outputs_max_scale_or_default().

◆ scale_fractional

wl_fixed_t output_t::scale_fractional = wl_fixed_from_int(1)

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
Internally an #wl_fixed_t is used to store the scale of the display, so use the same value here (avoid floating point arithmetic in general).

Definition at line 83 of file GHOST_SystemWayland.h.

Referenced by output_scale_cmp(), and outputs_max_scale_or_default().

◆ size_logical

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

Definition at line 66 of file GHOST_SystemWayland.h.

◆ size_mm

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

Dimensions in millimeter.

Definition at line 64 of file GHOST_SystemWayland.h.

◆ size_native

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

Dimensions in pixels.

Definition at line 62 of file GHOST_SystemWayland.h.

◆ transform

int output_t::transform = 0

Definition at line 73 of file GHOST_SystemWayland.h.

◆ wl_output

struct wl_output* output_t::wl_output = nullptr

Definition at line 59 of file GHOST_SystemWayland.h.

Referenced by ghost_wl_output_user_data().

◆ xdg_output

struct zxdg_output_v1* output_t::xdg_output = nullptr

Definition at line 60 of file GHOST_SystemWayland.h.


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