65 : coverage(coverage_), z(z_)
Interface for display layers.
Coverage
Describes how much of the screen is currently covered by a particular layer.
@ COVER_FULL
Layer fully covers the screen: any underlying layers are invisible.
@ COVER_PARTIAL
Layer partially covers the screen: it may cover only part of the screen area, or it may be (semi-)tra...
@ COVER_NONE
Layer is not visible, that is completely transparent.
Layer(Coverage coverage_=COVER_NONE, ZIndex z_=Z_DUMMY)
Construct a layer.
Coverage getCoverage() const
Query the coverage of this layer.
virtual void paint(OutputSurface &output)=0
Paint this layer.
void setZ(ZIndex z)
Changes the current Z-index of this layer.
void setDisplay(LayerListener &display_)
Store pointer to Display.
ZIndex
Determines stacking order of layers: layers with higher Z-indices are closer to the viewer.
ZIndex getZ() const
Query the Z-index of this layer.
void setCoverage(Coverage coverage_)
Changes the current coverage of this layer.
A frame buffer where pixels can be written to.
ScopedLayerHider(Layer &layer)
This file implemented 3 utility functions: