summaryrefslogtreecommitdiff
path: root/gtkcalls_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'gtkcalls_unix.go')
-rw-r--r--gtkcalls_unix.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtkcalls_unix.go b/gtkcalls_unix.go
index fa69789..115060c 100644
--- a/gtkcalls_unix.go
+++ b/gtkcalls_unix.go
@@ -80,6 +80,13 @@ func gtk_window_resize(window *gtkWidget, width int, height int) {
C.gtk_window_resize((*C.GtkWindow)(unsafe.Pointer(window)), C.gint(width), C.gint(height))
}
+func gtk_window_get_size(window *gtkWidget) (int, int) {
+ var width, height C.gint
+
+ C.gtk_window_get_size((*C.GtkWindow)(unsafe.Pointer(window)), &width, &height)
+ return int(width), int(height)
+}
+
func gtk_fixed_new() *gtkWidget {
return (*gtkWidget)(unsafe.Pointer(C.gtk_fixed_new()))
}