tahoma2d/toonz/sources/include/tw/splash.h

52 lines
1.1 KiB
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef TW_SPLASH_INCLUDED
#define TW_SPLASH_INCLUDED
//#include "tfilepath.h"
//#include "tthread.h"
#include "traster.h"
#undef DVAPI
#undef DVVAR
#ifdef TWIN_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
class TFilePath;
class DVAPI TSplashWindow
{
protected:
class TSplashWindowImp;
TSplashWindowImp *m_imp;
//TThread::Executor m_thrExecutor;
//TRasterP m_raster;
protected:
TSplashWindow(TRaster32P splash_image, unsigned int timeout_msec);
TSplashWindow(const TFilePath &splash_image, unsigned int timeout_msec);
public:
virtual ~TSplashWindow();
void close();
static TSplashWindow *create(TRaster32P splash_image, unsigned int timeout_msec);
static TSplashWindow *create(const TFilePath &splash_image, unsigned int timeout_msec);
protected:
void createWindow(TRaster32P splash_image, unsigned int timeout_msec);
void createWindow(const TFilePath &splash_image, unsigned int timeout_msec);
private:
// cloning is forbidden
TSplashWindow(const TSplashWindow &);
TSplashWindow &operator=(const TSplashWindow &);
};
#endif