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
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 void | ScrollPositionWillChange (nscoord aX, nscoord aY) |
| virtual void | 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 |
| PRPackedBool | mAddedScrollPositionListener |
| 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 |
| NS_DECL_QUERYFRAME virtual NS_DECL_FRAMEARENA_HELPERS 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 PRBool nsCanvasFrame::IsContainingBlock |
( |
|
) |
const [inline, virtual] |
| virtual PRBool nsCanvasFrame::IsFrameOfType |
( |
PRUint32 |
aFlags |
) |
const [inline, virtual] |
| void nsCanvasFrame::PaintFocus |
( |
nsIRenderingContext & |
aRenderingContext, |
|
|
nsPoint |
aPt | |
|
) |
| | |
| virtual nsresult nsCanvasFrame::RemoveFrame |
( |
nsIAtom * |
aListName, |
|
|
nsIFrame * |
aOldFrame | |
|
) |
| | [virtual] |
| virtual void nsCanvasFrame::ScrollPositionDidChange |
( |
nscoord |
aX, |
|
|
nscoord |
aY | |
|
) |
| | [inline, virtual] |
| virtual void nsCanvasFrame::ScrollPositionWillChange |
( |
nscoord |
aX, |
|
|
nscoord |
aY | |
|
) |
| | [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 |
Member Data Documentation
The documentation for this class was generated from the following file: