📄 uislider.h
字号:
/*********************************************************
FILE: Slider.h (/rtos/kernel/usrlib/pda_win/include/)
Basic Window Widget : Slider
Copyright (c) 2001, Reality Technology CO. LTD.
AUTHOR: Cangers <gh_chan@sina.com>
HISTORY: >2001-10-16
**********************************************************/
#ifndef _GUI_SLIDER_H_
#define _GUI_SLIDER_H_
#include <uiControl.h>
//STYLE
#define SLIDER_HORIZONTAL 0x00 //default style
#define SLIDER_HOR SLIDER_HORIZONTAL
#define SLIDER_VERTICAL 0x10
#define SLIDER_VER SLIDER_VERTICAL
#define SLIDER_3DMODE 0x80
#define SLIDER_WIN3D SLIDER_3DMODE
#define SLIDER_WIN2D 0x00
//================================================================
#define SLIDER_H_WIDTH 6
#define SLIDER_H_HEIGHT 10
#define SLIDER_V_WIDTH 10
#define SLIDER_V_HEIGHT 6
#define SLIDER_RECTWIDTH 4
/**************************************************************
DATA STRUCTURE
**************************************************************/
typedef struct tagGuiSlider
{
TGuiControl base ;
// extention attribute
int min ; // min value
int max ; // max value
int current ; // current value
int current_pos; //current position
}TGUISLIDER,*PTGUISLIDER;
/**************************************************************
FUNCTION DECLARATION
**************************************************************/
/*
**********************************************************************************************
create slider widget,if something wrong return 0,>0 ok
**********************************************************************************************
*/
DLL_EXP(HNDL) guiSlider_Create(WORD left, WORD top,WORD ext, int min, int max, int style);
/*
**********************************************************************************************
update current position, return STATUS_ERR if some wrong happend !!
**********************************************************************************************
*/
DLL_EXP(STATUS) guiSlider_SetValue( HNDL handle, int current );
/*
**********************************************************************************************
Get current position, return STATUS_ERR if some wrong happend !!
**********************************************************************************************
*/
DLL_EXP(int) guiSlider_GetValue( HNDL handle);
/*
**********************************************************************************************
reset slider widget, return STATUS_ERR if some wrong happend !!
**********************************************************************************************
*/
DLL_EXP(STATUS) guiSlider_Reset( HNDL handle, WORD left, WORD top,WORD ext ,int min, int max,int current);
#define guiSlider_Show guiControl_Show
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -