Skip to content

raylib.GetMonitorWidth

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get selected monitor width (currently used by monitor)

Parameters

Parameter Default Value Note
monitor 0

Return value

Condition Return Value
(always) number

Notes

Example

w = raylib.GetMonitorWidth(0)
print "Primary monitor width: " + w + " px"

Clone this wiki locally