📄 multipage.h
字号:
/*
*********************************************************************************************************
* uC/GUI
* Universal graphic software for embedded applications
*
* (c) Copyright 2002, Micrium Inc., Weston, FL
* (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
*
* 礐/GUI is protected by international copyright laws. Knowledge of the
* source code may not be used to write a similar product. This file may
* only be used in accordance with a license and should not be redistributed
* in any way. We appreciate your understanding and fairness.
*
----------------------------------------------------------------------
File : MULTIPAGE.h
Purpose : MULTIPAGE include
----------------------------------------------------------------------
Version-Date---Author-Explanation
----------------------------------------------------------------------
0.00 --ALPHA--
----------------------------------------------------------------------
Open items:
None
--------------------END-OF-HEADER-------------------------------------
*/
#ifndef MULTIPAGE_H
#define MULTIPAGE_H
#include "WM.h"
#include "DIALOG.h" /* Req. for Create indirect data structure */
#if GUI_WINSUPPORT
/*********************************************************************
*
* defines
*
**********************************************************************
*/
/*********************************************************************
*
* Create / Status flags
*/
#define MULTIPAGE_ALIGN_LEFT (0<<0)
#define MULTIPAGE_ALIGN_RIGHT (1<<0)
#define MULTIPAGE_ALIGN_TOP (0<<2)
#define MULTIPAGE_ALIGN_BOTTOM (1<<2)
/*********************************************************************
*
* Public Types
*
**********************************************************************
*/
typedef WM_HMEM MULTIPAGE_Handle;
/*********************************************************************
*
* Create functions
*
**********************************************************************
*/
MULTIPAGE_Handle MULTIPAGE_Create (int x0, int y0, int xsize, int ysize, WM_HWIN hParent, int Id, int Flags, int SpecialFlags);
MULTIPAGE_Handle MULTIPAGE_CreateIndirect(const GUI_WIDGET_CREATE_INFO* pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK* cb);
/*********************************************************************
*
* Member functions
*
**********************************************************************
*/
/* Methods changing properties */
void MULTIPAGE_AddPage (MULTIPAGE_Handle hObj, WM_HWIN hWin ,const char* pText);
void MULTIPAGE_DeletePage (MULTIPAGE_Handle hObj, int Index, int Delete);
void MULTIPAGE_SelectPage (MULTIPAGE_Handle hObj, int Index);
void MULTIPAGE_EnablePage (MULTIPAGE_Handle hObj, int Index);
void MULTIPAGE_DisablePage (MULTIPAGE_Handle hObj, int Index);
void MULTIPAGE_SetText (MULTIPAGE_Handle hObj, const char* pText, int Index);
void MULTIPAGE_SetBkColor (MULTIPAGE_Handle hObj, GUI_COLOR Color, int Index);
void MULTIPAGE_SetTextColor (MULTIPAGE_Handle hObj, GUI_COLOR Color, int Index);
void MULTIPAGE_SetFont (MULTIPAGE_Handle hObj, const GUI_FONT* pFont);
void MULTIPAGE_SetAlign (MULTIPAGE_Handle hObj, int Align);
int MULTIPAGE_IsPageEnabled (MULTIPAGE_Handle hObj, int Index);
#endif /* if GUI_WINSUPPORT */
#endif /* MULTIPAGE_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -