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.
|
|
#ifndef __SDL_LOG_WIDGET_HEADER__
#define __SDL_LOG_WIDGET_HEADER__
#include "../core/coreWidget.h"
#include "../core/coreLabel.h"
#include "../../components/base/basicMutex.h"
#include "../../components/base/basicLoggingService.h"
#define SDL_DEFAULT_LOG_FONT_SIZE 10
#define SDL_DEFAULT_LOG_ROW_SIZE 12
class sdlLog :public basicLoggingService, public sdlCoreWidget { private: sdlLabel ** m_ppLines; int m_nLines; int m_nCurrentLine; basicMutex m_mProtector; protected: virtual void draw(SDL_Renderer *pRenderer); public: explicit sdlLog(int x, int y, int width, int height, sdlCoreWidget * pWnd = NULL); virtual ~sdlLog(); virtual void logMessage(CSTR Msg); virtual void logMessage(const char *Msg);};
#endif
|