| 306 | } |
| 307 | |
| 308 | static void repeatYdraw( Drawable* drawable, const Vector2f& position, const Vector2f& offset, |
| 309 | const Sizef& size, const Sizef& drawableSize ) { |
| 310 | if ( drawableSize.getHeight() > 0 ) { |
| 311 | Float startY = position.y + offset.y - drawableSize.getHeight(); |
| 312 | while ( startY > position.y - drawableSize.getHeight() ) { |
| 313 | drawable->draw( Vector2f( position.x + offset.x, startY ), drawableSize ); |
| 314 | startY -= drawableSize.getHeight(); |
| 315 | }; |
| 316 | drawable->draw( position + offset, drawableSize ); |
| 317 | startY = position.y + offset.y + drawableSize.getHeight(); |
| 318 | while ( startY < position.y + size.getHeight() ) { |
| 319 | drawable->draw( Vector2f( position.x + offset.x, startY ), drawableSize ); |
| 320 | startY += drawableSize.getHeight(); |
| 321 | }; |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | void UINodeDrawable::LayerDrawable::draw( const Vector2f& position, const Sizef& size ) { |
| 326 | if ( position != mPosition ) { |