@@ -581,6 +581,22 @@ function GetWindowContentScale(window::Window)
581
581
(xscale= xscale[], yscale= yscale[])
582
582
end
583
583
584
+ GetWindowAttrib (window:: Window , attrib:: Integer ) = ccall ((:glfwGetWindowAttrib , libglfw), Cint, (Window, Cint), window, attrib)
585
+
586
+ function SetWindowAttrib (window:: Window , attrib:: Integer , value:: Integer )
587
+ ccall ((:glfwSetWindowAttrib , libglfw), Cvoid, (Window, Cint, Cint), window, attrib, value)
588
+ end
589
+
590
+ function WindowHintString (hint:: Integer , value:: AbstractString )
591
+ ccall ((:glfwWindowHintString , libglfw), Cvoid, (Cint, Cstring), hint, value)
592
+ end
593
+
594
+ RequestWindowAttention (window:: Window ) = ccall ((:glfwRequestWindowAttention , libglfw), Cvoid, (Window,), window)
595
+
596
+ GetWindowOpacity (window:: Window ) = ccall ((:glfwGetWindowOpacity , libglfw), Cfloat, (Window,), window)
597
+ SetWindowOpacity (window:: Window , opacity:: AbstractFloat ) = ccall ((:glfwSetWindowOpacity , libglfw), Cvoid, (Window, Cfloat), window, opacity)
598
+
599
+
584
600
IconifyWindow (window:: Window ) = ccall ((:glfwIconifyWindow , libglfw), Cvoid, (Window,), window)
585
601
RestoreWindow (window:: Window ) = ccall ((:glfwRestoreWindow , libglfw), Cvoid, (Window,), window)
586
602
MaximizeWindow (window) = ccall ((:glfwMaximizeWindow , libglfw), Cvoid, (Window,), window)
@@ -592,7 +608,6 @@ GetWindowMonitor(window::Window) = ccall((:glfwGetWindowMonitor, libglfw), Monit
592
608
# - Nothing with size and position
593
609
SetWindowMonitor (window, monitor, xpos, ypos, width, height, refreshRate) = ccall ((:glfwSetWindowMonitor , libglfw),
594
610
Cvoid, (Window, Monitor, Cint, Cint, Cint, Cint, Cint), window, monitor, xpos, ypos, width, height, refreshRate)
595
- GetWindowAttrib (window:: Window , attrib:: Integer ) = ccall ((:glfwGetWindowAttrib , libglfw), Cint, (Window, Cint), window, attrib)
596
611
@windowcallback WindowPos (window:: Window , x:: Cint , y:: Cint )
597
612
@windowcallback WindowSize (window:: Window , width:: Cint , height:: Cint )
598
613
@windowcallback WindowClose (window:: Window )
@@ -601,6 +616,7 @@ GetWindowAttrib(window::Window, attrib::Integer) = ccall((:glfwGetWindowAttrib,
601
616
@windowcallback WindowIconify (window:: Window , iconified:: Cint ) -> (window, Bool (iconified))
602
617
@windowcallback FramebufferSize (window:: Window , width:: Cint , height:: Cint )
603
618
@windowcallback WindowContentScale (window:: Window , xscale:: Cfloat , yscale:: Cfloat )
619
+ @windowcallback WindowMaximize (window:: Window , maximized:: Cint ) -> (window, Bool (maximized))
604
620
PollEvents () = ccall ((:glfwPollEvents , libglfw), Cvoid, ())
605
621
WaitEvents () = ccall ((:glfwWaitEvents , libglfw), Cvoid, ())
606
622
WaitEvents (timeout) = ccall ((:glfwWaitEventsTimeout , libglfw), Cvoid, (Cdouble,), timeout)
0 commit comments