[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Size of a ScrolledWindow's child...
- From: Axel Schlueter <aschlueter netcologne de>
- To: gtk-app-devel-list redhat com
- Subject: Size of a ScrolledWindow's child...
- Date: Wed, 02 Feb 2000 14:22:43 +0100
Hi,
I'm developing an GTK application, and the biggest problem is the
lack of (good) documentation for GTK. Normally try and error
helps, but now I ran into a problem where I need some help...
I want to display a large picture into a window, so I created a Window,
put a GtkScrolledWindow into it and set a GtkDrawingArea as a child of
the scrolled window. The picture's size is 32kx32k pixels, so I want
to load only the part of picture which is currently visible. Then
in respone to the "expose_event" from the GtkDrawingArea I need the
size and position of the currently visible part of the drawing area to
detect if I have to load a new part of the picture or just redisplay the
current one.
The Problem: I'm unable to get the coordinates of the currently visible
part of the GdkDrawingWindow ! I suppose I have to get them from
GtkScrolledWindow, but there are no such calls. The GdkExposeEvent
contains only the area to redraw, but I need the WHOLE visible area.
Any ideas where to get it ?
Thanks,
Axel
--
"In a world without fences, who needs Gates ?"
"Linux is like a wigwam - no windows, no gates, apache inside!"
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]