Main MFD class. More...
#include <LaunchMFD.h>
Public Member Functions | |
LaunchMFD (DWORD w, DWORD h, VESSEL *vessel, PluginLaunchMFD *plugin) | |
Default constructor. | |
~LaunchMFD () | |
Destructor. | |
char * | ButtonLabel (int bt) |
int | ButtonMenu (const MFDBUTTONMENU **menu) const |
MFD_RETURN_TYPE | Update (MyDC myDC) |
bool | ConsumeKeyBuffered (DWORD key) |
bool | ConsumeKeyImmediate (char *kstate) |
bool | ConsumeButton (int bt, int event) |
EnjoLib::MFDGoodies::Sound & | GetSound () |
Returns Sound class. | |
MFDDataLaunchMFD * | GetData () |
Returns MFDData class. | |
const MFDDataLaunchMFD * | GetData () const |
void | WriteStatus (FILEHANDLE scn) const |
void | ReadStatus (FILEHANDLE scn) |
bool | ShouldDrawHUD () const |
void | DrawHUD (int mode, const HUDPAINTSPEC *hps, MyDC hDC) |
void | SwitchButtonsPage () |
void | SwitchMode () |
void | SwitchAutopilot () |
void | SwitchPitchGuidance () |
void | SwitchOffplaneCorrection () |
void | SwitchAzimuth () |
void | SwitchGreatCircleUse () |
void | SwitchGreatCircleTrack () |
void | SwitchGreatCircleLines () |
void | SwitchHUD () |
void | SwitchSound () |
void | GreatCircleZoomIn () |
void | GreatCircleZoomOut () |
void | GreatCircleIncreasePlotPrecision () |
void | GreatCircleDecreasePlotPrecision () |
void | IncreaseInclination () |
void | DecreaseInclination () |
void | IncreaseInclinationFactor () |
void | DecreaseInclinationFactor () |
void | DefaultAction () |
void | OpenDialogTarget () |
void | OpenDialogAltitude () |
void | OpenDialogPIDXY () |
void | OpenDialogPIDBank () |
void | DoNothing () |
Static Public Member Functions | |
static int | MsgProc (UINT msg, UINT mfd, WPARAM wparam, LPARAM lparam) |
Main MFD class.
Main MFD class. Constructed each time the MFD is opened or vessel is changed. Therefore, if you need to store the values of this and other vessels, you need to use and external data structure, that stores these values. Here, it's called MFDData.
LaunchMFD::LaunchMFD | ( | DWORD | w, |
DWORD | h, | ||
VESSEL * | vessel, | ||
PluginLaunchMFD * | plugin | ||
) |
Default constructor.
Constructs the MFD.
w | - MFD's width |
h | - MFD's height |
vessel | for which the MFD has been opened |
plugin | contains configuration and other data neede by the MFD |
MFDDataLaunchMFD * LaunchMFD::GetData | ( | ) |
Returns MFDData class.
Returns a reference to the MFDData class, needed outside the MFD's context
EnjoLib::MFDGoodies::Sound & LaunchMFD::GetSound | ( | ) |
Returns Sound class.
Returns a reference to the Sound class, needed outside the MFD's context