Interface for a class that is supposed to draw on HUD. More...
#include <IDrawsHUD.hpp>
Public Member Functions | |
IDrawsHUD () | |
Ctor. | |
virtual | ~IDrawsHUD () |
Dtor. | |
virtual bool | ShouldDrawHUD () const =0 |
Should the MFD draw on HUD now? | |
virtual void | DrawHUD (int mode, const HUDPAINTSPEC *hps, oapi::Sketchpad *skp)=0 |
Provides drawing context for the MFD. | |
virtual void | DrawHUD (int mode, const HUDPAINTSPEC *hps, HDC hDC) |
Only for backward compatibility (Orbiter 2006), therefore may be left unimplemented. | |
virtual const char * | GetModuleName () const =0 |
Should return unique module's name. |
Interface for a class that is supposed to draw on HUD.
Make this a base class of your module or MFD to receive the HUD drawing context. For example:
Take note, that the child class doesn't neccessarily need to be an MFD.
|
inlinevirtual |
Only for backward compatibility (Orbiter 2006), therefore may be left unimplemented.
If you need to provide backward compatibility, the code executed by this method should be equal to the second drawing method.
|
pure virtual |
Should return unique module's name.
It's required so that the module can be disabled globally with HUDDrawer MFD.
|
pure virtual |
Should the MFD draw on HUD now?
Could return false, for example when the user switched drawing on HUD through an MFD button.