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;
93 ViewportRect m_viewport;
94 bool m_capturePointer =
false;
95 bool m_captureKeyboard =
false;
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
ViewportRect viewport(const WindowManager &window) const
The declared rect, resolved against the window it sits in.
Owns the application's window, GL context, input, and frame limiting.
Definition window_manager.h:61
A rect in framebuffer pixels: the unit glViewport takes.
Definition host_chrome.h:23