Skip to content

MTY_WindowGetFrame

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Get a window's normalized size and position.

This function can be used to query the "restored" size and position of a window even when it is maximized or in fullscreen mode. It also will always return unscaled values taking into account the screen's current scaling setting. The returned MTY_Frame can be passed directly into MTY_WindowCreate or MTY_WindowSetFrame.

MTY_Frame MTY_WindowGetFrame(
    MTY_App *  app,
    MTY_Window window
);

Parameters

app (MTY_App *)

The MTY_App.

window (MTY_Window)

An MTY_Window.

Return value

MTY_Frame

Window's normalized size and position.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: App

Clone this wiki locally