?? slider.h
字號:
/*************************************************************************************************************
uC/GUI
嵌入式通用圖形軟件
文 件: SLIDER.H
描 述: SLIDER include
************************************************************************************************************/
#ifndef SLIDER_H
#define SLIDER_H
#include "WM.H"
#include "Dialog_Intern.h" /* Req. for Create indirect data structure */
#include "Widget.h" /* Req. for Create indirect data structure */
#if GUI_WINSUPPORT
/*************************************************************************************************************
* #defines
*************************************************************************************************************/
/*************************************************************************************************************
* Create / Status flags
*************************************************************************************************************/
#define SLIDER_CF_VERTICAL WIDGET_CF_VERTICAL
/*************************************************************************************************************
Public Types
*************************************************************************************************************/
typedef WM_HMEM SLIDER_Handle;
/*************************************************************************************************************
Create functions
*************************************************************************************************************/
SLIDER_Handle SLIDER_Create (int x0, int y0, int xsize, int ysize, WM_HWIN hParent, int Id, int WinFlags, int SpecialFlags);
SLIDER_Handle SLIDER_CreateIndirect(const GUI_WIDGET_CREATE_INFO* pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK* cb);
/*************************************************************************************************************
Member functions
*************************************************************************************************************/
/* Methods changing properties */
/*************************************************************************************************************
Note: These are just examples. The actual methods available for the
widget will depend on the type of widget.
*************************************************************************************************************/
void SLIDER_Inc(SLIDER_Handle hObj);
void SLIDER_Dec(SLIDER_Handle hObj);
void SLIDER_SetWidth(SLIDER_Handle hObj, int Width);
void SLIDER_SetValue(SLIDER_Handle hObj, int v);
void SLIDER_SetRange(SLIDER_Handle hObj, int Min, int Max);
/*************************************************************************************************************
Query state
*************************************************************************************************************/
int SLIDER_GetValue(SLIDER_Handle hObj);
#endif /* if GUI_WINSUPPORT */
#endif /* SLIDER_H */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -