Debian Codegraph @

engine/core/model/structures/renderernode.i

raw
1 /***************************************************************************
2 * Copyright (C) 2005-2019 by the FIFE team *
3 * http://www.fifengine.net *
4 * This file is part of FIFE. *
5 * *
6 * FIFE is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU Lesser General Public *
8 * License as published by the Free Software Foundation; either *
9 * version 2.1 of the License, or (at your option) any later version. *
10 * *
11 * This library is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Lesser General Public *
17 * License along with this library; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
20 ***************************************************************************/
21
22 %module fife
23 %{
24 #include "model/structures/renderernode.h"
25 %}
26
27 namespace FIFE {
28
29 %ignore RendererNode::operator=;
30
31 class RendererNode {
32 public:
33 RendererNode(Instance* attached_instance, const Location &relative_location, Layer* relative_layer, const Point &relative_point = Point(0,0));
34 RendererNode(Instance* attached_instance, const Location &relative_location, const Point &relative_point = Point(0,0));
35 RendererNode(Instance* attached_instance, Layer* relative_layer, const Point &relative_point = Point(0,0));
36 RendererNode(Instance* attached_instance, const Point &relative_point = Point(0,0));
37 RendererNode(const Location &attached_location, Layer* relative_layer, const Point &relative_point = Point(0,0));
38 RendererNode(const Location &attached_location, const Point &relative_point = Point(0,0));
39 RendererNode(Layer* attached_layer, const Point &relative_point = Point(0,0));
40 RendererNode(const Point &attached_point);
41 RendererNode(const RendererNode &old);
42 RendererNode& operator=(const RendererNode &source);
43 ~RendererNode();
44
45 void setAttached(Instance* attached_instance, const Location &relative_location, const Point &relative_point);
46 void setAttached(Instance* attached_instance, const Location &relative_location);
47 void setAttached(Instance* attached_instance, const Point &relative_point);
48 void setAttached(Instance* attached_instance);
49 void setAttached(const Location &attached_location, const Point &relative_point);
50 void setAttached(const Location &attached_location);
51 void setAttached(Layer* attached_layer);
52 void setAttached(const Point &attached_point);
53
54 void setRelative(const Location &relative_location);
55 void setRelative(const Location &relative_location, Point relative_point);
56 void setRelative(const Point &relative_point);
57
58 Instance* getAttachedInstance();
59 Location getAttachedLocation();
60 Layer* getAttachedLayer();
61 Point getAttachedPoint();
62
63 Location getOffsetLocation();
64 Point getOffsetPoint();
65
66 Instance* getInstance();
67 Location getLocation();
68 const Location& getLocationRef();
69 Layer* getLayer();
70 Point getPoint();
71 const Point& getPointRef();
72
73 Point getCalculatedPoint(Camera* cam, Layer* layer, const bool zoomed);
74 };
75 }