summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-12 15:33:46 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-12 15:33:46 +0000
commit1ed24efbcf819b409ca47d06a15d095dca14db89 (patch)
tree9268096081f2db4253f1b9fbf79cd05133929356 /src/graphics.h
parentf8957c58aa1b4f2ea41dcc34e66792e020cd1ee6 (diff)
downloadmana-1ed24efbcf819b409ca47d06a15d095dca14db89.tar.gz
mana-1ed24efbcf819b409ca47d06a15d095dca14db89.tar.bz2
mana-1ed24efbcf819b409ca47d06a15d095dca14db89.tar.xz
mana-1ed24efbcf819b409ca47d06a15d095dca14db89.zip
Merged r2829 from trunk (Merged the definition of ImageRect into graphics.h)
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h
index 3c060e97..b3d36653 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -32,6 +32,27 @@ class ImageRect;
class SDL_Surface;
/**
+ * 9 images defining a rectangle. 4 corners, 4 sides and a middle area. The
+ * topology is as follows:
+ *
+ * <pre>
+ * !-----!-----------------!-----!
+ * ! 0 ! 1 ! 2 !
+ * !-----!-----------------!-----!
+ * ! 3 ! 4 ! 5 !
+ * !-----!-----------------!-----!
+ * ! 6 ! 7 ! 8 !
+ * !-----!-----------------!-----!
+ * </pre>
+ *
+ * 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.
*/
class Graphics : public gcn::SDLGraphics {