39 mCurrentColour(0xFFFFFFFF),
82 bool need_update =
true;
223 float left = window_left;
224 float right = window_left;
225 float top = window_top;
226 float bottom = window_top;
234 float vertex_top = top;
235 float vertex_bottom = bottom;
236 bool texture_crop_height =
false;
238 if (vertex_top > real_top)
241 if (vertex_bottom > real_top)
246 vertex_top = real_top;
247 texture_crop_height =
true;
249 if (vertex_bottom < real_bottom)
252 if (vertex_top < real_bottom)
257 vertex_bottom = real_bottom;
258 texture_crop_height =
true;
266 float vertex_left = left;
267 float vertex_right = right;
268 bool texture_crop_width =
false;
271 if (vertex_left < real_left)
274 if (vertex_right < real_left)
279 vertex_left = real_left;
280 texture_crop_width =
true;
283 if (vertex_right > real_right)
286 if (vertex_left > real_right)
291 vertex_right = real_right;
292 texture_crop_width =
true;
302 if (texture_crop_height)
311 if (texture_crop_width)
373 if (
nullptr !=
mNode)
int getAbsoluteLeft() const
virtual void setVisible(bool _visible)
virtual void setAlpha(float _alpha)
virtual void setStateData(IStateInfo *_data)
virtual void _setColour(const Colour &_value)
virtual void outOfDate(RenderItem *_item)=0
void removeDrawItem(ISubWidget *_item)
void addDrawItem(ISubWidget *_item, size_t _count)
int _getViewHeight() const
IRenderTarget * getRenderTarget()
__inline void convertColour(uint32 &_colour, VertexColourType _format)
static RenderManager & getInstance()
const size_t TILERECT_COUNT_VERTEX
ICroppedRectangle * mCroppedParent
virtual VertexColourType getVertexFormat()=0
int getAbsoluteTop() const
void set(float _l, float _t, float _r, float _b, float _z, float _u1, float _v1, float _u2, float _v2, uint32 _colour)
const FloatRect & getRect() const
virtual void _correctView()
FloatRect mCurrentTexture
virtual void _updateView()
virtual RenderItem * addToRenderItem(ITexture *_texture, bool _firstQueue, bool _separate)=0
virtual void createDrawItem(ITexture *_texture, ILayerNode *_node)
const IntSize & getTileSize() const
Vertex * getCurrentVertexBuffer() const
int _getViewWidth() const
void reallockDrawItem(ISubWidget *_item, size_t _count)
bool _checkOutside() const
#define MYGUI_ASSERT(exp, dest)
virtual void _setAlign(const IntSize &_oldsize)
virtual const RenderTargetInfo & getInfo()=0
uint32 toColourARGB(const Colour &_colour)
Type * castType(bool _throw=true)
virtual void destroyDrawItem()
virtual void _setUVSet(const FloatRect &_rect)
void setLastVertexCount(size_t _count)
VertexColourType mVertexFormat