Back to index

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

#include <nsIDrawingSurfacePh.h>

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

List of all members.

Public Member Functions

NS_IMETHOD Init (PhDrawContext_t *aDC, PhGC_t *aGC)=0
 Initialize a drawing surface using a windows DC.
NS_IMETHOD Init (PRUint32 aWidth, PRUint32 aHeight, PRUint32 aFlags)=0
 Initialize an offscreen drawing surface using a windows DC.

Detailed Description

Definition at line 50 of file nsIDrawingSurfacePh.h.


Member Function Documentation

NS_IMETHOD nsIDrawingSurfacePh::Init ( PhDrawContext_t *  aDC,
PhGC_t *  aGC 
) [pure virtual]

Initialize a drawing surface using a windows DC.

aDC is "owned" by the drawing surface until the drawing surface is destroyed.

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

Implemented in nsDrawingSurfacePh.

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

Initialize an offscreen drawing surface using a windows DC.

aDC is not "owned" by this drawing surface, instead it is used to create a drawing surface compatible with aDC. if width or height are less than zero, aDC will be created with no offscreen bitmap installed.

Parameters:
aDCHDC to initialize drawing surface with
aWidthwidth of drawing surface
aHeightheight of drawing surface
aFlagsflags used to control type of drawing surface created
Returns:
error status

Implemented in nsDrawingSurfacePh.


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