model_server/gala/src/view.cxx
// GetAbsoluteX - Returns combined x value for this and parent views.
Returns combined x value for this and parent views.
Returns combined x value for this and parent views .
int View::GetAbsoluteX()
{
    int x = myRect.x;
    View* nextView = NULL;
    if (ParentView)
        nextView = ParentView;
    else if (myOwnerPane)
        nextView = myOwnerPane->GetOwner();
    while (nextView) {
        x += nextView->myRect.x;
        if (nextView->ParentView)
            nextView = nextView->ParentView;
        else if (nextView->myOwnerPane &&
                (nextView->myOwnerPane->GetOwner() != nextView) )
            nextView = nextView->myOwnerPane->GetOwner();
        else
            nextView = NULL;
    }
    return(x);
}
int View :: GetAbsoluteX ( ) { int x = myRect . x ; View * nextView = NULL ; if ( ParentView ) nextView = ParentView ; else if ( myOwnerPane ) nextView = myOwnerPane -> GetOwner ( ) ; while ( nextView ) { x += nextView -> myRect . x ; if ( nextView -> ParentView ) nextView = nextView -> ParentView ; else if ( nextView -> myOwnerPane && ( nextView -> myOwnerPane -> GetOwner ( ) != nextView ) ) nextView = nextView -> myOwnerPane -> GetOwner ( ) ; else nextView = NULL ; } return ( x ) ; }
GetAbsoluteX - Returns combined x value for this and parent views.
GetAbsoluteX - Returns combined x value for this and parent views .