| 54 | } |
| 55 | |
| 56 | template <class TContainer> void UIItemContainer<TContainer>::drawChildren() { |
| 57 | TContainer* tParent = reinterpret_cast<TContainer*>( getParent() ); |
| 58 | |
| 59 | if ( tParent->mItems.size() ) { |
| 60 | for ( Uint32 i = tParent->mVisibleFirst; i <= tParent->mVisibleLast; i++ ) |
| 61 | if ( NULL != tParent->mItems[i] ) |
| 62 | tParent->mItems[i]->nodeDraw(); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | template <class TContainer> Node* UIItemContainer<TContainer>::overFind( const Vector2f& Point ) { |
| 67 | TContainer* tParent = reinterpret_cast<TContainer*>( getParent() ); |