Created
February 10, 2013 15:54
-
-
Save Groogy/4749991 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
playButtonAction = [this](GUI::Component& sender) { // The argument is not needed actually, just common in .NET and Java | |
startGame(); // Member function in the state that defines this action | |
}; | |
std::shared_ptr<GUI::Button> playButton(new GUI::Button("Play", playButtonAction)); | |
myContainer.pack(playButton); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment