Hymn to Beauty
C++ 3D Engine
GUI::ResourceSelector Class Reference

Used to select a resource from the resource list. More...

#include <ResourceSelector.hpp>

Classes

struct  SelectedResource
 Information about the selected resource. More...
 

Public Member Functions

 ResourceSelector ()=default
 Default constructor. More...
 
bool Show (ResourceList::Resource::Type type)
 Show the resource selector and let the user select a resource. More...
 
const SelectedResourceGetSelectedResource () const
 Get the selected resource. More...
 

Detailed Description

Used to select a resource from the resource list.

Constructor & Destructor Documentation

◆ ResourceSelector()

GUI::ResourceSelector::ResourceSelector ( )
default

Default constructor.

Member Function Documentation

◆ GetSelectedResource()

const ResourceSelector::SelectedResource & ResourceSelector::GetSelectedResource ( ) const

Get the selected resource.

Returns
The selected resource.

◆ Show()

bool ResourceSelector::Show ( ResourceList::Resource::Type  type)

Show the resource selector and let the user select a resource.

Parameters
typeThe type of resource to select.

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