📄 header.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 : HEADER.h
Purpose : HEADER include
--------------------END-OF-HEADER-------------------------------------
*/
#ifndef HEADER_H
#define HEADER_H
#include "WM.h"
#include "DIALOG.h" /* Req. for Create indirect data structure */
#if GUI_WINSUPPORT
/*********************************************************************
*
* Public Types
*
**********************************************************************
*/
typedef WM_HMEM HEADER_Handle;
/*********************************************************************
*
* Create functions
*
**********************************************************************
*/
HEADER_Handle HEADER_Create (int x0, int y0, int xsize, int ysize, WM_HWIN hParent, int Id, int Flags, int SpecialFlags);
HEADER_Handle HEADER_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb);
HEADER_Handle HEADER_CreateAttached(WM_HWIN hParent, int Id, int SpecialFlags);
/*********************************************************************
*
* Standard member functions
*
**********************************************************************
*/
#define HEADER_EnableMemdev(hObj) WM_EnableMemdev (hObj)
#define HEADER_DisableMemdev(hObj) WM_DisableMemdev (hObj)
#define HEADER_Delete(hObj) WM_DeleteWindow (hObj)
#define HEADER_Paint(hObj) WM_Paint (hObj)
#define HEADER_Invalidate(hObj) WM_InvalidateWindow(hObj)
/*********************************************************************
*
* Global functions
*
**********************************************************************
*/
/* Set defaults */
GUI_COLOR HEADER_SetDefaultBkColor (GUI_COLOR Color);
const GUI_CURSOR * HEADER_SetDefaultCursor (const GUI_CURSOR * pCursor);
const GUI_FONT * HEADER_SetDefaultFont (const GUI_FONT * pFont);
int HEADER_SetDefaultSpacingH (int Spacing);
int HEADER_SetDefaultSpacingV (int Spacing);
GUI_COLOR HEADER_SetDefaultTextColor(GUI_COLOR Color);
/* Get defaults */
GUI_COLOR HEADER_GetDefaultBkColor (void);
const GUI_CURSOR * HEADER_GetDefaultCursor (void);
const GUI_FONT * HEADER_GetDefaultFont (void);
int HEADER_GetDefaultSpacingH (void);
int HEADER_GetDefaultSpacingV (void);
GUI_COLOR HEADER_GetDefaultTextColor(void);
/*********************************************************************
*
* Member functions
*
**********************************************************************
*/
void HEADER_AddItem (HEADER_Handle hObj, int Width, const char * s, int Align);
int HEADER_GetHeight (HEADER_Handle hObj);
int HEADER_GetItemWidth (HEADER_Handle hObj, int Index);
int HEADER_GetNumItems (HEADER_Handle hObj);
void HEADER_SetBitmap (HEADER_Handle hObj, int Index, const GUI_BITMAP * pBitmap);
void HEADER_SetBitmapEx (HEADER_Handle hObj, int Index, const GUI_BITMAP * pBitmap, int x, int y);
void HEADER_SetBkColor (HEADER_Handle hObj, GUI_COLOR Color);
void HEADER_SetBMP (HEADER_Handle hObj, int Index, const void * pBitmap);
void HEADER_SetBMPEx (HEADER_Handle hObj, int Index, const void * pBitmap, int x, int y);
void HEADER_SetFont (HEADER_Handle hObj, const GUI_FONT * pFont);
void HEADER_SetHeight (HEADER_Handle hObj, int Height);
void HEADER_SetTextAlign (HEADER_Handle hObj, int Index, int Align);
void HEADER_SetItemText (HEADER_Handle hObj, int Index, const char * s);
void HEADER_SetItemWidth (HEADER_Handle hObj, int Index, int Width);
void HEADER_SetStreamedBitmap (HEADER_Handle hObj, int Index, const GUI_BITMAP_STREAM * pBitmap);
void HEADER_SetStreamedBitmapEx(HEADER_Handle hObj, int Index, const GUI_BITMAP_STREAM * pBitmap, int x, int y);
void HEADER_SetTextColor (HEADER_Handle hObj, GUI_COLOR Color);
/*********************************************************************
*
* Cursor
*
**********************************************************************
*/
extern const GUI_CURSOR GUI_CursorHeaderM;
extern const GUI_CURSOR GUI_CursorHeaderMI;
#endif /* if GUI_WINSUPPORT */
#endif /* HEADER_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -