EuGTK - size, position of a GtkWindow
- Posted by Jerry_Story Oct 26, 2010
- 1682 views
How do you get the width, height, x position, y position of a GtkWindow?
In GtkRoutines.e, under control[GtkWindow], I found
{"get_position",{P,I,I}},
{"get_size",{P,I,I}},
s = get(win,"size") printf(1,"size of window: width=%d height=%d \n",{s[1],s[2]}) s = get(win,"position") printf(1,"position of window: x=%d y=%d \n \n",{s[1],s[2]})
This produces nothing but zeros.
grep size *.ex
This produces lots of lines with 'set' and 'size' but none with 'get' and 'size'.
grep position *.ex
Same deal here. Lots of lines with 'set' and 'position' but none with 'get' and 'position'.
get_size() doesn't work on a GtkWindow.