📄 spinbox.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 + -