The main menu. More...
#include <MainMenu.h>
Public Member Functions | |
| MainMenu (const std::string &titlebar, int x, int y) | |
| ~MainMenu () | |
Private Member Functions | |
| void | windowInit () |
| Instructs derived Window objects to initialize themselves. | |
| void | windowLogic () |
| Instructs derived Window objects to perform their logic. | |
Private Attributes | |
| Button * | btnStory |
| Button * | btnOptions |
| Button * | btnEditor |
| Button * | btnExit |
The main menu.
| MainMenu::MainMenu | ( | const std::string & | titlebar, | |
| int | x, | |||
| int | y | |||
| ) |
| MainMenu::~MainMenu | ( | ) |
| void MainMenu::windowInit | ( | ) | [private, virtual] |
Instructs derived Window objects to initialize themselves.
When deriving a Window Control, windowInit() must be overridden. This is the function where one would create and add new Control objects as well as specify various attributes such as color, size, position, etc.
Reimplemented from Window.
| void MainMenu::windowLogic | ( | ) | [private, virtual] |
Instructs derived Window objects to perform their logic.
During every GUI update cycle, windowLogic() is called to allow derived Window objects to perform logic operations. This is the function where one would respond to events, perform calculations, etc.
Reimplemented from Window.
Button * MainMenu::btnEditor [private] |
Button * MainMenu::btnExit [private] |
Button * MainMenu::btnOptions [private] |
Button* MainMenu::btnStory [private] |
1.7.1