SO3Engine
Position.h
Go to the documentation of this file.
1/*
2 This file is part of Hikari, a library that allows developers
3 to use Flash in their Ogre3D applications.
4
5 Copyright (C) 2008 Adam J. Simmons
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20*/
21
22#ifndef __Position_H__
23#define __Position_H__
24
25#include "HikariPlatform.h"
26
27namespace Hikari {
28
46
50struct _HikariExport Position
51{
53 union {
54 struct { RelativePosition position; short x; short y; } rel;
55 struct { short left; short top; } abs;
56 } data;
57
61 Position();
62
72 Position(const RelativePosition &relPosition, short offsetLeft = 0, short offsetTop = 0);
73
81 Position(short absoluteLeft, short absoluteTop);
82};
83
84}
85
86#endif
RelativePosition
Definition Position.h:33
@ BottomLeft
Definition Position.h:41
@ CenterRight
Definition Position.h:44
@ CenterLeft
Definition Position.h:43
@ TopLeft
Definition Position.h:35
@ TopRight
Definition Position.h:37
@ Center
Definition Position.h:42
@ BottomCenter
Definition Position.h:40
@ BottomRight
Definition Position.h:39
@ Left
Definition Position.h:34
@ TopCenter
Definition Position.h:36
@ Right
Definition Position.h:38
RelativePosition position
Definition Position.h:54