Skip to content

raylib.GetMonitorWidth

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Get selected monitor's current video mode width. Not supported on web

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