SO3Engine
include
External
hikari
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
27
namespace
Hikari
{
28
32
enum
RelativePosition
33
{
34
Left
= 0,
35
TopLeft
,
36
TopCenter
,
37
TopRight
,
38
Right
,
39
BottomRight
,
40
BottomCenter
,
41
BottomLeft
,
42
Center
,
43
CenterLeft
,
44
CenterRight
45
};
46
50
struct
_HikariExport
Position
51
{
52
bool
usingRelative
;
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
HikariPlatform.h
Hikari
Definition
Delegate.h:33
Hikari::RelativePosition
RelativePosition
Definition
Position.h:33
Hikari::BottomLeft
@ BottomLeft
Definition
Position.h:41
Hikari::CenterRight
@ CenterRight
Definition
Position.h:44
Hikari::CenterLeft
@ CenterLeft
Definition
Position.h:43
Hikari::TopLeft
@ TopLeft
Definition
Position.h:35
Hikari::TopRight
@ TopRight
Definition
Position.h:37
Hikari::Center
@ Center
Definition
Position.h:42
Hikari::BottomCenter
@ BottomCenter
Definition
Position.h:40
Hikari::BottomRight
@ BottomRight
Definition
Position.h:39
Hikari::Left
@ Left
Definition
Position.h:34
Hikari::TopCenter
@ TopCenter
Definition
Position.h:36
Hikari::Right
@ Right
Definition
Position.h:38
Hikari::Position
Definition
Position.h:51
Hikari::Position::usingRelative
bool usingRelative
Definition
Position.h:52
Hikari::Position::position
RelativePosition position
Definition
Position.h:54
Generated by
1.9.8