Public Types |
| enum | Alignment { Left,
Right,
Center
} |
Public Methods |
| | TextAreaGuiElement (const String &name) |
| | Constructor. More...
|
| | ~TextAreaGuiElement () |
| void | setCaption (const String &caption) |
| | Sets the caption on elements that support it. More...
|
| const String & | getCaption () const |
| | Gets the caption for this element. More...
|
| void | setCharHeight (Real height) |
| Real | getCharHeight () const |
| void | setFontName (const String &font) |
| const String & | getFontName () const |
| const String & | getTypeName (void) |
| | See GuiElement. More...
|
| void | getRenderOperation (RenderOperation &rend) |
| | See Renderable. More...
|
| void | setMaterialName (const String &matName) |
| | Overridden from GuiElement. More...
|
| void | setColour (const ColourValue &col) |
| | Sets the colour of the text. More...
|
| ColourValue | getColour (void) const |
| | Gets the colour of the text. More...
|
| void | setColourBottom (const ColourValue &col) |
| | Sets the colour of the bottom of the letters. More...
|
| ColourValue | getColourBottom (void) |
| | Gets the colour of the bottom of the letters. More...
|
| void | setColourTop (const ColourValue &col) |
| | Sets the colour of the top of the letters. More...
|
| ColourValue | getColourTop (void) |
| | Gets the colour of the top of the letters. More...
|
| void | setAlignment (Alignment a) |
| Alignment | getAlignment () const |
| void | setMetricsMode (GuiMetricsMode gmm) |
| | Overridden from GuiElement. More...
|
| void | _update (void) |
| | Overridden from GuiElement. More...
|
| const String & | getName (void) const |
| | Gets the name of this overlay. More...
|
| void | show (void) |
| | Shows this element if it was hidden. More...
|
| void | hide (void) |
| | Hides this element if it was visible. More...
|
| bool | isVisible (void) |
| | Returns whether or not the element is visible. More...
|
| void | setDimensions (Real width, Real height) |
| | Sets the dimensions of this element in relation to the screen (1.0 = screen width/height). More...
|
| void | setPosition (Real left, Real top) |
| | Sets the position of the top-left corner of the element, relative to the screen size (1.0 = screen width / height). More...
|
| void | setWidth (Real width) |
| | Sets the width of this element in relation to the screen (where 1.0 = screen width). More...
|
| Real | getWidth (void) const |
| | Gets the width of this element in relation to the screen (where 1.0 = screen width). More...
|
| void | setHeight (Real height) |
| | Sets the height of this element in relation to the screen (where 1.0 = screen height). More...
|
| Real | getHeight (void) const |
| | Gets the height of this element in relation to the screen (where 1.0 = screen height). More...
|
| void | setLeft (Real left) |
| | Sets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right). More...
|
| Real | getLeft (void) const |
| | Gets the left of this element in relation to the screen (where 0 = far left, 1.0 = far right). More...
|
| void | setTop (Real Top) |
| | Sets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom). More...
|
| Real | getTop (void) const |
| | Gets the top of this element in relation to the screen (where 0 = top, 1.0 = bottom). More...
|
| virtual const String & | getMaterialName (void) const |
| | Gets the name of the material this element uses. More...
|
| Material * | getMaterial (void) const |
| | See Renderable. More...
|
| void | getWorldTransforms (Matrix4 *xform) |
| | See Renderable. More...
|
| bool | useIdentityProjection (void) |
| | See Renderable. More...
|
| bool | useIdentityView (void) |
| | See Renderable. More...
|
| virtual void | _updateFromParent (void) |
| | Updates this elements transform based on it's parent. More...
|
| virtual void | _notifyParent (GuiContainer *parent, Overlay *overlay) |
| | Internal method for notifying the gui element of it's parent and ultimate overlay. More...
|
| virtual Real | _getDerivedLeft (void) |
| | Gets the 'left' position as derived from own left and that of parents. More...
|
| virtual Real | _getDerivedTop (void) |
| | Gets the 'top' position as derived from own left and that of parents. More...
|
| virtual void | _notifyZOrder (ushort newZOrder) |
| | Internal method to notify the element when Zorder of parent overlay has changed. More...
|
| virtual void | _updateRenderQueue (RenderQueue *queue) |
| | Internal method to put the contents onto the render queue. More...
|
| virtual GuiMetricsMode | getMetricsMode (void) |
| | Retrieves the current settings of how the element metrics are interpreted. More...
|
| virtual void | setHorizontalAlignment (GuiHorizontalAlignment gha) |
| | Sets the horizontal origin for this element. More...
|
| virtual GuiHorizontalAlignment | getHorizontalAlignment (void) |
| | Gets the horizontal alignment for this element. More...
|
| virtual void | setVerticalAlignment (GuiVerticalAlignment gva) |
| | Sets the vertical origin for this element. More...
|
| virtual GuiVerticalAlignment | getVerticalAlignment (void) |
| | Gets the vertical alignment for this element. More...
|
| virtual bool | contains (Real x, Real y) const |
| | Returns true if xy is within the constraints of the component. More...
|
| virtual GuiElement * | findElementAt (Real x, Real y) |
| | Returns true if xy is within the constraints of the component. More...
|
| virtual void | processEvent (InputEvent *e) |
| | Processes events occurring on this component. More...
|
| virtual bool | isContainer () |
| | returns false as this class is not a container type. More...
|
| virtual bool | isCloneable () |
| virtual void | setCloneable (bool c) |
| PositionTarget * | getPositionTargetParent () |
| | Returns the parent container. More...
|
| GuiContainer * | getParent () |
| | Returns the parent container. More...
|
| ushort | getZOrder () const |
| | Returns the zOrder of the element. More...
|
| Real | getSquaredViewDepth (const Camera *cam) const |
| | Overridden from Renderable. More...
|
| void | copyFromTemplate (GuiElement *templateGui) |
| ParamDictionary * | getParamDictionary (void) |
| | Retrieves the parameter dictionary for this class. More...
|
| const ParameterList & | getParameters (void) |
| | Retrieves a list of parameters valid for this object. More...
|
| virtual bool | setParameter (const String &name, const String &value) |
| | Generic parameter setting method. More...
|
| virtual String | getParameter (const String &name) |
| | Generic parameter retrieval method. More...
|
| virtual void | copyParametersTo (StringInterface *dest) |
| | Method for copying this object's parameters to another object. More...
|
| virtual unsigned short | getNumWorldTransforms (void) |
| | Returns the number of world transform matrices this renderable requires. More...
|
| virtual SceneDetailLevel | getRenderDetail () |
| | Returns the preferred rasterisation mode of this renderable. More...
|
| void | processMouseEvent (MouseEvent *e) |
| void | addMouseListener (MouseListener *l) |
| void | removeMouseListener (MouseListener *l) |
| void | processMouseMotionEvent (MouseEvent *e) |
| void | addMouseMotionListener (MouseMotionListener *l) |
| void | removeMouseMotionListener (MouseMotionListener *l) |
Protected Methods |
| void | addBaseParameters (void) |
| | Method for setting up base parameters for this class. More...
|
| void | updateGeometry () |
| | Internal method to update the geometry. More...
|
| void | checkMemoryAllocation (uint numChars) |
| | Internal method to allocate memory, only reallocates when necessary. More...
|
| virtual void | updatePositionGeometry () |
| | Inherited function. More...
|
| virtual void | updateColours (void) |
| | Updates vertex colours. More...
|
| bool | createParamDictionary (const String &className) |
| | Internal method for creating a parameter dictionary for the class, if it does not already exist. More...
|
Protected Attributes |
| Alignment | mAlignment |
| | The text alignment. More...
|
| bool | mTransparent |
| | Flag indicating if this panel should be visual or just group things. More...
|
| RenderOperation | mRenderOp |
| | Render operation. More...
|
| Font * | mpFont |
| Real | mCharHeight |
| ushort | mPixelCharHeight |
| uint | mAllocSize |
| ColourValue | mColourBottom |
| | Colours to use for the vertices. More...
|
| ColourValue | mColourTop |
| String | mName |
| bool | mVisible |
| bool | mCloneable |
| Real | mLeft |
| Real | mTop |
| Real | mWidth |
| Real | mHeight |
| String | mMaterialName |
| Material * | mpMaterial |
| String | mCaption |
| GuiMetricsMode | mMetricsMode |
| GuiHorizontalAlignment | mHorzAlign |
| GuiVerticalAlignment | mVertAlign |
| short | mPixelTop |
| short | mPixelLeft |
| short | mPixelWidth |
| short | mPixelHeight |
| GuiContainer * | mParent |
| Overlay * | mOverlay |
| Real | mDerivedLeft |
| Real | mDerivedTop |
| bool | mDerivedOutOfDate |
| bool | mGeomPositionsOutOfDate |
| | Falg indicating if the vertex positons need recalculating. More...
|
| ushort | mZOrder |
| String | mParamDictName |
| | Class name for this instance to be used as a lookup (must be initialised by subclasses). More...
|
| MouseListener * | mMouseListener |
| MouseMotionListener * | mMouseMotionListener |
Static Protected Attributes |
| String | msTypeName = "TextArea" |
| CmdCharHeight | msCmdCharHeight |
| CmdFontName | msCmdFontName |
| CmdColour | msCmdColour |
| CmdColourTop | msCmdColourTop |
| CmdColourBottom | msCmdColourBottom |
| GuiElementCommands::CmdLeft | msLeftCmd |
| GuiElementCommands::CmdTop | msTopCmd |
| GuiElementCommands::CmdWidth | msWidthCmd |
| GuiElementCommands::CmdHeight | msHeightCmd |
| GuiElementCommands::CmdMaterial | msMaterialCmd |
| GuiElementCommands::CmdCaption | msCaptionCmd |
| GuiElementCommands::CmdMetricsMode | msMetricsModeCmd |
| GuiElementCommands::CmdHorizontalAlign | msHorizontalAlignCmd |
| GuiElementCommands::CmdVerticalAlign | msVerticalAlignCmd |
| ParamDictionaryMap | msDictionary |
| | Dictionary of parameters. More...
|