ReXGlue SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
window.h
Go to the documentation of this file.
1
10
11
#pragma once
12
13
#include <string>
14
15
#include <
rex/types.h
>
16
17
namespace
rex::ui {
18
20
enum class
AspectRatio
: u8 {
21
kStretch
,
22
k4x3,
23
k5x4,
24
k3x2,
25
k16x10,
26
k16x9,
27
k21x9,
28
k32x9,
29
};
30
31
struct
WindowSize
{
32
u32 width_px = 0;
33
u32 height_px = 0;
34
};
35
36
enum class
CursorVisibility
: u8 {
37
kVisible,
38
kAutoHidden
,
39
kHidden,
40
};
41
42
struct
Monitor
{
44
i32
index
= 0;
45
std::string name;
47
i32
x
= 0;
49
i32
y
= 0;
51
u32
width
= 0;
53
u32
height
= 0;
55
f32
refresh_rate
= 0;
57
f32
content_scale
= 1;
58
};
59
60
struct
HostLocale
{
62
std::string
language
;
64
std::string
country
;
65
};
66
67
struct
WindowConfig
{
68
std::string title;
69
u32 width = 1280;
70
u32 height = 720;
71
u32 min_width = 0;
72
u32 min_height = 0;
73
ui::AspectRatio
aspect_ratio =
ui::AspectRatio::kStretch
;
74
bool
fullscreen =
true
;
75
bool
fullscreen_exclusive
=
false
;
76
i32 monitor = 0;
77
bool
vulkan_surface
=
false
;
78
u32
mode_width
= 0;
79
u32
mode_height
= 0;
80
};
81
82
enum class
CursorShape : u8 {
83
kArrow,
84
kTextInput,
85
kResizeAll,
86
kResizeNS,
87
kResizeEW,
88
kResizeNESW,
89
kResizeNWSE,
90
kHand,
91
kNotAllowed,
92
};
93
94
}
// namespace rex::ui
rex::ui::HostLocale
Definition
window.h:60
rex::ui::HostLocale::language
std::string language
Definition
window.h:62
rex::ui::HostLocale::country
std::string country
Definition
window.h:64
rex::ui::Monitor
Definition
window.h:42
rex::ui::Monitor::width
u32 width
Definition
window.h:51
rex::ui::Monitor::content_scale
f32 content_scale
Definition
window.h:57
rex::ui::Monitor::y
i32 y
Definition
window.h:49
rex::ui::Monitor::height
u32 height
Definition
window.h:53
rex::ui::Monitor::index
i32 index
Definition
window.h:44
rex::ui::Monitor::refresh_rate
f32 refresh_rate
Definition
window.h:55
rex::ui::Monitor::x
i32 x
Definition
window.h:47
rex::ui::WindowConfig
Definition
window.h:67
rex::ui::WindowConfig::vulkan_surface
bool vulkan_surface
Definition
window.h:77
rex::ui::WindowConfig::fullscreen_exclusive
bool fullscreen_exclusive
Definition
window.h:75
rex::ui::WindowConfig::mode_height
u32 mode_height
Definition
window.h:79
rex::ui::WindowConfig::mode_width
u32 mode_width
Definition
window.h:78
rex::ui::WindowSize
Definition
window.h:31
types.h
Integer types, byte order wrappers and size literals.
rex::ui::AspectRatio
AspectRatio
Definition
window.h:20
rex::ui::AspectRatio::kStretch
@ kStretch
Definition
window.h:21
rex::ui::CursorVisibility
CursorVisibility
Definition
window.h:36
rex::ui::CursorVisibility::kAutoHidden
@ kAutoHidden
Definition
window.h:38
rex
ui
window.h
Generated by
1.18.0