Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsStackLayout.h File Reference
#include "nsBoxLayout.h"
#include "nsCOMPtr.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsStackLayout

Functions

nsresult NS_NewStackLayout (nsIPresShell *aPresShell, nsCOMPtr< nsIBoxLayout > &aNewLayout)
 Eric D Vaughan A frame that can have multiple children.

Function Documentation

nsresult NS_NewStackLayout ( nsIPresShell aPresShell,
nsCOMPtr< nsIBoxLayout > &  aNewLayout 
)

Eric D Vaughan A frame that can have multiple children.

Only one child may be displayed at one time. So the can be flipped though like a deck of cards.

Definition at line 59 of file nsStackLayout.cpp.

{
  if (!nsStackLayout::gInstance) {
    nsStackLayout::gInstance = new nsStackLayout();
    NS_IF_ADDREF(nsStackLayout::gInstance);
  }
  // we have not instance variables so just return our static one.
  aNewLayout = nsStackLayout::gInstance;
  return NS_OK;
} 

Here is the caller graph for this function: