tahoma2d/toonz/sources/include/toonzqt/flipconsoleowner.h

26 lines
698 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef FLIPCONSOLEOWNER_H
#define FLIPCONSOLEOWNER_H
//-----------------------------------------------------------------
/*! FlipConsoleOwner class
2016-06-15 18:43:10 +12:00
inherited by ViewerPane and FlipBook, which receives redraw signal from
FlipConsole.
2016-03-19 06:57:51 +13:00
*/
#include "toonzqt/flipconsole.h"
class FlipConsole;
2016-06-15 18:43:10 +12:00
class FlipConsoleOwner {
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
virtual void onDrawFrame(int frame,
const ImagePainter::VisualSettings &settings) = 0;
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
// return true if the frmae is in cache. reimplemented only in Flipbook
virtual bool isFrameAlreadyCached(int frame) { return true; };
virtual void swapBuffers(){};
virtual void changeSwapBehavior(bool enable){};
2016-03-19 06:57:51 +13:00
};
#endif