diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-05 18:41:34 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-05 18:41:34 +0000 |
commit | dd96213cdf64c5481c8d07dbd39ce1247f42d04e (patch) | |
tree | 453c4aa1dcb9fb1ee1852fdba106f697d16af17f /src/graphics.h | |
parent | f1b06fb279c460691a88c8143084390e435d6bf9 (diff) | |
download | mana-client-dd96213cdf64c5481c8d07dbd39ce1247f42d04e.tar.gz mana-client-dd96213cdf64c5481c8d07dbd39ce1247f42d04e.tar.bz2 mana-client-dd96213cdf64c5481c8d07dbd39ce1247f42d04e.tar.xz mana-client-dd96213cdf64c5481c8d07dbd39ce1247f42d04e.zip |
Merged the definition of ImageRect into graphics.h.
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 21 |
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 { |