Public Member Functions | Protected Attributes

nsDisplayCaret Class Reference

#include <nsDisplayList.h>

Inheritance diagram for nsDisplayCaret:
Collaboration diagram for nsDisplayCaret:

List of all members.

Public Member Functions

 nsDisplayCaret (nsIFrame *aCaretFrame, nsCaret *aCaret)
virtual nsRect GetBounds (nsDisplayListBuilder *aBuilder)
 The default bounds is the frame border rect.
virtual void Paint (nsDisplayListBuilder *aBuilder, nsIRenderingContext *aCtx)
 Actually paint this item to some rendering context.

Protected Attributes

nsRefPtr< nsCaretmCaret

Constructor & Destructor Documentation

nsDisplayCaret::nsDisplayCaret ( nsIFrame *  aCaretFrame,
nsCaret aCaret 
) [inline]

Member Function Documentation

virtual nsRect nsDisplayCaret::GetBounds ( nsDisplayListBuilder aBuilder  )  [inline, virtual]

The default bounds is the frame border rect.

Returns:
a rectangle relative to aBuilder->ReferenceFrame() that contains the area drawn by this display item

Reimplemented from nsDisplayItem.

virtual void nsDisplayCaret::Paint ( nsDisplayListBuilder aBuilder,
nsIRenderingContext *  aCtx 
) [virtual]

Actually paint this item to some rendering context.

Content outside mVisibleRect need not be painted.

Reimplemented from nsDisplayItem.


Member Data Documentation


The documentation for this class was generated from the following file: