64 else if (
mAlign.isHCenter())
76 else if (
mAlign.isBottom())
81 else if (
mAlign.isVCenter())
111 if (
nullptr !=
mNode)
134 float UV_lft_total =
mRectTexture.left + UV_lft * UV_sizeX;
135 float UV_top_total =
mRectTexture.top + UV_top * UV_sizeY;
136 float UV_rgt_total =
mRectTexture.right - (1 - UV_rgt) * UV_sizeX;
137 float UV_btm_total =
mRectTexture.bottom - (1 - UV_btm) * UV_sizeY;
139 mCurrentTexture.set(UV_lft_total, UV_top_total, UV_rgt_total, UV_btm_total);
152 if (
nullptr !=
mNode)
191 float UV_lft_total =
mRectTexture.left + UV_lft * UV_sizeX;
192 float UV_top_total =
mRectTexture.top + UV_top * UV_sizeY;
193 float UV_rgt_total =
mRectTexture.right - (1 - UV_rgt) * UV_sizeX;
194 float UV_btm_total =
mRectTexture.bottom - (1 - UV_btm) * UV_sizeY;
196 mCurrentTexture.set(UV_lft_total, UV_top_total, UV_rgt_total, UV_btm_total);
204 if (
nullptr !=
mNode)
217 float vertex_z =
mNode->getNodeDepth();
252 if (
nullptr !=
mNode)
#define MYGUI_ASSERT(exp, dest)
bool _checkOutside() const
ICroppedRectangle * mCroppedParent
int _getViewWidth() const
int _getViewHeight() const
Type * castType(bool _throw=true)
virtual VertexColourType getVertexFormat() const =0
static RenderManager & getInstance()
void destroyDrawItem() override
void setVisible(bool _visible) override
FloatRect mCurrentTexture
void setStateData(IStateInfo *_data) override
void _updateView() override
VertexColourType mVertexFormat
void _setUVSet(const FloatRect &_rect) override
void _setColour(const Colour &_value) override
void _correctView() override
void setAlpha(float _alpha) override
void createDrawItem(ITexture *_texture, ILayerNode *_node) override
void _setAlign(const IntSize &_oldsize) override
const FloatRect & getRect() const
uint32 toNativeColour(const Colour &_colour, VertexColourType _format)
Convert Colour to 32-bit representation.
types::TRect< float > FloatRect
types::TSize< int > IntSize
void set(float _l, float _t, float _r, float _b, float _z, float _u1, float _v1, float _u2, float _v2, uint32 _colour)