Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | Friends
nsSVGCairoRectRegion Class Reference
Inheritance diagram for nsSVGCairoRectRegion:
Inheritance graph
[legend]
Collaboration diagram for nsSVGCairoRectRegion:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS NS_IMETHOD_ (PRBool) Contains(float x
nsISVGRendererRegion combine (in nsISVGRendererRegion other)
 Return union of this region with another region.
void getRectangleScans (in nsISVGRectangleSink sink)
 Write a sequence of rectangles approximating this region to the sink object.

Public Attributes

NS_DECL_ISUPPORTS float y

Protected Member Functions

 nsSVGCairoRectRegion (float x, float y, float w, float h)

Private Attributes

float mX
float mY
float mWidth
float mHeight

Friends

nsresult NS_NewSVGCairoRectRegion (nsISVGRendererRegion **result, float x, float y, float width, float height)

Detailed Description

Definition at line 42 of file nsSVGCairoRegion.cpp.


Constructor & Destructor Documentation

nsSVGCairoRectRegion::nsSVGCairoRectRegion ( float  x,
float  y,
float  w,
float  h 
) [protected]

Definition at line 79 of file nsSVGCairoRegion.cpp.

                                                                             :
    mX(x), mY(y), mWidth(w), mHeight(h)
{
}

Here is the caller graph for this function:


Member Function Documentation

Return union of this region with another region.

Parameters:
otherRegion to combine with.
Returns:
Union region.

Write a sequence of rectangles approximating this region to the sink object.

The approximation can be crude but should fully contain the actual region area.

Parameters:
sinkRectangle sink to write to.

Reimplemented from nsISVGCairoRegion.


Friends And Related Function Documentation

nsresult NS_NewSVGCairoRectRegion ( nsISVGRendererRegion **  result,
float  x,
float  y,
float  width,
float  height 
) [friend]

Definition at line 68 of file nsSVGCairoRegion.cpp.

{
  *result = new nsSVGCairoRectRegion(x, y, width, height);
  
  if (!*result) return NS_ERROR_OUT_OF_MEMORY;
  
  NS_ADDREF(*result);
  return NS_OK;
}

Member Data Documentation

Definition at line 61 of file nsSVGCairoRegion.cpp.

Definition at line 61 of file nsSVGCairoRegion.cpp.

float nsSVGCairoRectRegion::mX [private]

Definition at line 61 of file nsSVGCairoRegion.cpp.

float nsSVGCairoRectRegion::mY [private]

Definition at line 61 of file nsSVGCairoRegion.cpp.

Reimplemented from nsISVGCairoRegion.

Definition at line 55 of file nsSVGCairoRegion.cpp.


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