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

Wrapper around ComboBox for Peoplemon types. More...

#include <TypeSelector.hpp>

+ Inheritance diagram for editor::component::TypeSelector:

Public Types

using Ptr = std::shared_ptr< TypeSelector >
 Pointer to a TypeSelector component. More...
 

Public Member Functions

core::pplmn::Type currentType () const
 Returns the type that is currently selected. More...
 
void setCurrentType (core::pplmn::Type type)
 Sets the currently selected type. More...
 

Static Public Member Functions

static Ptr create ()
 Create a new TypeSelector. More...
 

Detailed Description

Wrapper around ComboBox for Peoplemon types.

Definition at line 18 of file TypeSelector.hpp.

Member Typedef Documentation

◆ Ptr

Pointer to a TypeSelector component.

Definition at line 21 of file TypeSelector.hpp.

Member Function Documentation

◆ create()

TypeSelector::Ptr editor::component::TypeSelector::create ( )
static

Create a new TypeSelector.

Definition at line 20 of file TypeSelector.cpp.

◆ currentType()

core::pplmn::Type editor::component::TypeSelector::currentType ( ) const

Returns the type that is currently selected.

Definition at line 36 of file TypeSelector.cpp.

◆ setCurrentType()

void editor::component::TypeSelector::setCurrentType ( core::pplmn::Type  type)

Sets the currently selected type.

Parameters
typeThe type to set

Definition at line 38 of file TypeSelector.cpp.


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