⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spinbox.h

📁 本程序是使用CDMA450模块开发的一个无线公话完整程序
💻 H
字号:
#ifndef _COMPONENT_SPINBOX
#define _COMPONENT_SPINBOX

#include "component.h"

typedef struct {
	component_t comp;		/**< 增减量组件 */
	short		min;		/**< 最小值 */
	short		max;		/**< 最大值 */
	short		cur;		/**< 当前值 */
	short		step;		/**< 单位增量 */
	short		cycle;
} spin_t;

/**
*XCreateSpin --- 创建增减量组件
 */
int XCreateSpin(component_t *parent, 
				spin_t *sp, 
				const rect *rc,
				short min,
				short max,
				short step,
				short current);


short XSpinSetPos(spin_t *sp, short pos);
short XSpinGetPos(spin_t *sp);
int XSpinReset(spin_t *sp, int min, int max, int step);

int XSpinKeyHandle(spin_t *sp, int key);

#endif /*spin.h*/

⌨️ 快捷键说明

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