Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIDrawingSurfaceMac Class Reference

#include <nsIDrawingSurfaceMac.h>

Inheritance diagram for nsIDrawingSurfaceMac:
Inheritance graph
[legend]
Collaboration diagram for nsIDrawingSurfaceMac:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD Init (nsIDrawingSurface *aDS)=0
 Initialize a drawing surface using a Macintosh GrafPtr.
NS_IMETHOD Init (CGrafPtr aPort)=0
 Initialize a drawing surface using a Macintosh GrafPtr.
NS_IMETHOD Init (nsIWidget *aTheWidget)=0
 Initialize a drawing surface using a nsIWidget.
NS_IMETHOD Init (PRUint32 aDepth, PRUint32 aWidth, PRUint32 aHeight, PRUint32 aFlags)=0
 Create and initialize an offscreen drawing surface.
NS_IMETHOD GetGrafPtr (CGrafPtr *aPort)=0
 Get a Macintosh GrafPtr that represents the drawing surface.
 NS_IMETHOD_ (CGContextRef) StartQuartzDrawing()=0
 Quartz helper function.
 NS_IMETHOD_ (void) EndQuartzDrawing(CGContextRef aContext)=0
 Quartz helper function.

Detailed Description

Definition at line 54 of file nsIDrawingSurfaceMac.h.


Member Function Documentation

Get a Macintosh GrafPtr that represents the drawing surface.

Parameters:
aPortout parameter for GrafPtr
Returns:
error status

Implemented in nsDrawingSurfaceMac.

Initialize a drawing surface using a Macintosh GrafPtr.

aPort is not owned by this drawing surface, just used by it.

Parameters:
aPortGrafPtr to initialize drawing surface with
Returns:
error status

Implemented in nsDrawingSurfaceMac.

NS_IMETHOD nsIDrawingSurfaceMac::Init ( CGrafPtr  aPort) [pure virtual]

Initialize a drawing surface using a Macintosh GrafPtr.

aPort is not owned by this drawing surface, just used by it.

Parameters:
aPortGrafPtr to initialize drawing surface with
Returns:
error status

Implemented in nsDrawingSurfaceMac.

NS_IMETHOD nsIDrawingSurfaceMac::Init ( nsIWidget aTheWidget) [pure virtual]

Initialize a drawing surface using a nsIWidget.

aTheWidget is not owned by this drawing surface, just used by it.

Parameters:
aTheWidgeta nsWidget that contains the GrafPtr and all the data needed
Returns:
error status

Implemented in nsDrawingSurfaceMac.

NS_IMETHOD nsIDrawingSurfaceMac::Init ( PRUint32  aDepth,
PRUint32  aWidth,
PRUint32  aHeight,
PRUint32  aFlags 
) [pure virtual]

Create and initialize an offscreen drawing surface.

Parameters:
aDepthdepth of the offscreen drawing surface
aWidthwidth of the offscreen drawing surface
aHeightheight of the offscren drawing surface
aFlagsflags used to control type of drawing surface created
Returns:
error status

Implemented in nsDrawingSurfaceMac.

nsIDrawingSurfaceMac::NS_IMETHOD_ ( CGContextRef  ) [pure virtual]

Quartz helper function.

Constructs a Quartz context from the drawing surface's QuickDraw port. Must be balanced with a call to EndQuartzDrawing().

Returns:
Quartz drawing context

Implemented in nsDrawingSurfaceMac.

Quartz helper function.

Releases Quartz context and resets state of drawing surface for QuickDraw calls. Must be called when you are done drawing to the Quartz context.

Parameters:
Quartzdrawing context returned by StartQuartzDrawing()

Implemented in nsDrawingSurfaceMac.


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