Exemplo n.º 1
0
/** Please be sure to call this should you ever
 * override the default Draw() method.
 */
void Window::DrawViews( Rect frame )
{
    /// \todo Only update the requested frame.
    lock();
    for ( int i = 0; i < CountChildren(); i++ )
    {
        View *view = ChildAt(i);
        view->Draw( view->Bounds() );
        view->DrawChildren( view->Bounds() );
    }
    unlock();
}
Exemplo n.º 2
0
void View::DrawChildren( Rect rect )
{
   if ( GetWindow() == NULL ) return;

   lock();
   for ( int i = 0; i < CountChildren(); i++ ) 
   {
     View *child = ChildAt(i);
           child->Draw( rect );
		   child->DrawChildren( rect );
   }
   unlock();
}