Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions
nsIRenderingContext Class Reference

#include <nsIRenderingContext.h>

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

List of all members.

Classes

class  AutoPushTranslation
struct  PushedTranslation

Public Member Functions

NS_IMETHOD Init (nsIDeviceContext *aContext, nsIWidget *aWidget)=0
 Initialize the RenderingContext.
NS_IMETHOD Init (nsIDeviceContext *aContext, nsIDrawingSurface *aSurface)=0
 Initialize the RenderingContext.
NS_IMETHOD Reset (void)=0
 Reset the rendering context.
NS_IMETHOD GetDeviceContext (nsIDeviceContext *&aDeviceContext)=0
 Get the DeviceContext that this RenderingContext was initialized with.
NS_IMETHOD LockDrawingSurface (PRInt32 aX, PRInt32 aY, PRUint32 aWidth, PRUint32 aHeight, void **aBits, PRInt32 *aStride, PRInt32 *aWidthBytes, PRUint32 aFlags)=0
 Lock a rect of the drawing surface associated with the rendering context.
NS_IMETHOD UnlockDrawingSurface (void)=0
 Unlock a rect of the drawing surface associated with the rendering context.
NS_IMETHOD SelectOffScreenDrawingSurface (nsIDrawingSurface *aSurface)=0
 Selects an offscreen drawing surface into the RenderingContext to draw to.
NS_IMETHOD GetDrawingSurface (nsIDrawingSurface **aSurface)=0
 Get the currently selected drawing surface.
NS_IMETHOD GetHints (PRUint32 &aResult)=0
 Returns in aResult any rendering hints that the context has.
NS_IMETHOD PushState (void)=0
 Save a graphical state onto a stack.
NS_IMETHOD PopState (void)=0
 Get and and set RenderingContext to this graphical state.
NS_IMETHOD IsVisibleRect (const nsRect &aRect, PRBool &aIsVisible)=0
 Tells if a given rectangle is visible within the rendering context.
NS_IMETHOD SetClipRect (const nsRect &aRect, nsClipCombine aCombine)=0
 Sets the clipping for the RenderingContext to the passed in rectangle.
NS_IMETHOD GetClipRect (nsRect &aRect, PRBool &aHasLocalClip)=0
 Gets the bounds of the clip region of the RenderingContext.
NS_IMETHOD SetLineStyle (nsLineStyle aLineStyle)=0
 Sets the line style for the RenderingContext.
NS_IMETHOD GetLineStyle (nsLineStyle &aLineStyle)=0
 Gets the line style for the RenderingContext.
NS_IMETHOD GetPenMode (nsPenMode &aPenMode)=0
 Gets the Pen Mode for the RenderingContext.
NS_IMETHOD SetPenMode (nsPenMode aPenMode)=0
 Sets the Pen Mode for the RenderingContext.
NS_IMETHOD SetClipRegion (const nsIRegion &aRegion, nsClipCombine aCombine)=0
 Sets the clipping for the RenderingContext to the passed in region.
NS_IMETHOD CopyClipRegion (nsIRegion &aRegion)=0
 Gets a copy of the current clipping region for the RenderingContext The region is in device coordinates!
NS_IMETHOD GetClipRegion (nsIRegion **aRegion)=0
 Gets the current clipping region for the RenderingContext The region is in device coordinates!
NS_IMETHOD SetColor (nscolor aColor)=0
 Sets the forground color for the RenderingContext.
NS_IMETHOD GetColor (nscolor &aColor) const =0
 Get the forground color for the RenderingContext.
NS_IMETHOD SetFont (const nsFont &aFont, nsIAtom *aLangGroup)=0
 Sets the font for the RenderingContext.
NS_IMETHOD SetFont (nsIFontMetrics *aFontMetrics)=0
 Sets the font for the RenderingContext.
NS_IMETHOD GetFontMetrics (nsIFontMetrics *&aFontMetrics)=0
 Get the current fontmetrics for the RenderingContext.
NS_IMETHOD Translate (nscoord aX, nscoord aY)=0
 Add in a translate to the RenderingContext's transformation matrix.
NS_IMETHOD Scale (float aSx, float aSy)=0
 Add in a scale to the RenderingContext's transformation matrix.
NS_IMETHOD PushTranslation (PushedTranslation *aState)=0
NS_IMETHOD PopTranslation (PushedTranslation *aState)=0
NS_IMETHOD GetCurrentTransform (nsTransform2D *&aTransform)=0
 Get the current transformation matrix for the RenderingContext.
NS_IMETHOD CreateDrawingSurface (const nsRect &aBounds, PRUint32 aSurfFlags, nsIDrawingSurface *&aSurface)=0
 Create an offscreen drawing surface compatible with this RenderingContext.
NS_IMETHOD DestroyDrawingSurface (nsIDrawingSurface *aDS)=0
 Destroy a drawing surface created by CreateDrawingSurface()
NS_IMETHOD DrawLine (nscoord aX0, nscoord aY0, nscoord aX1, nscoord aY1)=0
 Draw a line.
NS_IMETHOD DrawPolyline (const nsPoint aPoints[], PRInt32 aNumPoints)=0
 Draw a polyline.
NS_IMETHOD DrawRect (const nsRect &aRect)=0
 Draw a rectangle.
NS_IMETHOD DrawRect (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)=0
 Draw a rectangle.
NS_IMETHOD FillRect (const nsRect &aRect)=0
 Fill a rectangle in the current foreground color.
NS_IMETHOD FillRect (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)=0
 Fill a rectangle in the current foreground color.
NS_IMETHOD InvertRect (const nsRect &aRect)=0
 XOR Invert a rectangle in the current foreground color.
NS_IMETHOD InvertRect (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)=0
 XOR Invert a rectangle in the current foreground color.
NS_IMETHOD FlushRect (const nsRect &aRect)=0
 For platforms (e.g., Cocoa) that implicitly double buffer, this call can be used to force a buffer flush following the painting of a rectangle.
NS_IMETHOD FlushRect (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)=0
NS_IMETHOD DrawPolygon (const nsPoint aPoints[], PRInt32 aNumPoints)=0
 Draw a poly in the current foreground color.
NS_IMETHOD FillPolygon (const nsPoint aPoints[], PRInt32 aNumPoints)=0
 Fill a poly in the current foreground color.
NS_IMETHOD DrawEllipse (const nsRect &aRect)=0
 Draw an ellipse in the current foreground color.
NS_IMETHOD DrawEllipse (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)=0
 Draw an ellipse in the current foreground color.
NS_IMETHOD FillEllipse (const nsRect &aRect)=0
 Fill an ellipse in the current foreground color.
NS_IMETHOD FillEllipse (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)=0
 Fill an ellipse in the current foreground color.
NS_IMETHOD DrawArc (const nsRect &aRect, float aStartAngle, float aEndAngle)=0
 Draw an arc in the current forground color.
NS_IMETHOD DrawArc (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight, float aStartAngle, float aEndAngle)=0
 Draw an arc in the current forground color.
NS_IMETHOD FillArc (const nsRect &aRect, float aStartAngle, float aEndAngle)=0
 Fill an arc in the current forground color.
NS_IMETHOD FillArc (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight, float aStartAngle, float aEndAngle)=0
 Fill an arc in the current forground color.
NS_IMETHOD GetWidth (char aC, nscoord &aWidth)=0
 Returns the width (in app units) of an 8-bit character If no font has been Set, the results are undefined.
NS_IMETHOD GetWidth (PRUnichar aC, nscoord &aWidth, PRInt32 *aFontID=nsnull)=0
 Returns the width (in app units) of a unicode character If no font has been Set, the results are undefined.
NS_IMETHOD GetWidth (const nsString &aString, nscoord &aWidth, PRInt32 *aFontID=nsnull)=0
 Returns the width (in app units) of an nsString If no font has been Set, the results are undefined.
NS_IMETHOD GetWidth (const char *aString, nscoord &aWidth)=0
 Returns the width (in app units) of an 8-bit character string If no font has been Set, the results are undefined.
NS_IMETHOD GetWidth (const char *aString, PRUint32 aLength, nscoord &aWidth)=0
 Returns the width (in app units) of an 8-bit character string If no font has been Set, the results are undefined.
NS_IMETHOD GetWidth (const PRUnichar *aString, PRUint32 aLength, nscoord &aWidth, PRInt32 *aFontID=nsnull)=0
 Returns the width (in app units) of a Unicode character string If no font has been Set, the results are undefined.
NS_IMETHOD GetTextDimensions (const char *aString, PRUint32 aLength, nsTextDimensions &aDimensions)=0
 Returns the dimensions of a string, i.e., the overall extent of a string whose rendering may involve switching between different fonts that have different metrics.
NS_IMETHOD GetTextDimensions (const PRUnichar *aString, PRUint32 aLength, nsTextDimensions &aDimensions, PRInt32 *aFontID=nsnull)=0
NS_IMETHOD DrawString (const char *aString, PRUint32 aLength, nscoord aX, nscoord aY, const nscoord *aSpacing=nsnull)=0
 Draw a string in the RenderingContext.
NS_IMETHOD DrawString (const PRUnichar *aString, PRUint32 aLength, nscoord aX, nscoord aY, PRInt32 aFontID=-1, const nscoord *aSpacing=nsnull)=0
 Draw a string in the RenderingContext.
NS_IMETHOD DrawString (const nsString &aString, nscoord aX, nscoord aY, PRInt32 aFontID=-1, const nscoord *aSpacing=nsnull)=0
 Draw a string in the RenderingContext.
NS_IMETHOD CopyOffScreenBits (nsIDrawingSurface *aSrcSurf, PRInt32 aSrcX, PRInt32 aSrcY, const nsRect &aDestBounds, PRUint32 aCopyFlags)=0
 Copy offscreen pixelmap to this RenderingContext.
NS_IMETHOD RetrieveCurrentNativeGraphicData (void **ngd)=0
NS_IMETHOD GetBackbuffer (const nsRect &aRequestedSize, const nsRect &aMaxSize, PRBool aForBlending, nsIDrawingSurface *&aBackbuffer)=0
 Get a drawing surface used as a backbuffer.
NS_IMETHOD ReleaseBackbuffer (void)=0
 Release a drawing surface used as the backbuffer If the platform caches the backbuffer this call will destroy it.
NS_IMETHOD DestroyCachedBackbuffer (void)=0
 Destroy the drawing surface used as the backbuffer.
NS_IMETHOD UseBackbuffer (PRBool *aUseBackbuffer)=0
 Some platforms may not want a backbuffer at all.
NS_IMETHOD SetRightToLeftText (PRBool aIsRTL)=0
 Let the device context know whether we want text reordered with right-to-left base direction.
NS_IMETHOD DrawImage (imgIContainer *aImage, const nsRect &aSrcRect, const nsRect &aDestRect)=0
 Draw a portion of an image, scaling it to fit within a specified rect.
NS_IMETHOD DrawTile (imgIContainer *aImage, nscoord aXImageStart, nscoord aYImageStart, const nsRect *aTargetRect)=0
NS_IMETHOD GetClusterInfo (const PRUnichar *aText, PRUint32 aLength, PRUint8 *aClusterStarts)=0
 Get cluster details for a chunk of text.
virtual PRInt32 GetPosition (const PRUnichar *aText, PRUint32 aLength, nsPoint aPt)=0
 Find the closest cursor position for a given x coordinate.
NS_IMETHOD GetRangeWidth (const PRUnichar *aText, PRUint32 aLength, PRUint32 aStart, PRUint32 aEnd, PRUint32 &aWidth)=0
 Get the width for the specific range of a given string.
NS_IMETHOD GetRangeWidth (const char *aText, PRUint32 aLength, PRUint32 aStart, PRUint32 aEnd, PRUint32 &aWidth)=0
 Get the width for the specific range of a given string.
NS_IMETHOD RenderEPS (const nsRect &aRect, FILE *aDataFile)=0
 Render an encapsulated postscript object onto the current rendering surface.

Detailed Description

Definition at line 103 of file nsIRenderingContext.h.


Class Documentation

struct nsIRenderingContext::PushedTranslation

Definition at line 316 of file nsIRenderingContext.h.

Class Members
float mSavedX
float mSavedY

Member Function Documentation

Gets a copy of the current clipping region for the RenderingContext The region is in device coordinates!

Parameters:
aRegioninout parameter representing the clip region. if SetClipRegion() is called, do not assume that GetClipRegion() will return the same object.

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextBeOS.

NS_IMETHOD nsIRenderingContext::CopyOffScreenBits ( nsIDrawingSurface aSrcSurf,
PRInt32  aSrcX,
PRInt32  aSrcY,
const nsRect aDestBounds,
PRUint32  aCopyFlags 
) [pure virtual]

Copy offscreen pixelmap to this RenderingContext.

Parameters:
aSrcSurfdrawing surface to copy bits from
aSrcXx offset into source pixelmap to copy from
aSrcYy offset into source pixelmap to copy from
aDestBoundsDestination rectangle to copy to
aCopyFlagssee below

Implemented in nsRenderingContextPh, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextQt, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextMac, nsCairoRenderingContext, and nsRenderingContextBeOS.

NS_IMETHOD nsIRenderingContext::CreateDrawingSurface ( const nsRect aBounds,
PRUint32  aSurfFlags,
nsIDrawingSurface *&  aSurface 
) [pure virtual]

Create an offscreen drawing surface compatible with this RenderingContext.

The rect passed in is not affected by any transforms in the rendering context and the values are in device units.

Parameters:
aBoundsA rectangle representing the size for the drawing surface. if nsnull then a bitmap will not be created and associated with the new drawing surface
aSurfFlagssee bottom of nsIRenderingContext.h
Returns:
A nsIDrawingSurface*

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

Destroy the drawing surface used as the backbuffer.

If the platform does not maintain a cached backbuffer this call will do nothing.

Implemented in nsCairoRenderingContext, and nsRenderingContextImpl.

Here is the caller graph for this function:

Destroy a drawing surface created by CreateDrawingSurface()

Parameters:
aDSA drawing surface to destroy

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::DrawArc ( const nsRect aRect,
float  aStartAngle,
float  aEndAngle 
) [pure virtual]

Draw an arc in the current forground color.

Parameters:
aRectThe rectangle define bounds of ellipse to use
aStartAnglethe starting angle of the arc, in degrees
aEndAngleThe ending angle of the arc, in degrees

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::DrawArc ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight,
float  aStartAngle,
float  aEndAngle 
) [pure virtual]

Draw an arc in the current forground color.

Parameters:
aXHorizontal left Coordinate in twips
aYVertical top Coordinate in twips
aWidthWidth of horizontal axis in twips
aHeightHeight of vertical axis in twips
aStartAnglethe starting angle of the arc, in degrees
aEndAngleThe ending angle of the arc, in degrees

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Draw an ellipse in the current foreground color.

Parameters:
aRectThe rectangle define bounds of ellipse to draw

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::DrawEllipse ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight 
) [pure virtual]

Draw an ellipse in the current foreground color.

Parameters:
aXHorizontal left Coordinate in twips
aYVertical top Coordinate in twips
aWidthWidth of horizontal axis in twips
aHeightHeight of vertical axis in twips

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::DrawImage ( imgIContainer aImage,
const nsRect aSrcRect,
const nsRect aDestRect 
) [pure virtual]

Draw a portion of an image, scaling it to fit within a specified rect.

Parameters:
aImageThe image to draw
aSrcRectThe rect (in twips) of the image to draw. [x,y] denotes the top left corner of the region.
aDestRectThe device context rect (in twips) that the image portion should occupy. [x,y] denotes the top left corner. [height,width] denotes the desired image size.

Implemented in nsRenderingContextGTK, nsRenderingContextPS, nsCairoRenderingContext, nsRenderingContextXlib, nsRenderingContextMac, nsRenderingContextImpl, and nsRenderingContextXp.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::DrawLine ( nscoord  aX0,
nscoord  aY0,
nscoord  aX1,
nscoord  aY1 
) [pure virtual]

Draw a line.

Parameters:
aXOstarting horiztonal coord in twips
aY0starting vertical coord in twips
aX1end horiztonal coord in twips
aY1end vertical coord in twips

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::DrawPolygon ( const nsPoint  aPoints[],
PRInt32  aNumPoints 
) [pure virtual]

Draw a poly in the current foreground color.

Parameters:
aPointspoints to use for the drawing, last must equal first
aNumPontsnumber of points in the polygon

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::DrawPolyline ( const nsPoint  aPoints[],
PRInt32  aNumPoints 
) [pure virtual]

Draw a polyline.

Parameters:
aPointsarray of endpoints
aNumPontsnumber of points

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

Draw a rectangle.

Parameters:
aRectThe rectangle to draw

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::DrawRect ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight 
) [pure virtual]

Draw a rectangle.

Parameters:
aXHorizontal left Coordinate in twips
aYVertical top Coordinate in twips
aWidthWidth of rectangle in twips
aHeightHeight of rectangle in twips

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::DrawString ( const char *  aString,
PRUint32  aLength,
nscoord  aX,
nscoord  aY,
const nscoord aSpacing = nsnull 
) [pure virtual]

Draw a string in the RenderingContext.

Parameters:
aStringThe string to draw
aLengthThe length of the aString
aXHorizontal starting point of baseline
aYVertical starting point of baseline.
aSpacinginter-character spacing to apply

Implemented in nsRenderingContextPh, nsRenderingContextQt, nsRenderingContextImpl, nsRenderingContextOS2, nsCairoRenderingContext, nsRenderingContextBeOS, nsRenderingContextXlib, and nsRenderingContextPS.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::DrawString ( const PRUnichar aString,
PRUint32  aLength,
nscoord  aX,
nscoord  aY,
PRInt32  aFontID = -1,
const nscoord aSpacing = nsnull 
) [pure virtual]

Draw a string in the RenderingContext.

Parameters:
aStringA PRUnichar of the string
aLengthThe length of the aString
aXHorizontal starting point of baseline
aYVertical starting point of baseline.
aFontIDan optional parameter used to speed font selection for complex unicode strings. the value passed is returned by the DrawString() methods.
aSpacinginter-character spacing to apply

Implemented in nsRenderingContextPh, nsRenderingContextQt, nsRenderingContextImpl, nsRenderingContextOS2, nsCairoRenderingContext, nsRenderingContextBeOS, nsRenderingContextXlib, and nsRenderingContextPS.

NS_IMETHOD nsIRenderingContext::DrawString ( const nsString aString,
nscoord  aX,
nscoord  aY,
PRInt32  aFontID = -1,
const nscoord aSpacing = nsnull 
) [pure virtual]

Draw a string in the RenderingContext.

Parameters:
aStringA nsString of the string
aXHorizontal starting point of baseline
aYVertical starting point of baseline.
aFontIDan optional parameter used to speed font selection for complex unicode strings. the value passed is returned by the DrawString() methods.
aSpacinginter-character spacing to apply

Implemented in nsRenderingContextPh, nsRenderingContextQt, nsRenderingContextOS2, nsCairoRenderingContext, nsRenderingContextBeOS, nsRenderingContextXlib, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextImpl, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::DrawTile ( imgIContainer aImage,
nscoord  aXImageStart,
nscoord  aYImageStart,
const nsRect aTargetRect 
) [pure virtual]

Implemented in nsRenderingContextPS, nsCairoRenderingContext, nsRenderingContextMac, nsRenderingContextImpl, and nsRenderingContextXp.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::FillArc ( const nsRect aRect,
float  aStartAngle,
float  aEndAngle 
) [pure virtual]

Fill an arc in the current forground color.

Parameters:
aRectThe rectangle define bounds of ellipse to use
aStartAnglethe starting angle of the arc, in degrees
aEndAngleThe ending angle of the arc, in degrees

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::FillArc ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight,
float  aStartAngle,
float  aEndAngle 
) [pure virtual]

Fill an arc in the current forground color.

Parameters:
aXHorizontal left Coordinate in twips
aYVertical top Coordinate in twips
aWidthWidth of horizontal axis in twips
aHeightHeight of vertical axis in twips
aStartAnglethe starting angle of the arc, in degrees
aEndAngleThe ending angle of the arc, in degrees

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Fill an ellipse in the current foreground color.

Parameters:
aRectThe rectangle define bounds of ellipse to draw

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::FillEllipse ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight 
) [pure virtual]

Fill an ellipse in the current foreground color.

Parameters:
aXHorizontal left Coordinate in twips
aYVertical top Coordinate in twips
aWidthWidth of horizontal axis in twips
aHeightHeight of vertical axis in twips

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::FillPolygon ( const nsPoint  aPoints[],
PRInt32  aNumPoints 
) [pure virtual]

Fill a poly in the current foreground color.

Parameters:
aPointspoints to use for the drawing, last must equal first
aNumPontsnumber of points in the polygon

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

Fill a rectangle in the current foreground color.

Parameters:
aRectThe rectangle to draw

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::FillRect ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight 
) [pure virtual]

Fill a rectangle in the current foreground color.

Parameters:
aXHorizontal left Coordinate in twips
aYVertical top Coordinate in twips
aWidthWidth of rectangle in twips
aHeightHeight of rectangle in twips

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

For platforms (e.g., Cocoa) that implicitly double buffer, this call can be used to force a buffer flush following the painting of a rectangle.

This call needs to be used any time drawing of rects is being done "on the fly", outside of the normal painting process. Examples include the blinking caret and tabbing through subimages in an image map.

Implemented in nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextImpl.

NS_IMETHOD nsIRenderingContext::FlushRect ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight 
) [pure virtual]
NS_IMETHOD nsIRenderingContext::GetBackbuffer ( const nsRect aRequestedSize,
const nsRect aMaxSize,
PRBool  aForBlending,
nsIDrawingSurface *&  aBackbuffer 
) [pure virtual]

Get a drawing surface used as a backbuffer.

Depending on the platform this will either cause a backbuffer surface to be allocated or an existing cached backbuffer will be returned. If the backbuffer is being cached asking for aMaxSize which is different from a previous request may cause the platform to dump it's cached backbuffer and reallocate a backbuffer of a size which will allow aMaxSize buffer to be allocated.

Parameters:
aRequestedSizesize of the backbuffer area requested
aMaxSizemaximum size that may be requested for the backbuffer
aForBlendingparameter telling if the buffer will be used for blending
aBackbufferdrawing surface used as the backbuffer

Implemented in nsRenderingContextGTK, nsRenderingContextWin, nsRenderingContextXlib, nsCairoRenderingContext, and nsRenderingContextImpl.

NS_IMETHOD nsIRenderingContext::GetClipRect ( nsRect aRect,
PRBool aHasLocalClip 
) [pure virtual]

Gets the bounds of the clip region of the RenderingContext.

The bounds are returned in device units!

Parameters:
aRectout parameter to contain the clip region bounds for the RenderingContext
Returns:
PR_TRUE if the rendering context has a local cliprect set else aRect is undefined

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextBeOS.

Here is the caller graph for this function:

Gets the current clipping region for the RenderingContext The region is in device coordinates!

Parameters:
aRegionout parameter representing the clip region. if SetClipRegion() is called, do not assume that GetClipRegion() will return the same object.

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextBeOS.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::GetClusterInfo ( const PRUnichar aText,
PRUint32  aLength,
PRUint8 aClusterStarts 
) [pure virtual]

Get cluster details for a chunk of text.

This will fill in the aClusterStarts array with information about what characters are the start of clusters for display. The information is just a bitfield that is set to 1 if the character is the start of a cluster. aClusterStarts must already be allocated to at least aLength items in length. Array index zero being set to one indicates that the first character is the beginning of a cluster.

Parameters:
aTextText on which to get details.
aLengthLength of the text.
aClusterStartsArray of ints that will be populated with information about which characters are the starts of clusters.

Implemented in nsRenderingContextGTK, nsCairoRenderingContext, and nsRenderingContextImpl.

NS_IMETHOD nsIRenderingContext::GetColor ( nscolor aColor) const [pure virtual]

Get the forground color for the RenderingContext.

Returns:
The current forground color of the RenderingContext

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextBeOS, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::GetCurrentTransform ( nsTransform2D *&  aTransform) [pure virtual]

Get the current transformation matrix for the RenderingContext.

Returns:
The transformation matrix for the RenderingContext

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::GetDeviceContext ( nsIDeviceContext *&  aDeviceContext) [pure virtual]

Get the DeviceContext that this RenderingContext was initialized with.

Returns:
the device context

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextMac, nsCairoRenderingContext, nsRenderingContextGTK, and nsRenderingContextBeOS.

Here is the caller graph for this function:

Get the currently selected drawing surface.

Parameters:
aSurfaceout parameter for the current drawing surface

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextGTK, nsRenderingContextMac, and nsRenderingContextBeOS.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::GetFontMetrics ( nsIFontMetrics *&  aFontMetrics) [pure virtual]

Get the current fontmetrics for the RenderingContext.

Returns:
The current font of the RenderingContext

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::GetHints ( PRUint32 aResult) [pure virtual]

Returns in aResult any rendering hints that the context has.

See below for the hints bits. Always returns NS_OK.

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextGTK, nsRenderingContextMac, and nsRenderingContextBeOS.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::GetLineStyle ( nsLineStyle aLineStyle) [pure virtual]

Gets the line style for the RenderingContext.

Parameters:
aLineStyleThe line style to be retrieved
Returns:
NS_OK if the line style is correctly retrieved

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsRenderingContextMac, and nsCairoRenderingContext.

NS_IMETHOD nsIRenderingContext::GetPenMode ( nsPenMode aPenMode) [pure virtual]

Gets the Pen Mode for the RenderingContext.

Parameters:
aPenModeThe Pen Mode to be retrieved
Returns:
NS_OK if the Pen Mode is correctly retrieved

Implemented in nsRenderingContextWin, nsCairoRenderingContext, and nsRenderingContextImpl.

Here is the caller graph for this function:

virtual PRInt32 nsIRenderingContext::GetPosition ( const PRUnichar aText,
PRUint32  aLength,
nsPoint  aPt 
) [pure virtual]

Find the closest cursor position for a given x coordinate.

This will find the closest byte index for a given x coordinate. This takes into account grapheme clusters and bidi text.

Parameters:
aTextText on which to operate.
aLengthLength of the text.
aPtthe x/y position in the string to check.
Returns:
Index where the cursor falls. If the return is zero, it's before the first character, if it falls off the end of the string it's the length of the string + 1.

Implemented in nsRenderingContextGTK, nsCairoRenderingContext, and nsRenderingContextImpl.

NS_IMETHOD nsIRenderingContext::GetRangeWidth ( const PRUnichar aText,
PRUint32  aLength,
PRUint32  aStart,
PRUint32  aEnd,
PRUint32 aWidth 
) [pure virtual]

Get the width for the specific range of a given string.

This function is similar to other GetWidth functions, except that it gets the width for a part of the string instead of the entire string. This is useful when you're interested in finding out the length of a chunk in the middle of the string. Lots of languages require you to include surrounding information to accurately determine the length of a substring.

Parameters:
aTextText on which to operate
aLengthLength of the text
aStartStart index into the string
aEndEnd index into the string (inclusive)
aWidthReturned with in app coordinates

Implemented in nsRenderingContextGTK, nsCairoRenderingContext, and nsRenderingContextImpl.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::GetRangeWidth ( const char *  aText,
PRUint32  aLength,
PRUint32  aStart,
PRUint32  aEnd,
PRUint32 aWidth 
) [pure virtual]

Get the width for the specific range of a given string.

Same as GetRangeWidth for PRUnichar, but takes a char * as the text argument.

Implemented in nsRenderingContextGTK, nsCairoRenderingContext, and nsRenderingContextImpl.

NS_IMETHOD nsIRenderingContext::GetTextDimensions ( const char *  aString,
PRUint32  aLength,
nsTextDimensions aDimensions 
) [pure virtual]

Returns the dimensions of a string, i.e., the overall extent of a string whose rendering may involve switching between different fonts that have different metrics.

Parameters:
aStringstring to measure
aLengthnumber of characters in string
aFontIDan optional out parameter used to store a font identifier that can be passed into the DrawString() methods to speed measurements
Returns:
aDimensions struct that contains the extent of the string (see below)

Implemented in nsRenderingContextPh, nsRenderingContextPS, nsRenderingContextXlib, nsRenderingContextOS2, nsRenderingContextQt, nsRenderingContextImpl, nsRenderingContextBeOS, and nsCairoRenderingContext.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::GetTextDimensions ( const PRUnichar aString,
PRUint32  aLength,
nsTextDimensions aDimensions,
PRInt32 aFontID = nsnull 
) [pure virtual]
NS_IMETHOD nsIRenderingContext::GetWidth ( char  aC,
nscoord aWidth 
) [pure virtual]

Returns the width (in app units) of an 8-bit character If no font has been Set, the results are undefined.

Parameters:
aCcharacter to measure
aWidthout parameter for width
Returns:
error status

Implemented in nsRenderingContextPh, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextPS, nsRenderingContextMac, nsRenderingContextBeOS, nsRenderingContextImpl, and nsCairoRenderingContext.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::GetWidth ( PRUnichar  aC,
nscoord aWidth,
PRInt32 aFontID = nsnull 
) [pure virtual]

Returns the width (in app units) of a unicode character If no font has been Set, the results are undefined.

Parameters:
aCcharacter to measure
aWidthout parameter for width
aFontIDan optional out parameter used to store a font identifier that can be passed into the DrawString() methods to speed rendering
Returns:
error status

Implemented in nsRenderingContextPh, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextPS, nsRenderingContextMac, nsRenderingContextBeOS, nsRenderingContextImpl, and nsCairoRenderingContext.

NS_IMETHOD nsIRenderingContext::GetWidth ( const nsString aString,
nscoord aWidth,
PRInt32 aFontID = nsnull 
) [pure virtual]

Returns the width (in app units) of an nsString If no font has been Set, the results are undefined.

Parameters:
aStringstring to measure
aWidthout parameter for width
aFontIDan optional out parameter used to store a font identifier that can be passed into the DrawString() methods to speed rendering
Returns:
error status

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextWin, nsRenderingContextPS, nsRenderingContextGTK, nsRenderingContextImpl, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::GetWidth ( const char *  aString,
nscoord aWidth 
) [pure virtual]

Returns the width (in app units) of an 8-bit character string If no font has been Set, the results are undefined.

Parameters:
aStringstring to measure
aWidthout parameter for width
Returns:
error status

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextWin, nsRenderingContextPS, nsRenderingContextGTK, nsRenderingContextImpl, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::GetWidth ( const char *  aString,
PRUint32  aLength,
nscoord aWidth 
) [pure virtual]

Returns the width (in app units) of an 8-bit character string If no font has been Set, the results are undefined.

Parameters:
aStringstring to measure
aLengthnumber of characters in string
aWidthout parameter for width
Returns:
error status

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextWin, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextImpl, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::GetWidth ( const PRUnichar aString,
PRUint32  aLength,
nscoord aWidth,
PRInt32 aFontID = nsnull 
) [pure virtual]

Returns the width (in app units) of a Unicode character string If no font has been Set, the results are undefined.

Parameters:
aStringstring to measure
aLengthnumber of characters in string
aWidthout parameter for width
aFontIDan optional out parameter used to store a font identifier that can be passed into the DrawString() methods to speed rendering
Returns:
error status

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextWin, nsRenderingContextGTK, nsRenderingContextQt, nsRenderingContextPS, nsRenderingContextImpl, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::Init ( nsIDeviceContext aContext,
nsIWidget aWidget 
) [pure virtual]

Initialize the RenderingContext.

Parameters:
aContextthe device context to use.
aWidgetthe widget to hook up to
Returns:
The result of the initialization, NS_Ok if no errors

Implemented in nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextPh, nsRenderingContextQt, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextMac, nsCairoRenderingContext, nsRenderingContextGTK, nsRenderingContextBeOS, and nsRenderingContextXp.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::Init ( nsIDeviceContext aContext,
nsIDrawingSurface aSurface 
) [pure virtual]

Initialize the RenderingContext.

Parameters:
aContextthe device context to use for the drawing.
aSurfacethe surface to draw into
Returns:
The result of the initialization, NS_Ok if no errors

Implemented in nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextPh, nsRenderingContextQt, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextMac, nsCairoRenderingContext, nsRenderingContextGTK, nsRenderingContextBeOS, and nsRenderingContextXp.

XOR Invert a rectangle in the current foreground color.

Parameters:
aRectThe rectangle to draw

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::InvertRect ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight 
) [pure virtual]

XOR Invert a rectangle in the current foreground color.

Parameters:
aXHorizontal left Coordinate in twips
aYVertical top Coordinate in twips
aWidthWidth of rectangle in twips
aHeightHeight of rectangle in twips

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::IsVisibleRect ( const nsRect aRect,
PRBool aIsVisible 
) [pure virtual]

Tells if a given rectangle is visible within the rendering context.

Parameters:
aRectis the rectangle that will be checked for visiblity
Returns:
If true, that rectanglular area is visable.

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextBeOS.

NS_IMETHOD nsIRenderingContext::LockDrawingSurface ( PRInt32  aX,
PRInt32  aY,
PRUint32  aWidth,
PRUint32  aHeight,
void **  aBits,
PRInt32 aStride,
PRInt32 aWidthBytes,
PRUint32  aFlags 
) [pure virtual]

Lock a rect of the drawing surface associated with the rendering context.

do not attempt to use any of the Rendering Context rendering or state management methods until the drawing surface has been Unlock()ed. if a drawing surface is Lock()ed with this method, it must be Unlock()ed by calling UnlockDrawingSurface() rather than just calling the Unlock() method on the drawing surface directly. see nsIDrawingSurface.h for more information

Returns:
error status

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextGTK, nsRenderingContextMac, nsRenderingContextBeOS, and nsRenderingContextXp.

Get and and set RenderingContext to this graphical state.

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextBeOS.

Here is the caller graph for this function:

Implemented in nsCairoRenderingContext, and nsRenderingContextImpl.

Here is the caller graph for this function:

Implemented in nsCairoRenderingContext, and nsRenderingContextImpl.

Here is the caller graph for this function:

Release a drawing surface used as the backbuffer If the platform caches the backbuffer this call will destroy it.

Implemented in nsRenderingContextGTK, nsRenderingContextWin, nsRenderingContextXlib, nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextImpl.

NS_IMETHOD nsIRenderingContext::RenderEPS ( const nsRect aRect,
FILE aDataFile 
) [pure virtual]

Render an encapsulated postscript object onto the current rendering surface.

The EPS object must conform to the EPSF standard. See Adobe specification #5002, "Encapsulated PostScript File Format Specification" at http://partners.adobe.com/asn/developer/pdfs/tn/5002.EPSF_Spec.pdf. In particular, the EPS object must contain a BoundingBox comment.

Parameters:
aRectRectangle in which to render the EPSF.
aDataFile- plugin data stored in a file
Returns:
NS_OK for success, or a suitable error value. NS_ERROR_NOT_IMPLEMENTED is returned if the rendering context doesn't support rendering EPSF,

Implemented in nsRenderingContextPS, nsRenderingContextImpl, nsCairoRenderingContext, and nsRenderingContextXp.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::Scale ( float  aSx,
float  aSy 
) [pure virtual]

Add in a scale to the RenderingContext's transformation matrix.

Parameters:
aXThe horizontal scale
aYThe vertical scale

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

Selects an offscreen drawing surface into the RenderingContext to draw to.

Parameters:
aSurfaceis the offscreen surface we are going to draw to. if nsnull, the original drawing surface obtained at initialization should be selected.

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextGTK, nsRenderingContextMac, and nsRenderingContextBeOS.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::SetClipRect ( const nsRect aRect,
nsClipCombine  aCombine 
) [pure virtual]

Sets the clipping for the RenderingContext to the passed in rectangle.

The rectangle is in app units!

Parameters:
aRectThe rectangle to set the clipping rectangle to
aCombinehow to combine this rect with the current clip region. see the bottom of nsIRenderingContext.h

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextBeOS.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::SetClipRegion ( const nsIRegion aRegion,
nsClipCombine  aCombine 
) [pure virtual]

Sets the clipping for the RenderingContext to the passed in region.

The region is in device coordinates!

Parameters:
aRegionThe region to set the clipping area to, IN DEVICE COORDINATES
aCombinehow to combine this region with the current clip region. see the bottom of nsIRenderingContext.h

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextBeOS.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::SetColor ( nscolor  aColor) [pure virtual]

Sets the forground color for the RenderingContext.

Parameters:
aColorThe color to set the RenderingContext to

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextBeOS, and nsRenderingContextMac.

NS_IMETHOD nsIRenderingContext::SetFont ( const nsFont aFont,
nsIAtom aLangGroup 
) [pure virtual]

Sets the font for the RenderingContext.

Parameters:
aFontThe font to use in the RenderingContext

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextBeOS, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::SetFont ( nsIFontMetrics aFontMetrics) [pure virtual]

Sets the font for the RenderingContext.

Parameters:
aFontMetricThe font metrics representing the font to use in the RenderingContext

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsCairoRenderingContext, nsRenderingContextBeOS, and nsRenderingContextMac.

Sets the line style for the RenderingContext.

Parameters:
aLineStyleThe line style
Returns:
NS_OK if the line style is correctly set

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsRenderingContextMac, and nsCairoRenderingContext.

Here is the caller graph for this function:

Sets the Pen Mode for the RenderingContext.

Parameters:
aPenModeThe Pen Mode
Returns:
NS_OK if the Pen Mode is correctly set

Implemented in nsRenderingContextWin, nsCairoRenderingContext, and nsRenderingContextImpl.

Here is the caller graph for this function:

Let the device context know whether we want text reordered with right-to-left base direction.

Implemented in nsRenderingContextWin, nsRenderingContextGTK, nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextImpl.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::Translate ( nscoord  aX,
nscoord  aY 
) [pure virtual]

Add in a translate to the RenderingContext's transformation matrix.

Parameters:
aXThe horizontal translation
aYThe vertical translation

Implemented in nsRenderingContextPh, nsRenderingContextOS2, nsRenderingContextXlib, nsRenderingContextQt, nsRenderingContextGTK, nsRenderingContextPS, nsRenderingContextWin, nsRenderingContextBeOS, nsCairoRenderingContext, and nsRenderingContextMac.

Here is the caller graph for this function:

NS_IMETHOD nsIRenderingContext::UseBackbuffer ( PRBool aUseBackbuffer) [pure virtual]

Some platforms may not want a backbuffer at all.

Returning false here allows them to achieve that

Parameters:
aUseBackbufferPR_TRUE if we should use a backbuffer, PR_FALSE if not

Implemented in nsCairoRenderingContext, nsRenderingContextMac, and nsRenderingContextImpl.

Here is the caller graph for this function:


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