obtaining current viewport/scrolled window dimensions
- From: James Morris <jwm art net gmail com>
- To: gtk-app-devel-list gnome org
- Subject: obtaining current viewport/scrolled window dimensions
- Date: Wed, 22 Sep 2010 23:49:37 +0100
Hi,
I have a GtkDrawingArea within a GtkViewport within a
GtkScrolledWindow. I need the viewport dimensions so I can center the
contents of the drawing area when the drawn contents are smaller than
the viewport/window. There is a vague mention of "page_size" in the
documentation for scrolled window but no other clues.
How do I get these dimensions please?
Cheers,
James.
--
_
: http://jwm-art.net/
-audio/image/text/code
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]