GtkDrawingArea size
- From: Christopher Howard <christopher howard frigidcode com>
- To: gtk-app-devel-list gnome org
- Subject: GtkDrawingArea size
- Date: Tue, 06 Mar 2012 14:08:26 -0900
Hello again. So, I recently started a project to create a certain board
game (in C) using gtk+, and I just started learning gtk+. I was planning
to draw the board graphics, pieces, etc. all into one GtkDrawingArea.
So, how do I fix the size of the drawing area so it doesn't get larger
or smaller than my graphics?
The alternative, I suppose, would be to scale everything against the
actual size of the drawing area (cairo can resize bitmap images, no?)
but presumably that would be a lot more complicated to code, and I would
still need to constrain the proportions of width to height.
--
frigidcode.com
indicium.us
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]