67 : coverage(coverage_), z(z_)
Represents the output window/screen of openMSX.
Interface for display layers.
Coverage
Describes how much of the screen is currently covered by a particular layer.
@ NONE
Layer is not visible, that is completely transparent.
@ FULL
Layer fully covers the screen: any underlying layers are invisible.
@ PARTIAL
Layer partially covers the screen: it may cover only part of the screen area, or it may be (semi-)tra...
Coverage getCoverage() const
Query the coverage of this layer.
friend auto operator<=>(ZIndex x, ZIndex y)
virtual void paint(OutputSurface &output)=0
Paint this layer.
void setZ(ZIndex z)
Changes the current Z-index of this layer.
ZIndex
Determines stacking order of layers: layers with higher Z-indices are closer to the viewer.
Layer(Coverage coverage_, ZIndex z_)
Construct a layer.
void setDisplay(Display &display_)
Store pointer to Display.
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 & operator=(const ScopedLayerHider &)=delete
ScopedLayerHider & operator=(ScopedLayerHider &&)=delete
ScopedLayerHider(ScopedLayerHider &&)=delete
ScopedLayerHider(const ScopedLayerHider &)=delete
This file implemented 3 utility functions:
constexpr auto to_underlying(E e) noexcept