Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Types | Public Member Functions | List of all members
editor::component::OwnedPeoplemonWindow Class Reference

Window for editing owned Peoplemon. More...

#include <OwnedPeoplemonWindow.hpp>

Public Types

using NotifyCB = std::function< void()>
 Callback for when the window is closed. More...
 

Public Member Functions

 OwnedPeoplemonWindow (const NotifyCB &onFinish, const NotifyCB &onCancel)
 Construct a new Owned Peoplemon Window. More...
 
void show (bl::gui::GUI *parent, const core::pplmn::OwnedPeoplemon &value={})
 Shows the window. More...
 
void hide ()
 Hides the window. More...
 
core::pplmn::OwnedPeoplemon getValue () const
 Returns the value of the Peoplemon entered. More...
 

Detailed Description

Window for editing owned Peoplemon.

Definition at line 21 of file OwnedPeoplemonWindow.hpp.

Member Typedef Documentation

◆ NotifyCB

Callback for when the window is closed.

Definition at line 24 of file OwnedPeoplemonWindow.hpp.

Constructor & Destructor Documentation

◆ OwnedPeoplemonWindow()

editor::component::OwnedPeoplemonWindow::OwnedPeoplemonWindow ( const NotifyCB onFinish,
const NotifyCB onCancel 
)

Construct a new Owned Peoplemon Window.

Parameters
onFinishCalled when the Peoplemon is finished
onCancelCalled when the window is closed without using the peoplemon

Definition at line 12 of file OwnedPeoplemonWindow.cpp.

Member Function Documentation

◆ getValue()

core::pplmn::OwnedPeoplemon editor::component::OwnedPeoplemonWindow::getValue ( ) const

Returns the value of the Peoplemon entered.

Definition at line 169 of file OwnedPeoplemonWindow.cpp.

◆ hide()

void editor::component::OwnedPeoplemonWindow::hide ( )

Hides the window.

Definition at line 164 of file OwnedPeoplemonWindow.cpp.

◆ show()

void editor::component::OwnedPeoplemonWindow::show ( bl::gui::GUI *  parent,
const core::pplmn::OwnedPeoplemon value = {} 
)

Shows the window.

Parameters
parentThe parent GUI object
valueThe value to fill with

Definition at line 132 of file OwnedPeoplemonWindow.cpp.


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