openMSX
OSDGUILayer.cc
Go to the documentation of this file.
1#include "OSDGUILayer.hh"
2#include "OSDGUI.hh"
3#include "OSDTopWidget.hh"
4
5namespace openmsx {
6
8 : Layer(Coverage::PARTIAL, ZIndex::OSDGUI)
9 , gui(gui_)
10{
11}
12
17
19{
20 auto& top = getGUI().getTopWidget();
21 top.paintRecursive(output);
22 top.showAllErrors();
23}
24
25} // namespace openmsx
Interface for display layers.
Definition Layer.hh:14
Coverage
Describes how much of the screen is currently covered by a particular layer.
Definition Layer.hh:31
ZIndex
Determines stacking order of layers: layers with higher Z-indices are closer to the viewer.
Definition Layer.hh:19
void paint(OutputSurface &output) override
Paint this layer.
OSDGUILayer(OSDGUI &gui)
Definition OSDGUILayer.cc:7
~OSDGUILayer() override
const OSDTopWidget & getTopWidget() const
Definition OSDGUI.hh:20
void paintRecursive(OutputSurface &output)
Definition OSDWidget.cc:268
void invalidateRecursive()
Definition OSDWidget.cc:246
A frame buffer where pixels can be written to.
This file implemented 3 utility functions:
Definition Autofire.cc:11