nxscroll.h

来自「pixil 最新的嵌入linux 應用程序集,別的地方很難下載」· C头文件 代码 · 共 52 行

H
52
字号
#ifndef		NXSCROLL_INCLUDED#define		NXSCROLL_INCLUDED	1#include <FL/Fl_Group.H>#include "nxscrollbar.h"#include <FL/Fl_Scrollbar.H>class NxScroll : public Fl_Group{  int save_h;  bool move;  bool resize_;  int xposition_, yposition_;  int width_, height_;  int oldx, oldy;  static FL_EXPORT void hscrollbar_cb(Fl_Widget*, void*);  static FL_EXPORT void scrollbar_cb(Fl_Widget*, void*);  FL_EXPORT void fix_scrollbar_order();  static FL_EXPORT void draw_clip(void*,int,int,int,int);  FL_EXPORT void bbox(int&,int&,int&,int&); protected:  FL_EXPORT void draw(); public:  NxScrollbar scrollbar;  NxScrollbar hscrollbar;  void movable(bool flag) { move = flag; }  void resize(bool flag) { resize_ = flag; }  FL_EXPORT void resize(int,int,int,int);  FL_EXPORT int handle(int);  enum { // values for type()    HORIZONTAL = 1,    VERTICAL = 2,    BOTH = 3,    ALWAYS_ON = 4,    HORIZONTAL_ALWAYS = 5,    VERTICAL_ALWAYS = 6,    BOTH_ALWAYS = 7  };  int xposition() const {return xposition_;}  int yposition() const {return yposition_;}  FL_EXPORT void position(int, int);  NxScroll(int x, int y, int w, int h, const char *l=0);}; // end of NxSlider::NxScroll()#endif	//	NXSCROLL_INCLUDED

⌨️ 快捷键说明

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