SkBounder Class Reference

#include <SkBounder.h>

Inherits SkRefCnt.

Collaboration diagram for SkBounder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool doIRect (const SkIRect &)

Protected Member Functions

virtual bool onIRect (const SkIRect &)=0
virtual void commit ()

Friends

class SkAutoBounderCommit
class SkDraw
class SkDrawIter
struct Draw1Glyph
class SkMaskFilter

Detailed Description

Base class for intercepting the device bounds of shapes before they are drawn. Install a subclass of this in your canvas.

Definition at line 35 of file SkBounder.h.


Member Function Documentation

virtual void SkBounder::commit (  )  [protected, virtual]

Called after each shape has been drawn. The default implementation does nothing, but your override could use this notification to signal itself that the offscreen being rendered into needs to be updated to the screen.

bool SkBounder::doIRect ( const SkIRect  ) 
virtual bool SkBounder::onIRect ( const SkIRect  )  [protected, pure virtual]

Override in your subclass. This is called with the device bounds of an object (text, geometry, image) just before it is drawn. If your method returns false, the drawing for that shape is aborted. If your method returns true, drawing continues. The bounds your method receives have already been transformed in to device coordinates, and clipped to the current clip.


Friends And Related Function Documentation

friend struct Draw1Glyph [friend]

Definition at line 67 of file SkBounder.h.

friend class SkAutoBounderCommit [friend]

Definition at line 64 of file SkBounder.h.

friend class SkDraw [friend]

Definition at line 65 of file SkBounder.h.

friend class SkDrawIter [friend]

Definition at line 66 of file SkBounder.h.

friend class SkMaskFilter [friend]

Definition at line 68 of file SkBounder.h.


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

Generated on Tue Oct 20 11:03:41 2009 for Skia by  doxygen 1.6.1