SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::SlateInfoBar Class Reference

This Class defines InfoBar instance. More...

#include <SlateInfoBar.h>

Public Types

enum class  Type { progress , count }
 InfoBar Type. More...
 

Public Member Functions

 SlateInfoBar (const std::string &info, std::function< std::any()> &rateFunc, std::function< bool(SlateInfoBar *)> &destroyFunc, Type type)
 Constructor Function.
 
virtual ~SlateInfoBar ()=default
 Destructor Function.
 
const std::string & GetInfo ()
 Get this InfoBar info content.
 
std::any GetRate ()
 Get this InfoBar info progress rate.
 
bool IsDestroy ()
 Determine if this slate info bar needs to be destroy.
 
Type GetType () const
 Get this type.
 

Static Public Member Functions

template<typename R >
static void Create (const std::string &info, std::function< std::any()> rateFunc, std::function< bool(SlateInfoBar *)> destroyFunc=nullptr)
 Create InfoBar Instance, and registy to Slate.
 

Private Attributes

std::string m_Info
 this InfoBar info content.
 
std::function< std::any()> m_RateFunc
 InfoBar progress rate function.
 
std::function< bool(SlateInfoBar *) m_DestroyFunc )
 InfoBar progress destroy function.
 
Type m_Type
 InfoBar Type.
 

Detailed Description

This Class defines InfoBar instance.

Definition at line 17 of file SlateInfoBar.h.


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