You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
777 B

#ifndef __GUI_SDL_WIDGET_PROGRESS_BAR_HEADER__
#define __GUI_SDL_WIDGET_PROGRESS_BAR_HEADER__
#include "../core/coreWidget.h"
#include "../core/coreLabel.h"
#include "../../components/base/basicMutex.h"
#include "../../components/base/basicStatusProvider.h"
class sdlProgressBar : public sdlCoreWidget{
private:
basicStatusProvider * m_pStatusProvider;
sdlLabel * m_pLabel;
basicMutex m_mStatusProtecter;
protected:
virtual void draw(SDL_Renderer *pRenderer);
public:
explicit sdlProgressBar(int x, int y, int width, int height, sdlCoreWidget * pWnd = NULL);
virtual ~sdlProgressBar();
void attachStatusProvider(basicStatusProvider *tPtr);
virtual void dispatch(SDL_Event *pEvt);
void setText( CSTR tPtr );
};
#endif