Back to index

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

#include <nsIDrawingSurfaceWin.h>

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

List of all members.

Public Member Functions

NS_IMETHOD Init (HDC aDC)=0
 Initialize a drawing surface using a windows DC.
NS_IMETHOD Init (HDC aDC, PRUint32 aWidth, PRUint32 aHeight, PRUint32 aFlags)=0
 Initialize an offscreen drawing surface using a windows DC.
NS_IMETHOD GetDC (HDC *aDC)=0
 Get a windows DC that represents the drawing surface.
NS_IMETHOD ReleaseDC (void)=0
 Release a windows DC obtained by GetDC().
NS_IMETHOD IsReleaseDCDestructive (PRBool *aDestructive)=0
 If ReleaseDC() truly destroys the state in the DC this will return PR_TRUE.

Detailed Description

Definition at line 50 of file nsIDrawingSurfaceWin.h.


Member Function Documentation

NS_IMETHOD nsIDrawingSurfaceWin::GetDC ( HDC *  aDC) [pure virtual]

Get a windows DC that represents the drawing surface.

GetDC() must be paired with ReleaseDC(). Getting a DC and Lock()ing are mutually exclusive operations.

Parameters:
aDCout parameter for HDC
Returns:
error status

Implemented in nsDrawingSurfaceWin.

NS_IMETHOD nsIDrawingSurfaceWin::Init ( HDC  aDC) [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 nsDrawingSurfaceWin.

NS_IMETHOD nsIDrawingSurfaceWin::Init ( HDC  aDC,
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 nsDrawingSurfaceWin.

If ReleaseDC() truly destroys the state in the DC this will return PR_TRUE.

Parameters:
aDestructiveout parameter for destructiveness
Returns:
error status

Implemented in nsDrawingSurfaceWin.

Release a windows DC obtained by GetDC().

ReleaseDC() must be preceded by a call to ReleaseDC().

Returns:
error status

Implemented in nsDrawingSurfaceWin.


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