mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
vendor/glfw: add GetMonitorWorkarea binding
This commit is contained in:
Vendored
+1
@@ -71,6 +71,7 @@ foreign glfw {
|
|||||||
GetPrimaryMonitor :: proc() -> MonitorHandle ---
|
GetPrimaryMonitor :: proc() -> MonitorHandle ---
|
||||||
GetMonitors :: proc(count: ^c.int) -> [^]MonitorHandle ---
|
GetMonitors :: proc(count: ^c.int) -> [^]MonitorHandle ---
|
||||||
GetMonitorPos :: proc(monitor: MonitorHandle, xpos, ypos: ^c.int) ---
|
GetMonitorPos :: proc(monitor: MonitorHandle, xpos, ypos: ^c.int) ---
|
||||||
|
GetMonitorWorkarea :: proc(monitor: MonitorHandle, xpos, ypos, width, height: ^c.int) ---
|
||||||
GetMonitorPhysicalSize :: proc(monitor: MonitorHandle, widthMM, heightMM: ^c.int) ---
|
GetMonitorPhysicalSize :: proc(monitor: MonitorHandle, widthMM, heightMM: ^c.int) ---
|
||||||
GetMonitorContentScale :: proc(monitor: MonitorHandle, xscale, yscale: ^f32) ---
|
GetMonitorContentScale :: proc(monitor: MonitorHandle, xscale, yscale: ^f32) ---
|
||||||
|
|
||||||
|
|||||||
Vendored
+4
@@ -33,6 +33,10 @@ GetMonitorPos :: proc "c" (monitor: MonitorHandle) -> (xpos, ypos: c.int) {
|
|||||||
glfw.GetMonitorPos(monitor, &xpos, &ypos)
|
glfw.GetMonitorPos(monitor, &xpos, &ypos)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
GetMonitorWorkarea :: proc "c" (monitor: MonitorHandle) -> (xpos, ypos, width, height: c.int) {
|
||||||
|
glfw.GetMonitorWorkarea(monitor, &xpos, &ypos, &width, &height)
|
||||||
|
return
|
||||||
|
}
|
||||||
GetMonitorPhysicalSize :: proc "c" (monitor: MonitorHandle) -> (widthMM, heightMM: c.int) {
|
GetMonitorPhysicalSize :: proc "c" (monitor: MonitorHandle) -> (widthMM, heightMM: c.int) {
|
||||||
glfw.GetMonitorPhysicalSize(monitor, &widthMM, &heightMM)
|
glfw.GetMonitorPhysicalSize(monitor, &widthMM, &heightMM)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user