1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreOverlayElement.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
4 | <link type="text/css" rel="stylesheet" href="style.css"> |
---|
5 | </head> |
---|
6 | |
---|
7 | <body> |
---|
8 | <!-- Generated by Doxygen 1.3.6 --> |
---|
9 | <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
10 | <h1>OgreOverlayElement.h</h1><a href="OgreOverlayElement_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> |
---|
11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
13 | 00004 <span class="comment">(Object-oriented Graphics Rendering Engine)</span> |
---|
14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
15 | 00006 <span class="comment"></span> |
---|
16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
18 | 00009 <span class="comment"></span> |
---|
19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
22 | 00013 <span class="comment">version.</span> |
---|
23 | 00014 <span class="comment"></span> |
---|
24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
27 | 00018 <span class="comment"></span> |
---|
28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
33 | 00024 <span class="comment">*/</span> |
---|
34 | 00025 |
---|
35 | 00026 <span class="preprocessor">#ifndef __OverlayElement_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span><span class="preprocessor">#define __OverlayElement_H__</span> |
---|
37 | 00028 <span class="preprocessor"></span> |
---|
38 | 00029 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgreString_8h.html">OgreString.h</a>"</span> |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreRenderable_8h.html">OgreRenderable.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreStringInterface_8h.html">OgreStringInterface.h</a>"</span> |
---|
42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreOverlayElementCommands_8h.html">OgreOverlayElementCommands.h</a>"</span> |
---|
43 | 00034 |
---|
44 | 00035 <span class="preprocessor">#include "<a class="code" href="OgreColourValue_8h.html">OgreColourValue.h</a>"</span> |
---|
45 | 00036 <span class="preprocessor">#include "<a class="code" href="OgreRectangle_8h.html">OgreRectangle.h</a>"</span> |
---|
46 | 00037 |
---|
47 | 00038 <span class="keyword">namespace </span>Ogre { |
---|
48 | 00039 |
---|
49 | 00040 |
---|
50 | <a name="l00043"></a><a class="code" href="namespaceOgre.html#a663">00043</a> <span class="keyword">enum</span> <a class="code" href="namespaceOgre.html#a663">GuiMetricsMode</a> |
---|
51 | 00044 { |
---|
52 | 00046 <a class="code" href="namespaceOgre.html#a663a349">GMM_RELATIVE</a>, |
---|
53 | 00048 <a class="code" href="namespaceOgre.html#a663a350">GMM_PIXELS</a>, |
---|
54 | 00050 <a class="code" href="namespaceOgre.html#a663a351">GMM_RELATIVE_ASPECT_ADJUSTED</a> |
---|
55 | 00051 }; |
---|
56 | 00052 |
---|
57 | <a name="l00056"></a><a class="code" href="namespaceOgre.html#a664">00056</a> <span class="keyword">enum</span> <a class="code" href="namespaceOgre.html#a664">GuiHorizontalAlignment</a> |
---|
58 | 00057 { |
---|
59 | 00058 <a class="code" href="namespaceOgre.html#a664a352">GHA_LEFT</a>, |
---|
60 | 00059 <a class="code" href="namespaceOgre.html#a664a353">GHA_CENTER</a>, |
---|
61 | 00060 <a class="code" href="namespaceOgre.html#a664a354">GHA_RIGHT</a> |
---|
62 | 00061 }; |
---|
63 | <a name="l00065"></a><a class="code" href="namespaceOgre.html#a665">00065</a> <span class="keyword">enum</span> <a class="code" href="namespaceOgre.html#a665">GuiVerticalAlignment</a> |
---|
64 | 00066 { |
---|
65 | 00067 <a class="code" href="namespaceOgre.html#a665a355">GVA_TOP</a>, |
---|
66 | 00068 <a class="code" href="namespaceOgre.html#a665a356">GVA_CENTER</a>, |
---|
67 | 00069 <a class="code" href="namespaceOgre.html#a665a357">GVA_BOTTOM</a> |
---|
68 | 00070 }; |
---|
69 | 00071 |
---|
70 | <a name="l00093"></a><a class="code" href="classOgre_1_1OverlayElement.html">00093</a> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> OverlayElement : <span class="keyword">public</span> <a class="code" href="classOgre_1_1StringInterface.html">StringInterface</a>, <span class="keyword">public</span> <a class="code" href="classOgre_1_1Renderable.html">Renderable</a> |
---|
71 | 00094 { |
---|
72 | 00095 <span class="keyword">public</span>: |
---|
73 | 00096 |
---|
74 | 00097 <span class="keyword">protected</span>: |
---|
75 | 00098 <span class="comment">// Command object for setting / getting parameters</span> |
---|
76 | <a name="l00099"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementt8">00099</a> <span class="keyword">static</span> <a class="code" href="classOgre_1_1OverlayElementCommands_1_1CmdLeft.html">OverlayElementCommands::CmdLeft</a> msLeftCmd; |
---|
77 | <a name="l00100"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementt9">00100</a> <span class="keyword">static</span> <a class="code" href="classOgre_1_1OverlayElementCommands_1_1CmdTop.html">OverlayElementCommands::CmdTop</a> msTopCmd; |
---|
78 | <a name="l00101"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementt10">00101</a> <span class="keyword">static</span> <a class="code" href="classOgre_1_1OverlayElementCommands_1_1CmdWidth.html">OverlayElementCommands::CmdWidth</a> msWidthCmd; |
---|
79 | <a name="l00102"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementt11">00102</a> <span class="keyword">static</span> <a class="code" href="classOgre_1_1OverlayElementCommands_1_1CmdHeight.html">OverlayElementCommands::CmdHeight</a> msHeightCmd; |
---|
80 | <a name="l00103"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementt12">00103</a> <span class="keyword">static</span> <a class="code" href="classOgre_1_1OverlayElementCommands_1_1CmdMaterial.html">OverlayElementCommands::CmdMaterial</a> msMaterialCmd; |
---|
81 | <a name="l00104"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementt13">00104</a> <span class="keyword">static</span> <a class="code" href="classOgre_1_1OverlayElementCommands_1_1CmdCaption.html">OverlayElementCommands::CmdCaption</a> msCaptionCmd; |
---|
82 | <a name="l00105"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementt14">00105</a> <span class="keyword">static</span> <a class="code" href="classOgre_1_1OverlayElementCommands_1_1CmdMetricsMode.html">OverlayElementCommands::CmdMetricsMode</a> msMetricsModeCmd; |
---|
83 | <a name="l00106"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementt15">00106</a> <span class="keyword">static</span> <a class="code" href="classOgre_1_1OverlayElementCommands_1_1CmdHorizontalAlign.html">OverlayElementCommands::CmdHorizontalAlign</a> msHorizontalAlignCmd; |
---|
84 | <a name="l00107"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementt16">00107</a> <span class="keyword">static</span> <a class="code" href="classOgre_1_1OverlayElementCommands_1_1CmdVerticalAlign.html">OverlayElementCommands::CmdVerticalAlign</a> msVerticalAlignCmd; |
---|
85 | <a name="l00108"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementt17">00108</a> <span class="keyword">static</span> <a class="code" href="classOgre_1_1OverlayElementCommands_1_1CmdVisible.html">OverlayElementCommands::CmdVisible</a> msVisibleCmd; |
---|
86 | 00109 |
---|
87 | 00110 |
---|
88 | <a name="l00111"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp13">00111</a> <a class="code" href="namespaceOgre.html#a426">String</a> mName; |
---|
89 | <a name="l00112"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp14">00112</a> <span class="keywordtype">bool</span> mVisible; |
---|
90 | <a name="l00113"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp15">00113</a> <span class="keywordtype">bool</span> mCloneable; |
---|
91 | <a name="l00114"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp16">00114</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mLeft; |
---|
92 | <a name="l00115"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp17">00115</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mTop; |
---|
93 | <a name="l00116"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp18">00116</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mWidth; |
---|
94 | <a name="l00117"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp19">00117</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mHeight; |
---|
95 | <a name="l00118"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp20">00118</a> <a class="code" href="namespaceOgre.html#a426">String</a> mMaterialName; |
---|
96 | <a name="l00119"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp21">00119</a> <a class="code" href="classOgre_1_1MaterialPtr.html">MaterialPtr</a> mpMaterial; |
---|
97 | <a name="l00120"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp22">00120</a> <a class="code" href="namespaceOgre.html#a426">String</a> mCaption; |
---|
98 | <a name="l00121"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp23">00121</a> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> mColour; |
---|
99 | <a name="l00122"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp24">00122</a> <a class="code" href="structOgre_1_1Rectangle.html">Rectangle</a> mClippingRegion; |
---|
100 | 00123 |
---|
101 | <a name="l00124"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp25">00124</a> <a class="code" href="namespaceOgre.html#a663">GuiMetricsMode</a> mMetricsMode; |
---|
102 | <a name="l00125"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp26">00125</a> <a class="code" href="namespaceOgre.html#a664">GuiHorizontalAlignment</a> mHorzAlign; |
---|
103 | <a name="l00126"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp27">00126</a> <a class="code" href="namespaceOgre.html#a665">GuiVerticalAlignment</a> mVertAlign; |
---|
104 | 00127 |
---|
105 | 00128 <span class="comment">// metric-mode positions, used in GMM_PIXELS & GMM_RELATIVE_ASPECT_ADJUSTED mode.</span> |
---|
106 | <a name="l00129"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp28">00129</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mPixelTop; |
---|
107 | <a name="l00130"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp29">00130</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mPixelLeft; |
---|
108 | <a name="l00131"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp30">00131</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mPixelWidth; |
---|
109 | <a name="l00132"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp31">00132</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mPixelHeight; |
---|
110 | <a name="l00133"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp32">00133</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mPixelScaleX; |
---|
111 | <a name="l00134"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp33">00134</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mPixelScaleY; |
---|
112 | 00135 |
---|
113 | 00136 <span class="comment">// Parent pointer</span> |
---|
114 | <a name="l00137"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp34">00137</a> <a class="code" href="classOgre_1_1OverlayContainer.html">OverlayContainer</a>* mParent; |
---|
115 | 00138 <span class="comment">// Overlay attached to</span> |
---|
116 | <a name="l00139"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp35">00139</a> <a class="code" href="classOgre_1_1Overlay.html">Overlay</a>* mOverlay; |
---|
117 | 00140 |
---|
118 | 00141 <span class="comment">// Derived positions from parent</span> |
---|
119 | <a name="l00142"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp36">00142</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mDerivedLeft; |
---|
120 | <a name="l00143"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp37">00143</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mDerivedTop; |
---|
121 | <a name="l00144"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp38">00144</a> <span class="keywordtype">bool</span> mDerivedOutOfDate; |
---|
122 | 00145 |
---|
123 | <a name="l00147"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp39">00147</a> <span class="keywordtype">bool</span> mGeomPositionsOutOfDate; |
---|
124 | <a name="l00149"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp40">00149</a> <span class="keywordtype">bool</span> mGeomUVsOutOfDate; |
---|
125 | 00150 |
---|
126 | 00151 <span class="comment">// Zorder for when sending to render queue</span> |
---|
127 | 00152 <span class="comment">// Derived from parent</span> |
---|
128 | <a name="l00153"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp41">00153</a> <a class="code" href="namespaceOgre.html#a422">ushort</a> mZOrder; |
---|
129 | 00154 |
---|
130 | 00155 <span class="comment">// world transforms</span> |
---|
131 | <a name="l00156"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp42">00156</a> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> mXForm; |
---|
132 | 00157 |
---|
133 | 00158 <span class="comment">// is element enabled</span> |
---|
134 | <a name="l00159"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp43">00159</a> <span class="keywordtype">bool</span> mEnabled; |
---|
135 | 00160 |
---|
136 | 00161 <span class="comment">// is element initialised</span> |
---|
137 | <a name="l00162"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp44">00162</a> <span class="keywordtype">bool</span> mInitialised; |
---|
138 | 00163 |
---|
139 | 00164 <span class="comment">// Used to see if this element is created from a Template</span> |
---|
140 | <a name="l00165"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementp45">00165</a> OverlayElement* mSourceTemplate ; |
---|
141 | 00166 |
---|
142 | 00171 <span class="keyword">virtual</span> <span class="keywordtype">void</span> updatePositionGeometry(<span class="keywordtype">void</span>) = 0; |
---|
143 | 00176 <span class="keyword">virtual</span> <span class="keywordtype">void</span> updateTextureGeometry(<span class="keywordtype">void</span>) = 0; |
---|
144 | 00177 |
---|
145 | 00186 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addBaseParameters(<span class="keywordtype">void</span>); |
---|
146 | 00187 |
---|
147 | 00188 <span class="keyword">public</span>: |
---|
148 | 00190 OverlayElement(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name); |
---|
149 | 00191 <span class="keyword">virtual</span> ~OverlayElement(); |
---|
150 | 00192 |
---|
151 | 00194 <span class="keyword">virtual</span> <span class="keywordtype">void</span> initialise(<span class="keywordtype">void</span>) = 0; |
---|
152 | 00195 |
---|
153 | 00197 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& getName(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
154 | 00198 |
---|
155 | 00199 |
---|
156 | 00201 <span class="keyword">virtual</span> <span class="keywordtype">void</span> show(<span class="keywordtype">void</span>); |
---|
157 | 00202 |
---|
158 | 00204 <span class="keyword">virtual</span> <span class="keywordtype">void</span> hide(<span class="keywordtype">void</span>); |
---|
159 | 00205 |
---|
160 | 00207 <span class="keywordtype">bool</span> isVisible(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
161 | 00208 |
---|
162 | 00209 <span class="keywordtype">bool</span> isEnabled() <span class="keyword">const</span>; |
---|
163 | 00210 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setEnabled(<span class="keywordtype">bool</span> b); |
---|
164 | 00211 |
---|
165 | 00212 |
---|
166 | 00214 <span class="keywordtype">void</span> setDimensions(<a class="code" href="namespaceOgre.html#a420">Real</a> width, <a class="code" href="namespaceOgre.html#a420">Real</a> height); |
---|
167 | 00215 |
---|
168 | 00218 <span class="keywordtype">void</span> setPosition(<a class="code" href="namespaceOgre.html#a420">Real</a> left, <a class="code" href="namespaceOgre.html#a420">Real</a> top); |
---|
169 | 00219 |
---|
170 | 00221 <span class="keywordtype">void</span> setWidth(<a class="code" href="namespaceOgre.html#a420">Real</a> width); |
---|
171 | 00223 <a class="code" href="namespaceOgre.html#a420">Real</a> getWidth(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
172 | 00224 |
---|
173 | 00226 <span class="keywordtype">void</span> setHeight(<a class="code" href="namespaceOgre.html#a420">Real</a> height); |
---|
174 | 00228 <a class="code" href="namespaceOgre.html#a420">Real</a> getHeight(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
175 | 00229 |
---|
176 | 00231 <span class="keywordtype">void</span> setLeft(<a class="code" href="namespaceOgre.html#a420">Real</a> left); |
---|
177 | 00233 <a class="code" href="namespaceOgre.html#a420">Real</a> getLeft(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
178 | 00234 |
---|
179 | 00236 <span class="keywordtype">void</span> setTop(<a class="code" href="namespaceOgre.html#a420">Real</a> Top); |
---|
180 | 00238 <a class="code" href="namespaceOgre.html#a420">Real</a> getTop(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
181 | 00239 |
---|
182 | <a name="l00241"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa40">00241</a> <a class="code" href="namespaceOgre.html#a420">Real</a> _getLeft(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mLeft; } |
---|
183 | <a name="l00243"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa41">00243</a> <a class="code" href="namespaceOgre.html#a420">Real</a> _getTop(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mTop; } |
---|
184 | <a name="l00245"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa42">00245</a> <a class="code" href="namespaceOgre.html#a420">Real</a> _getWidth(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mWidth; } |
---|
185 | <a name="l00247"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa43">00247</a> <a class="code" href="namespaceOgre.html#a420">Real</a> _getHeight(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mHeight; } |
---|
186 | 00249 <span class="keywordtype">void</span> _setLeft(<a class="code" href="namespaceOgre.html#a420">Real</a> left); |
---|
187 | 00251 <span class="keywordtype">void</span> _setTop(<a class="code" href="namespaceOgre.html#a420">Real</a> top); |
---|
188 | 00253 <span class="keywordtype">void</span> _setWidth(<a class="code" href="namespaceOgre.html#a420">Real</a> width); |
---|
189 | 00255 <span class="keywordtype">void</span> _setHeight(<a class="code" href="namespaceOgre.html#a420">Real</a> height); |
---|
190 | 00257 <span class="keywordtype">void</span> _setPosition(<a class="code" href="namespaceOgre.html#a420">Real</a> left, <a class="code" href="namespaceOgre.html#a420">Real</a> top); |
---|
191 | 00259 <span class="keywordtype">void</span> _setDimensions(<a class="code" href="namespaceOgre.html#a420">Real</a> width, <a class="code" href="namespaceOgre.html#a420">Real</a> height); |
---|
192 | 00260 |
---|
193 | 00262 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& getMaterialName(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
194 | 00263 |
---|
195 | 00274 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMaterialName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& matName); |
---|
196 | 00275 |
---|
197 | 00276 |
---|
198 | 00277 <span class="comment">// --- Renderable Overrides ---</span> |
---|
199 | 00279 <span class="comment"></span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1MaterialPtr.html">MaterialPtr</a>& getMaterial(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
200 | 00280 |
---|
201 | 00281 <span class="comment">// NB getRenderOperation not implemented, still abstract here</span> |
---|
202 | 00282 |
---|
203 | 00284 <span class="keywordtype">void</span> getWorldTransforms(<a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>* xform) <span class="keyword">const</span>; |
---|
204 | 00286 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>& getWorldOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
205 | 00288 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& getWorldPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
206 | 00289 |
---|
207 | 00291 <span class="keywordtype">bool</span> useIdentityProjection(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
208 | 00292 |
---|
209 | 00294 <span class="keywordtype">bool</span> useIdentityView(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
210 | 00295 |
---|
211 | 00297 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _positionsOutOfDate(<span class="keywordtype">void</span>); |
---|
212 | 00298 |
---|
213 | 00300 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _update(<span class="keywordtype">void</span>); |
---|
214 | 00301 |
---|
215 | 00303 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _updateFromParent(<span class="keywordtype">void</span>); |
---|
216 | 00304 |
---|
217 | 00306 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _notifyParent(<a class="code" href="classOgre_1_1OverlayContainer.html">OverlayContainer</a>* parent, <a class="code" href="classOgre_1_1Overlay.html">Overlay</a>* overlay); |
---|
218 | 00307 |
---|
219 | 00309 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a420">Real</a> _getDerivedLeft(<span class="keywordtype">void</span>); |
---|
220 | 00310 |
---|
221 | 00312 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a420">Real</a> _getDerivedTop(<span class="keywordtype">void</span>); |
---|
222 | 00313 |
---|
223 | 00315 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _getClippingRegion(<a class="code" href="structOgre_1_1Rectangle.html">Rectangle</a> &clippingRegion); |
---|
224 | 00316 |
---|
225 | 00326 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _notifyZOrder(<a class="code" href="namespaceOgre.html#a422">ushort</a> newZOrder); |
---|
226 | 00327 |
---|
227 | 00331 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _notifyWorldTransforms(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>& xform); |
---|
228 | 00332 |
---|
229 | 00336 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _notifyViewport(); |
---|
230 | 00337 |
---|
231 | 00339 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _updateRenderQueue(<a class="code" href="classOgre_1_1RenderQueue.html">RenderQueue</a>* queue); |
---|
232 | 00340 |
---|
233 | 00342 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& getTypeName(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0; |
---|
234 | 00343 |
---|
235 | 00350 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCaption(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& text); |
---|
236 | 00351 |
---|
237 | 00353 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& getCaption(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
238 | 00354 |
---|
239 | 00361 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setColour(<span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>& col); |
---|
240 | 00362 |
---|
241 | 00364 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>& getColour(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
242 | 00365 |
---|
243 | 00376 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMetricsMode(GuiMetricsMode gmm); |
---|
244 | 00378 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a663">GuiMetricsMode</a> getMetricsMode(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
245 | 00394 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setHorizontalAlignment(GuiHorizontalAlignment gha); |
---|
246 | 00396 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a664">GuiHorizontalAlignment</a> getHorizontalAlignment(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
247 | 00412 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setVerticalAlignment(GuiVerticalAlignment gva); |
---|
248 | 00414 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a665">GuiVerticalAlignment</a> getVerticalAlignment(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
249 | 00415 |
---|
250 | 00416 |
---|
251 | 00417 |
---|
252 | 00418 |
---|
253 | 00420 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> contains(<a class="code" href="namespaceOgre.html#a420">Real</a> x, <a class="code" href="namespaceOgre.html#a420">Real</a> y) <span class="keyword">const</span>; |
---|
254 | 00421 |
---|
255 | 00423 <span class="keyword">virtual</span> OverlayElement* findElementAt(<a class="code" href="namespaceOgre.html#a420">Real</a> x, <a class="code" href="namespaceOgre.html#a420">Real</a> y); <span class="comment">// relative to parent</span> |
---|
256 | 00424 |
---|
257 | <a name="l00428"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa74">00428</a> <span class="keyword">inline</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isContainer()<span class="keyword"> const</span> |
---|
258 | 00429 <span class="keyword"> </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; } |
---|
259 | 00430 |
---|
260 | <a name="l00431"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa75">00431</a> <span class="keyword">inline</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isKeyEnabled()<span class="keyword"> const</span> |
---|
261 | 00432 <span class="keyword"> </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; } |
---|
262 | 00433 |
---|
263 | <a name="l00434"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa76">00434</a> <span class="keyword">inline</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isCloneable()<span class="keyword"> const</span> |
---|
264 | 00435 <span class="keyword"> </span>{ <span class="keywordflow">return</span> mCloneable; } |
---|
265 | 00436 |
---|
266 | <a name="l00437"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa77">00437</a> <span class="keyword">inline</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCloneable(<span class="keywordtype">bool</span> c) |
---|
267 | 00438 { mCloneable = c; } |
---|
268 | 00439 |
---|
269 | 00443 <a class="code" href="classOgre_1_1OverlayContainer.html">OverlayContainer</a>* getParent() ; |
---|
270 | <a name="l00444"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa79">00444</a> <span class="keywordtype">void</span> _setParent(<a class="code" href="classOgre_1_1OverlayContainer.html">OverlayContainer</a>* parent) { mParent = parent; } |
---|
271 | 00445 |
---|
272 | <a name="l00449"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa80">00449</a> <span class="keyword">inline</span> <a class="code" href="namespaceOgre.html#a422">ushort</a> getZOrder()<span class="keyword"> const</span> |
---|
273 | 00450 <span class="keyword"> </span>{ <span class="keywordflow">return</span> mZOrder; } |
---|
274 | 00451 |
---|
275 | <a name="l00453"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa81">00453</a> <a class="code" href="namespaceOgre.html#a420">Real</a> getSquaredViewDepth(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Camera.html">Camera</a>* cam)<span class="keyword"> const </span> |
---|
276 | 00454 <span class="keyword"> </span>{ |
---|
277 | 00455 <span class="keywordflow">return</span> 10000 - getZOrder(); |
---|
278 | 00456 } |
---|
279 | 00457 |
---|
280 | <a name="l00459"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa82">00459</a> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a59">LightList</a>& getLights(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
281 | 00460 <span class="keyword"> </span>{ |
---|
282 | 00461 <span class="comment">// Overlayelements should not be lit by the scene, this will not get called</span> |
---|
283 | 00462 <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a59">LightList</a> ll; |
---|
284 | 00463 <span class="keywordflow">return</span> ll; |
---|
285 | 00464 } |
---|
286 | 00465 |
---|
287 | 00466 <span class="keywordtype">void</span> copyFromTemplate(OverlayElement* templateOverlay); |
---|
288 | 00467 <span class="keyword">virtual</span> OverlayElement* clone(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& instanceName); |
---|
289 | 00468 |
---|
290 | 00469 <span class="comment">// Returns the SourceTemplate for this element</span> |
---|
291 | <a name="l00470"></a><a class="code" href="classOgre_1_1OverlayElement.html#Ogre_1_1TextAreaOverlayElementa85">00470</a> <span class="keyword">const</span> OverlayElement* getSourceTemplate ()<span class="keyword"> const </span>{ |
---|
292 | 00471 <span class="keywordflow">return</span> mSourceTemplate ; |
---|
293 | 00472 } |
---|
294 | 00473 }; |
---|
295 | 00474 |
---|
296 | 00475 |
---|
297 | 00476 |
---|
298 | 00477 } |
---|
299 | 00478 |
---|
300 | 00479 |
---|
301 | 00480 <span class="preprocessor">#endif</span> |
---|
302 | 00481 <span class="preprocessor"></span> |
---|
303 | </pre></div><hr> |
---|
304 | <p> |
---|
305 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
306 | <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/> |
---|
307 | This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/> |
---|
308 | <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
---|
309 | <Work rdf:about=""> |
---|
310 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
311 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
312 | </Work> |
---|
313 | <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> --> |
---|
314 | |
---|
315 | Last modified Sun Feb 12 12:59:48 2006 |
---|
316 | </p> |
---|
317 | </body> |
---|
318 | </html> |
---|