31 HostChrome() =
default;
32 ~HostChrome() =
default;
34 HostChrome(
const HostChrome& other) =
default;
35 HostChrome& operator=(
const HostChrome& other) =
default;
37 HostChrome(HostChrome && other) =
default;
38 HostChrome& operator=(HostChrome && other) =
default;
50 void setViewport(uint32_t x, uint32_t y, uint32_t width, uint32_t height) {
74 m_capturePointer = pointer;
75 m_captureKeyboard = keyboard;
111 ViewportRect m_viewport;
112 bool m_capturePointer =
false;
113 bool m_captureKeyboard =
false;
114 bool m_authoring =
false;
bool authoring() const
Whether the host may change the world this frame.
Definition host_chrome.h:108
bool capturesKeyboard() const
Whether the host's UI owns the keyboard this frame.
Definition host_chrome.h:90
void setCapture(bool pointer, bool keyboard)
Declare that the host's own UI, not the scene, has the devices.
Definition host_chrome.h:73
bool capturesPointer() const
Whether the host's UI owns the pointer this frame.
Definition host_chrome.h:83
void setViewport(uint32_t x, uint32_t y, uint32_t width, uint32_t height)
Declare the rect inside the window the 3D scene renders into.
Definition host_chrome.h:50
void setAuthoring(bool authoring)
Declare whether the host may change the world this frame: an editor outside a running session,...
Definition host_chrome.h:101
ViewportRect viewport(const WindowManager &window) const
The declared rect, resolved against the window it sits in.
Owns the application's window, its WindowSurface, input, and frame limiting.
Definition window_manager.h:69
A rect in framebuffer pixels, origin at the top left.
Definition host_chrome.h:23