Root frame class.
More...
#include <nsCanvasFrame.h>
List of all members.
Public Member Functions |
| nsCanvasFrame (nsStyleContext *aContext) |
NS_DECL_QUERYFRAME virtual
NS_DECL_FRAMEARENA_HELPERS
nsresult | QueryInterface (const nsIID &aIID, void **aInstancePtr) |
virtual nsresult | Init (nsIContent *aContent, nsIFrame *aParent, nsIFrame *aPrevInFlow) |
virtual void | DestroyFrom (nsIFrame *aDestructRoot) |
virtual nsresult | SetInitialChildList (nsIAtom *aListName, nsFrameList &aChildList) |
virtual nsresult | AppendFrames (nsIAtom *aListName, nsFrameList &aFrameList) |
virtual nsresult | InsertFrames (nsIAtom *aListName, nsIFrame *aPrevFrame, nsFrameList &aFrameList) |
virtual nsresult | RemoveFrame (nsIAtom *aListName, nsIFrame *aOldFrame) |
virtual nsIAtom * | GetAdditionalChildListName (PRInt32 aIndex) const |
virtual nsFrameList | GetChildList (nsIAtom *aListName) const |
virtual nscoord | GetMinWidth (nsIRenderingContext *aRenderingContext) |
virtual nscoord | GetPrefWidth (nsIRenderingContext *aRenderingContext) |
virtual nsresult | Reflow (nsPresContext *aPresContext, nsHTMLReflowMetrics &aDesiredSize, const nsHTMLReflowState &aReflowState, nsReflowStatus &aStatus) |
virtual PRBool | IsContainingBlock () const |
virtual PRBool | IsFrameOfType (PRUint32 aFlags) const |
virtual nsresult | SetHasFocus (PRBool aHasFocus) |
| SetHasFocus tells the CanvasFrame to draw with focus ring.
|
virtual nsresult | BuildDisplayList (nsDisplayListBuilder *aBuilder, const nsRect &aDirtyRect, const nsDisplayListSet &aLists) |
void | PaintFocus (nsIRenderingContext &aRenderingContext, nsPoint aPt) |
virtual nsresult | ScrollPositionWillChange (nscoord aX, nscoord aY) |
virtual void | ViewPositionDidChange (nsTArray< nsIWidget::Configuration > *aConfigurations) |
virtual nsresult | ScrollPositionDidChange (nscoord aX, nscoord aY) |
virtual nsIAtom * | GetType () const |
| Get the "type" of the frame.
|
virtual nsresult | StealFrame (nsPresContext *aPresContext, nsIFrame *aChild, PRBool aForceNormal) |
virtual nsresult | GetContentForEvent (nsPresContext *aPresContext, nsEvent *aEvent, nsIContent **aContent) |
nsRect | CanvasArea () const |
Protected Member Functions |
virtual PRIntn | GetSkipSides () const |
Protected Attributes |
PRPackedBool | mDoPaintFocus |
nsAbsoluteContainingBlock | mAbsoluteContainer |
Detailed Description
Root frame class.
The root frame is the parent frame for the document element's frame. It only supports having a single child frame which must be an area frame
Constructor & Destructor Documentation
Member Function Documentation
nsRect nsCanvasFrame::CanvasArea |
( |
|
) |
const |
virtual void nsCanvasFrame::DestroyFrom |
( |
nsIFrame * |
aDestructRoot |
) |
[virtual] |
virtual nsIAtom* nsCanvasFrame::GetAdditionalChildListName |
( |
PRInt32 |
aIndex |
) |
const [virtual] |
virtual nscoord nsCanvasFrame::GetMinWidth |
( |
nsIRenderingContext * |
aRenderingContext |
) |
[virtual] |
virtual nscoord nsCanvasFrame::GetPrefWidth |
( |
nsIRenderingContext * |
aRenderingContext |
) |
[virtual] |
virtual PRIntn nsCanvasFrame::GetSkipSides |
( |
|
) |
const [protected, virtual] |
virtual nsIAtom* nsCanvasFrame::GetType |
( |
|
) |
const [virtual] |
virtual nsresult nsCanvasFrame::Init |
( |
nsIContent * |
aContent, |
|
|
nsIFrame * |
aParent, |
|
|
nsIFrame * |
aPrevInFlow | |
|
) |
| | [virtual] |
virtual PRBool nsCanvasFrame::IsContainingBlock |
( |
|
) |
const [inline, virtual] |
virtual PRBool nsCanvasFrame::IsFrameOfType |
( |
PRUint32 |
aFlags |
) |
const [inline, virtual] |
void nsCanvasFrame::PaintFocus |
( |
nsIRenderingContext & |
aRenderingContext, |
|
|
nsPoint |
aPt | |
|
) |
| | |
NS_DECL_QUERYFRAME virtual NS_DECL_FRAMEARENA_HELPERS nsresult nsCanvasFrame::QueryInterface |
( |
const nsIID & |
aIID, |
|
|
void ** |
aInstancePtr | |
|
) |
| | [virtual] |
virtual nsresult nsCanvasFrame::RemoveFrame |
( |
nsIAtom * |
aListName, |
|
|
nsIFrame * |
aOldFrame | |
|
) |
| | [virtual] |
virtual nsresult nsCanvasFrame::SetHasFocus |
( |
PRBool |
aHasFocus |
) |
[virtual] |
SetHasFocus tells the CanvasFrame to draw with focus ring.
- Parameters:
-
| aHasFocus | PR_TRUE to show focus ring, PR_FALSE to hide it |
virtual void nsCanvasFrame::ViewPositionDidChange |
( |
nsTArray< nsIWidget::Configuration > * |
aConfigurations |
) |
[inline, virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: