Window_Creation module

get_dimensions

procedure · 3 overloadsSource

Where the window's drawing area is on the screen and how big it is: x, y, width, height, success.

get_dimensions :: (
    win: Window,
    right_handed: bool
) -> (x: s32, y: s32, width: s32, height: s32, success := true)

Where the window's drawing area is on the screen and how big it is: x, y, width, height, success.

Parameters

win: Window
right_handed: bool
counts y up from the bottom of the screen instead of down from the top.

Returns

x: s32
y: s32
width: s32
height: s32
success
get_dimensions :: (
    hwnd: Windows.HWND,
    right_handed: bool
) -> (x: s32, y: s32, width: s32, height: s32, success := true)

Where the window's drawing area is on the screen and how big it is: x, y, width, height, success.

Parameters

hwnd: Windows.HWND
right_handed: bool
counts y up from the bottom of the screen instead of down from the top.

Returns

x: s32
y: s32
width: s32
height: s32
success
get_dimensions :: (
    window: *ObjC.NSWindow,
    right_handed: bool
) -> (x: s32, y: s32, width: s32, height: s32, success := true)

Where the window's drawing area is on the screen and how big it is: x, y, width, height, success.

Parameters

window: *ObjC.NSWindow
right_handed: bool
counts y up from the bottom of the screen instead of down from the top.

Returns

x: s32
y: s32
width: s32
height: s32
success

See also