animated_icon.h

来自「Siemens 的SIMpad是一个多媒体设备」· C头文件 代码 · 共 38 行

H
38
字号
#ifndef Animated_Icon_h#define Animated_Icon_h#include <FL/Fl_Box.H>#include <FL/Fl_Pixmap.H>class Animated_Icon : public Fl_Box {public:	Animated_Icon(int x, int y, int w, int h, const char *l = 0);	~Animated_Icon();               // deletes the Fl_Pixmaps!	void add(Fl_Pixmap *, float);   // add after current, make current	void start();                   // start continuous display	void stop();	int running() const { return running_; }	void set(int);                  // change to this one, no update					// user must call redraw()	void setRunOnce(bool mode){run_once=mode;}	private:	struct icon_list {		Fl_Pixmap *icon;        // pixmap to draw		float delay;            // how long to leave it up		icon_list *next;	};	icon_list *first;	icon_list *current;	int running_;	bool run_once;	static void icon_cb(Animated_Icon *);};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?