24 mCurrentColour(0xFFFFFFFF),
153 if (
nullptr !=
mNode)
162 if (
nullptr !=
mNode)
169 if (
nullptr !=
mNode)
203 float left = window_left;
204 float right = window_left;
205 float top = window_top;
206 float bottom = window_top;
214 float vertex_top = top;
215 float vertex_bottom = bottom;
216 bool texture_crop_height =
false;
218 if (vertex_top > real_top)
221 if (vertex_bottom > real_top)
226 vertex_top = real_top;
227 texture_crop_height =
true;
229 if (vertex_bottom < real_bottom)
232 if (vertex_top < real_bottom)
237 vertex_bottom = real_bottom;
238 texture_crop_height =
true;
246 float vertex_left = left;
247 float vertex_right = right;
248 bool texture_crop_width =
false;
251 if (vertex_left < real_left)
254 if (vertex_right < real_left)
259 vertex_left = real_left;
260 texture_crop_width =
true;
263 if (vertex_right > real_right)
266 if (vertex_left > real_right)
271 vertex_right = real_right;
272 texture_crop_width =
true;
282 if (texture_crop_height)
291 if (texture_crop_width)
352 if (
nullptr !=
mNode)
#define MYGUI_ASSERT(exp, dest)
int getAbsoluteLeft() const
bool _checkOutside() const
ICroppedRectangle * mCroppedParent
int getAbsoluteTop() const
int _getViewWidth() const
int _getViewHeight() const
virtual float getNodeDepth() const =0
virtual void outOfDate(RenderItem *_item)=0
virtual RenderItem * addToRenderItem(ITexture *_texture, bool _firstQueue, bool _separate)=0
Type * castType(bool _throw=true)
virtual const RenderTargetInfo & getInfo() const =0
void addDrawItem(ISubWidget *_item, size_t _count)
IRenderTarget * getRenderTarget()
void reallockDrawItem(ISubWidget *_item, size_t _count)
void removeDrawItem(ISubWidget *_item)
Vertex * getCurrentVertexBuffer() const
void setLastVertexCount(size_t _count)
virtual VertexColourType getVertexFormat() const =0
static RenderManager & getInstance()
void _setAlign(const IntSize &_oldsize) override
FloatRect mCurrentTexture
void _setUVSet(const FloatRect &_rect) override
void setVisible(bool _visible) override
void createDrawItem(ITexture *_texture, ILayerNode *_node) override
void _setColour(const Colour &_value) override
void setStateData(IStateInfo *_data) override
void _correctView() override
void setAlpha(float _alpha) override
VertexColourType mVertexFormat
void destroyDrawItem() override
void _updateView() override
const FloatRect & getRect() const
const IntSize & getTileSize() const
void convertColour(uint32 &_colour, VertexColourType _format)
uint32 toColourARGB(const Colour &_colour)
const size_t TILERECT_COUNT_VERTEX
void set(float _l, float _t, float _r, float _b, float _z, float _u1, float _v1, float _u2, float _v2, uint32 _colour)