PlatformRequest struct

Public static functions

static auto Open(const char* title, int32_t width, int32_t height, uint32_t tag = 0) -> PlatformRequest
Ask Sentinel to open a window; a WindowOpened event with tag follows.
static auto MakeTitle(PlatformWindowID window, const char* title) -> PlatformRequest
static auto Simple(PlatformRequestType type, PlatformWindowID window) -> PlatformRequest
static auto UserScale(float scale) -> PlatformRequest
static auto OpenPopup(PlatformWindowID parent, PlatformWindowKind kind, int32_t x, int32_t y, int32_t width, int32_t height, uint32_t tag = 0) -> PlatformRequest
Open a popup at (x, y) relative to parent; a WindowOpened event with tag follows.
static auto Cursor(PlatformWindowID window, PlatformCursor cursor) -> PlatformRequest
static auto ClipboardRead(PlatformWindowID window, uint32_t tag = 0, PlatformClipboard which = PlatformClipboard::Clipboard) -> PlatformRequest
Ask for clipboard text; a ClipboardText event for window with tag follows.
static auto TextInputArea(PlatformWindowID window, int32_t x, int32_t y, int32_t w, int32_t h) -> PlatformRequest
Where the focused text widget's caret is, so the IME places its candidate list beside it.

Public variables

PlatformRequestType Type
PlatformWindowID Window
int32_t A
int32_t B
int32_t C
int32_t D
uint32_t Tag
PlatformWindowKind Kind
OpenWindow.
std::string* Payload
SetClipboard: owned by the request until applied.
char Title
OpenWindow, SetTitle (fixed size keeps requests trivially copyable).