Back to index

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

Go to the source code of this file.

Classes

class  nsBoxFrame

Defines

#define NS_FRAME_BOX_SIZE_VALID   0x0001
#define NS_FRAME_BOX_IS_COLLAPSED   0x0002
#define NS_FRAME_BOX_NEEDS_RECALC   0x0004
#define NS_STATE_BOX_CHILD_RESERVED   0x00100000
#define NS_STATE_STACK_NOT_POSITIONED   0x00200000
#define NS_STATE_AUTO_STRETCH   0x00800000
#define NS_STATE_CURRENTLY_IN_DEBUG   0x02000000
#define NS_STATE_IS_COLLAPSED   0x10000000
#define NS_STATE_EQUAL_SIZE   0x40000000

Functions

nsresult NS_NewBoxFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, PRBool aIsRoot=PR_FALSE, nsIBoxLayout *aLayoutManager=nsnull)

Define Documentation

Definition at line 58 of file nsBoxFrame.h.

Definition at line 59 of file nsBoxFrame.h.

Definition at line 57 of file nsBoxFrame.h.

#define NS_STATE_AUTO_STRETCH   0x00800000

Definition at line 66 of file nsBoxFrame.h.

Definition at line 63 of file nsBoxFrame.h.

Definition at line 68 of file nsBoxFrame.h.

#define NS_STATE_EQUAL_SIZE   0x40000000

Definition at line 73 of file nsBoxFrame.h.

#define NS_STATE_IS_COLLAPSED   0x10000000

Definition at line 71 of file nsBoxFrame.h.

Definition at line 64 of file nsBoxFrame.h.


Function Documentation

nsresult NS_NewBoxFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
PRBool  aIsRoot = PR_FALSE,
nsIBoxLayout aLayoutManager = nsnull 
)

Definition at line 132 of file nsBoxFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsBoxFrame* it = new (aPresShell) nsBoxFrame(aPresShell, aIsRoot, aLayoutManager);

  if (nsnull == it)
    return NS_ERROR_OUT_OF_MEMORY;

  *aNewFrame = it;

  return NS_OK;
  
} // NS_NewBoxFrame

Here is the caller graph for this function: