Public Member Functions | Protected Member Functions | Protected Attributes

mozilla::layers::ColorLayer Class Reference

A Layer which just renders a solid color in its visible region. More...

#include <Layers.h>

Inheritance diagram for mozilla::layers::ColorLayer:
Collaboration diagram for mozilla::layers::ColorLayer:

List of all members.

Public Member Functions

virtual void SetColor (const gfxRGBA &aColor)
 CONSTRUCTION PHASE ONLY Set the color of the layer.
virtual const gfxRGBAGetColor ()
virtual const char * Name () const
virtual LayerType GetType () const
virtual void ComputeEffectiveTransforms (const gfx3DMatrix &aTransformToSurface)

Protected Member Functions

 ColorLayer (LayerManager *aManager, void *aImplData)
virtual nsACStringPrintInfo (nsACString &aTo, const char *aPrefix)

Protected Attributes

gfxRGBA mColor

Detailed Description

A Layer which just renders a solid color in its visible region.

It actually can fill any area that contains the visible region, so if you need to restrict the area filled, set a clip region on this layer.

Constructor & Destructor Documentation

mozilla::layers::ColorLayer::ColorLayer ( LayerManager aManager,
void *  aImplData 
) [inline, protected]

Member Function Documentation

virtual void mozilla::layers::ColorLayer::ComputeEffectiveTransforms ( const gfx3DMatrix aTransformToSurface  )  [inline, virtual]
aTransformToSurface the composition of the transforms from the parent layer (if any) to the destination pixel grid.

Computes mEffectiveTransform for this layer and all its descendants. mEffectiveTransform transforms this layer up to the destination pixel grid (whatever aTransformToSurface is relative to).

We promise that when this is called on a layer, all ancestor layers have already had ComputeEffectiveTransforms called.

Implements mozilla::layers::Layer.

virtual const gfxRGBA& mozilla::layers::ColorLayer::GetColor (  )  [inline, virtual]
virtual LayerType mozilla::layers::ColorLayer::GetType (  )  const [inline, virtual]
virtual const char* mozilla::layers::ColorLayer::Name (  )  const [inline, virtual]
virtual nsACString& mozilla::layers::ColorLayer::PrintInfo ( nsACString aTo,
const char *  aPrefix 
) [protected, virtual]

Reimplemented from mozilla::layers::Layer.

virtual void mozilla::layers::ColorLayer::SetColor ( const gfxRGBA aColor  )  [inline, virtual]

CONSTRUCTION PHASE ONLY Set the color of the layer.

Member Data Documentation

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