This layer is for placing images and basic colours in it's parents' quad space. More...
#include <imagelayer.h>
Inheritance diagram for Mezzanine::UI::ImageLayer:
Collaboration diagram for Mezzanine::UI::ImageLayer:Public Member Functions | |
| ImageLayer (QuadRenderable *ParentRenderable) | |
| Class constructor. More... | |
| virtual | ~ImageLayer () |
| Class destructor. | |
| virtual const ColourValue & | GetBorderColour (const UI::Border Side) const |
| Gets the colour of a border on this renderable. More... | |
| virtual Real | GetBorderWidth () const |
| Gets the border width of this renderable. More... | |
| virtual const ColourValue & | GetColour (const UI::QuadCorner Corner) const |
| Gets the colour of a corner of this layer. More... | |
| virtual String | GetDerivedSerializableName () const |
| Gets the most derived serializable name of this Renderable. More... | |
| virtual RenderLayer::RenderLayerType | GetLayerType () const |
| Gets the type of render layer this is. More... | |
| virtual bool | IsCompletelyTransparent () const |
| Gets whether or not this layer is entirely transparent. More... | |
| virtual void | NoBorder () |
| Disables any border set on this renderable if one is currently set. | |
| virtual void | ProtoDeSerializeProperties (const XML::Node &SelfRoot) |
| Take the data stored in an XML Node and overwrite the properties of this object with it. More... | |
| virtual void | ProtoSerializeProperties (XML::Node &SelfRoot) const |
| Convert the properties of this class to an XML::Node ready for serialization. More... | |
| virtual void | SetBorder (const Real Width, const ColourValue &Colour) |
| Sets all parameters for enabling a border. More... | |
| virtual void | SetBorder (const Real Width, const ColourValue &North, const ColourValue &South, const ColourValue &East, const ColourValue &West) |
| Sets all parameters for enabling a border. More... | |
| virtual void | SetBorderColour (const ColourValue &Colour) |
| Sets the colour of the border for this renderable. More... | |
| virtual void | SetBorderColour (const UI::Border Side, const ColourValue &Colour) |
| Sets the colour of one side of the border for this renderable. More... | |
| virtual void | SetBorderWidth (const Real Width) |
| Sets the width of the border for this renderable. More... | |
| virtual void | SetColour (const ColourValue &Colour) |
| Sets the colour of the layer. More... | |
| virtual void | SetColour (const UI::QuadCorner Corner, const ColourValue &Colour) |
| Sets the colour for one corner the layer. More... | |
| virtual void | SetGradient (const UI::Gradient Grad, const ColourValue &ColourA, const ColourValue &ColourB) |
| Sets a colour gradient to be applied to this layer. More... | |
| virtual void | SetSprite (Sprite *PSprite) |
| Sets the fill image(if provided in the atlas) of the layer. More... | |
| virtual void | SetSprite (const String &SpriteName) |
| Sets the fill image(if provided in the atlas) of the layer. More... | |
| virtual void | SetSprite (const String &SpriteName, const String &Atlas) |
| Sets the fill image(if provided in the atlas) of the layer. More... | |
Public Member Functions inherited from Mezzanine::UI::RenderLayer | |
| virtual | ~RenderLayer () |
| Class destructor. | |
| virtual void | _MarkDirty () |
| Marks this renderable as well as all parent objects as dirty. More... | |
| virtual void | _UpdateIndex (const Whole Index) |
| Notifies this RenderLayer that it's index in the parent QuadRenderable has been updated. More... | |
| virtual Rect | GetAreaRect () const |
| Gets a rect containing the actual position and size of this layer. More... | |
| virtual Whole | GetIndex () const |
| Gets the index position of this RenderLayer in it's parent. More... | |
| virtual QuadRenderable * | GetParent () const |
| Gets the parent of this render layer. More... | |
| virtual Real | GetRotationDegrees () const |
| Gets the current rotation applied to this renderable in degrees. More... | |
| virtual Real | GetRotationRadians () const |
| Gets the current rotation applied to this renderable in radians. More... | |
| virtual Vector2 | GetScale () const |
| Gets the scaling currently applied to this render layer. More... | |
| virtual Screen * | GetScreen () const |
| Gets the screen the parent renderable is being rendered on. More... | |
| virtual void | NotifyActive () |
| Notifies this RenderLayer that the group this layer belongs to has become the active group. More... | |
| virtual void | NotifyInactive () |
| Notifies this RenderLayer that the group this layer belongs to is no longer the active group. More... | |
| virtual void | SetRotationDegrees (const Real &Degrees) |
| Sets the rotation to be applied to this renderable. More... | |
| virtual void | SetRotationRadians (const Real &Radians) |
| Sets the rotation to be applied to this renderable. More... | |
| virtual void | SetScale (const Vector2 &Scaling) |
| Sets the scaling to be applied to this render layer. More... | |
Static Public Member Functions | |
| static String | GetSerializableName () |
| Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized. More... | |
Static Public Member Functions inherited from Mezzanine::UI::RenderLayer | |
| static String | GetSerializableName () |
| Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized. More... | |
Static Public Member Functions inherited from Mezzanine::UI::QuadRenderer | |
| static String | GetSerializableName () |
| Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized. More... | |
Static Public Member Functions inherited from Mezzanine::UI::SimpleRenderer | |
| static String | GetSerializableName () |
| Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized. More... | |
Protected Member Functions | |
| void | DrawBorder (const Vector2 &TopLeft, const Vector2 &TopRight, const Vector2 &BottomLeft, const Vector2 &BottomRight, const Vector2 &OuterTopLeft, const Vector2 &OuterTopRight, const Vector2 &OuterBottomLeft, const Vector2 &OuterBottomRight) |
| Draws the border, if any is set. | |
| void | DrawFill (const Vector2 &TopLeft, const Vector2 &TopRight, const Vector2 &BottomLeft, const Vector2 &BottomRight) |
| Draws the main rectangle. | |
| virtual void | RedrawImpl (bool Force) |
| Provides the class specific implementation for regenerating vertices for this renderable. More... | |
Protected Member Functions inherited from Mezzanine::UI::RenderLayer | |
| RenderLayer (QuadRenderable *ParentRenderable) | |
| Class constructor. More... | |
| virtual void | RotationTransform (Vector2 &Point, const Vector2 &RotationCenter) |
| Applies rotation to a point in 2D space. More... | |
| virtual void | RotationTransform (Vector2 &TopLeft, Vector2 &TopRight, Vector2 &BottomLeft, Vector2 &BottomRight) |
| Applies rotation to a quad in 2D space. More... | |
Protected Member Functions inherited from Mezzanine::UI::QuadRenderer | |
| QuadRenderer () | |
| Class constructor. | |
| virtual | ~QuadRenderer () |
| Class destructor. | |
| virtual void | PushQuad (Vector2 *Positions, Vector2 *UVs, ColourValue *Colours, const String &Atlas) |
| Pushes vertex information for a quad to a vector. Equivalent to calling "PushTriangle" twice. | |
| virtual void | PushQuad2 (Vector2 *Positions, Vector2 *UVs, const ColourValue &Colour, const String &Atlas) |
| Pushes vertex information for a quad to a vector. Equivalent to calling "PushTriangle" twice. | |
Protected Member Functions inherited from Mezzanine::UI::SimpleRenderer | |
| SimpleRenderer () | |
| Class constructor. | |
| virtual | ~SimpleRenderer () |
| Class destructor. | |
| virtual void | PushTriangle (const Vector2 &A, const Vector2 &B, const Vector2 &C, const Vector2 &UV, const ColourValue &Colour, const String &Atlas) |
| Pushes vertex information for a triangle to a vector. Equivalent to calling "PushVertex" three times. More... | |
| virtual void | PushVertex (const Real &X, const Real &Y, const Vector2 &UV, const ColourValue &Colour, const String &Atlas) |
| Collects all the relevant information for a single vertex and pushes it to a vector. More... | |
Protected Attributes | |
| ColourValue | BorderColours [4] |
| Real | BorderWidth |
| ColourValue | FillColours [4] |
| Sprite * | LayerSprite |
Protected Attributes inherited from Mezzanine::UI::RenderLayer | |
| Whole | IndexID |
| Stores the index of this RenderLayer in it's parent QuadRenderable. More... | |
| QuadRenderable * | Parent |
| A pointer to the parent of this RenderLayer. More... | |
| Real | RotAngle |
| The amount of rotation to be applied to this RenderLayer in radians. More... | |
| Vector2 | Scale |
| The scaling applied to this RenderLayer. More... | |
Additional Inherited Members | |
Public Types inherited from Mezzanine::UI::RenderLayer | |
| enum | RenderLayerType { RLT_Image, RLT_MultiLineText, RLT_SingleLineText } |
| This enum describes the type of RenderLayer this is for use in casting. | |
This layer is for placing images and basic colours in it's parents' quad space.
Definition at line 57 of file imagelayer.h.
| Mezzanine::UI::ImageLayer::ImageLayer | ( | QuadRenderable * | ParentRenderable) |
Class constructor.
| ParentRenderable | The renderable that created this layer. |
Definition at line 51 of file imagelayer.cpp.
|
virtual |
Gets the colour of a border on this renderable.
| Side | The side to retrieve the colour for. |
Definition at line 336 of file imagelayer.cpp.
|
virtual |
Gets the border width of this renderable.
Definition at line 331 of file imagelayer.cpp.
|
virtual |
Gets the colour of a corner of this layer.
| Corner | The corner to get the colour for. |
Definition at line 273 of file imagelayer.cpp.
|
virtual |
Gets the most derived serializable name of this Renderable.
Reimplemented from Mezzanine::UI::RenderLayer.
Definition at line 451 of file imagelayer.cpp.
|
virtual |
Gets the type of render layer this is.
Implements Mezzanine::UI::RenderLayer.
Definition at line 168 of file imagelayer.cpp.
|
static |
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized.
Definition at line 456 of file imagelayer.cpp.
|
virtual |
Gets whether or not this layer is entirely transparent.
Definition at line 278 of file imagelayer.cpp.
|
virtual |
Take the data stored in an XML Node and overwrite the properties of this object with it.
| SelfRoot | An XML::Node containing the data to populate this class with. |
Reimplemented from Mezzanine::UI::RenderLayer.
Definition at line 390 of file imagelayer.cpp.
|
virtual |
Convert the properties of this class to an XML::Node ready for serialization.
| SelfRoot | The root node containing all the serialized data for this instance. |
Reimplemented from Mezzanine::UI::RenderLayer.
Definition at line 344 of file imagelayer.cpp.
|
protectedvirtual |
Provides the class specific implementation for regenerating vertices for this renderable.
Implements Mezzanine::UI::SimpleRenderer.
Definition at line 69 of file imagelayer.cpp.
|
virtual |
Sets all parameters for enabling a border.
| Width | The width to set for the border. |
| Colour | The colour to be applied to all sides of the border. |
Definition at line 310 of file imagelayer.cpp.
|
virtual |
Sets all parameters for enabling a border.
| Width | The width to set for the border. |
| North | The colour to apply to the north side of the border. |
| South | The colour to apply to the south side of the border. |
| East | The colour to apply to the east side of the border. |
| West | The colour to apply to the west side of the border. |
Definition at line 316 of file imagelayer.cpp.
|
virtual |
Sets the colour of the border for this renderable.
| Colour | The colour to set for the border. |
Definition at line 295 of file imagelayer.cpp.
|
virtual |
Sets the colour of one side of the border for this renderable.
| Side | The side to have the colour applied to. |
| Colour | The colour to be applied. |
Definition at line 304 of file imagelayer.cpp.
|
virtual |
Sets the width of the border for this renderable.
| Width | The width to set for the border. |
Definition at line 289 of file imagelayer.cpp.
|
virtual |
Sets the colour of the layer.
| Colour | A colour value representing the colour to be set. |
Definition at line 176 of file imagelayer.cpp.
|
virtual |
Sets the colour for one corner the layer.
| Corner | Which corner the colour should be applied to. |
| Colour | A colour value representing the colour to be set. |
Definition at line 185 of file imagelayer.cpp.
|
virtual |
Sets a colour gradient to be applied to this layer.
| Grad | The direction/style of gradient to enable. |
| ColourA | The colour to apply to the first side of the gradient. |
| ColourB | The colour to apply to the second side of the gradient. |
Definition at line 227 of file imagelayer.cpp.
|
virtual |
Sets the fill image(if provided in the atlas) of the layer.
| PSprite | A pointer to the sprite to set as the fill. |
Definition at line 191 of file imagelayer.cpp.
|
virtual |
Sets the fill image(if provided in the atlas) of the layer.
| SpriteName | The name of the sprite to set as the fill. |
Definition at line 215 of file imagelayer.cpp.
|
virtual |
Sets the fill image(if provided in the atlas) of the layer.
| SpriteName | The name of the sprite to set as the fill. |
| Atlas | The Atlas to load the sprite from. |
Definition at line 221 of file imagelayer.cpp.
1.8.4