![]() |
Shkyera Engine
Easy to use, game engine for Python
|
#include <AssetSelector.hpp>
Public Member Functions | |
AssetSelector ()=default | |
AssetSelector (const std::string &title) | |
AssetSelector (const std::string &title, Registry *registry, std::optional< AssetHandle > asset) | |
virtual | ~AssetSelector ()=default |
void | setUpdateCallback (std::function< void(AssetHandle file)> callback) |
void | setClearCallback (std::function< void()> callback) |
void | draw () |
Protected Member Functions | |
virtual void | drawAsset (Registry *registry, AssetHandle handle) |
virtual void | clearAsset () |
Private Attributes | |
std::string | _title {} |
Registry * | _registry |
std::optional< AssetHandle > | _asset |
std::function< void(AssetHandle)> | _updateCallback |
std::function< void()> | _clearCallback |
|
default |
|
inline |
|
inline |
|
virtualdefault |
|
inlineprotectedvirtual |
Reimplemented in shkyera::TextureAssetSelector.
|
inline |
|
inlineprotectedvirtual |
Reimplemented in shkyera::TextureAssetSelector.
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |