X-Plane Remote Access Plugin and Client Library
Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
xplra::Menu Class Reference

#include <Menu.h>

Public Member Functions

 Menu (MessageWindow &messageWindow)
 

Protected Member Functions

void handleMenu (void *itemRef)
 

Static Private Member Functions

static void menuHandlerCallback (void *menuRef, void *itemRef)
 

Private Attributes

MessageWindowmessageWindow
 
XPLMMenuID menuID
 
int showMessageAreaIndex
 

Static Private Attributes

static void *const showMessageAreaRef = reinterpret_cast<void*>(1)
 
static void *const resetMessageAreaRef = reinterpret_cast<void*>(2)
 

Detailed Description

The menu handler.

Definition at line 48 of file Menu.h.

Constructor & Destructor Documentation

◆ Menu()

Menu::Menu ( MessageWindow messageWindow)

Construct the menu. It creates the menu for the plugin under the Plugins menu

Definition at line 55 of file Menu.cc.

Member Function Documentation

◆ handleMenu()

void Menu::handleMenu ( void *  itemRef)
protected

Handle the menu clicks.

Definition at line 73 of file Menu.cc.

◆ menuHandlerCallback()

void Menu::menuHandlerCallback ( void *  menuRef,
void *  itemRef 
)
staticprivate

The menu handler callback.

Definition at line 47 of file Menu.cc.

Member Data Documentation

◆ menuID

XPLMMenuID xplra::Menu::menuID
private

The menu ID.

Definition at line 74 of file Menu.h.

◆ messageWindow

MessageWindow& xplra::Menu::messageWindow
private

Reference to the message window.

Definition at line 69 of file Menu.h.

◆ resetMessageAreaRef

void *const Menu::resetMessageAreaRef = reinterpret_cast<void*>(2)
staticprivate

Item reference for the show message area menu item.

Definition at line 64 of file Menu.h.

◆ showMessageAreaIndex

int xplra::Menu::showMessageAreaIndex
private

The index of the "Show Message Area" menu item.

Definition at line 79 of file Menu.h.

◆ showMessageAreaRef

void *const Menu::showMessageAreaRef = reinterpret_cast<void*>(1)
staticprivate

Item reference for the show message area menu item.

Definition at line 59 of file Menu.h.


The documentation for this class was generated from the following files: