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

53 lines
1.2 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;
2016-06-15 18:43:10 +12:00
class DVAPI TSplashWindow {
2016-03-19 06:57:51 +13:00
protected:
2016-06-15 18:43:10 +12:00
class TSplashWindowImp;
TSplashWindowImp *m_imp;
// TThread::Executor m_thrExecutor;
// TRasterP m_raster;
2016-03-19 06:57:51 +13:00
protected:
2016-06-15 18:43:10 +12:00
TSplashWindow(TRaster32P splash_image, unsigned int timeout_msec);
TSplashWindow(const TFilePath &splash_image, unsigned int timeout_msec);
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
virtual ~TSplashWindow();
void close();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
static TSplashWindow *create(TRaster32P splash_image,
unsigned int timeout_msec);
static TSplashWindow *create(const TFilePath &splash_image,
unsigned int timeout_msec);
2016-03-19 06:57:51 +13:00
protected:
2016-06-15 18:43:10 +12:00
void createWindow(TRaster32P splash_image, unsigned int timeout_msec);
void createWindow(const TFilePath &splash_image, unsigned int timeout_msec);
2016-03-19 06:57:51 +13:00
private:
2016-06-15 18:43:10 +12:00
// cloning is forbidden
TSplashWindow(const TSplashWindow &);
TSplashWindow &operator=(const TSplashWindow &);
2016-03-19 06:57:51 +13:00
};
#endif