From 1ed24efbcf819b409ca47d06a15d095dca14db89 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 12 Dec 2006 15:33:46 +0000 Subject: Merged r2829 from trunk (Merged the definition of ImageRect into graphics.h) --- src/graphics.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/graphics.h') diff --git a/src/graphics.h b/src/graphics.h index 3c060e97..b3d36653 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -31,6 +31,27 @@ class ImageRect; class SDL_Surface; +/** + * 9 images defining a rectangle. 4 corners, 4 sides and a middle area. The + * topology is as follows: + * + *
+ *  !-----!-----------------!-----!
+ *  !  0  !        1        !  2  !
+ *  !-----!-----------------!-----!
+ *  !  3  !        4        !  5  !
+ *  !-----!-----------------!-----!
+ *  !  6  !        7        !  8  !
+ *  !-----!-----------------!-----!
+ * 
+ * + * Sections 0, 2, 6 and 8 will remain as is. 1, 3, 4, 5 and 7 will be + * repeated to fit the size of the widget. + */ +struct ImageRect { + Image *grid[9]; +}; + /** * A central point of control for graphics. */ -- cgit v1.2.3-70-g09d2