Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions  Download package

nsIView * nsIView::GetViewFor ( nsIWidget aWidget  )  [static]

Find the view for the given widget, if there is one.

the view the widget belongs to, or null if the widget doesn't belong to any view.

Definition at line 302 of file nsView.cpp.

References ViewWrapper::GetView().

  NS_PRECONDITION(nsnull != aWidget, "null widget ptr");

  ViewWrapper* wrapper = GetWrapperFor(aWidget);
  if (wrapper)
    return wrapper->GetView();  
  return nsnull;

Generated by  Doxygen 1.6.0   Back to index