counter.h

来自「用linux开发的安防暴警的有关代码」· C头文件 代码 · 共 38 行

H
38
字号
#ifndef Counter_H#define Counter_H#include <FL/Fl_Valuator.H>class Counter : public Fl_Valuator {  uchar textfont_, textsize_, textcolor_;  double lstep_;  uchar mouseobj;  static FL_EXPORT void repeat_callback(void *);  FL_EXPORT int calc_mouseobj();  FL_EXPORT void increment_cb();protected:  FL_EXPORT void draw();public:  FL_EXPORT int handle(int);  FL_EXPORT Counter(int,int,int,int,const char * = 0);  FL_EXPORT ~Counter();  void lstep(double a) {lstep_ = a;}  void step(double a,double b) {Fl_Valuator::step(a); lstep_ = b;}  void step(double a) {Fl_Valuator::step(a);}  Fl_Font textfont() const {return (Fl_Font)textfont_;}  void textfont(uchar s) {textfont_ = s;}  uchar textsize() const {return textsize_;}  void textsize(uchar s) {textsize_ = s;}  Fl_Color textcolor() const {return (Fl_Color)textcolor_;}  void textcolor(uchar s) {textcolor_ = s;}};#endif

⌨️ 快捷键说明

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