[v3 linux] setEnabled

This commit is contained in:
Travis McLane
2023-06-23 21:50:51 -05:00
parent 67cada78f6
commit de5cff799e
3 changed files with 36 additions and 7 deletions
+14
View File
@@ -614,6 +614,14 @@ func getScreens(app pointer) ([]*Screen, error) {
}
// widgets
func widgetSetSensitive(widget pointer, enabled bool) {
value := 0
if enabled {
value = 1
}
gtkWidgetSetSensitive(widget, value)
}
func widgetSetVisible(widget pointer, hidden bool) {
if hidden {
gtkWidgetHide(widget)
@@ -665,6 +673,12 @@ func windowFullscreen(window pointer) {
gtkWindowFullScreen(window)
}
func windowGetAbsolutePosition(window pointer) (int, int) {
var x, y int
gtkWindowGetPosition(window, &x, &y)
return x, y
}
func windowGetCurrentMonitor(window pointer) pointer {
// Get the monitor that the window is currently on
display := gtkWidgetGetDisplay(window)