splashpattern.h
来自「这是一个做pdf阅读器的源代码文件,是大家学习阅读器资料的很好参考」· C头文件 代码 · 共 66 行
H
66 行
//========================================================================//// SplashPattern.h////========================================================================#ifndef SPLASHPATTERN_H#define SPLASHPATTERN_H#include <aconf.h>#ifdef USE_GCC_PRAGMAS#pragma interface#endif#include "SplashTypes.h"class SplashScreen;//------------------------------------------------------------------------// SplashPattern//------------------------------------------------------------------------class SplashPattern {public: SplashPattern(); virtual SplashPattern *copy() = 0; virtual ~SplashPattern(); // Return the color value for a specific pixel. virtual void getColor(int x, int y, SplashColorPtr c) = 0; // Returns true if this pattern object will return the same color // value for all pixels. virtual GBool isStatic() = 0;private:};//------------------------------------------------------------------------// SplashSolidColor//------------------------------------------------------------------------class SplashSolidColor: public SplashPattern {public: SplashSolidColor(SplashColorPtr colorA); virtual SplashPattern *copy() { return new SplashSolidColor(color); } virtual ~SplashSolidColor(); virtual void getColor(int x, int y, SplashColorPtr c); virtual GBool isStatic() { return gTrue; }private: SplashColor color;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?