📄 gui_array.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 : GUI_Array.h
Purpose : Array handling routines
---------------------------END-OF-HEADER------------------------------
*/
#ifndef GUIARRAY_H
#define GUIARRAY_H
#include "WM_Intern.h"
#if GUI_WINSUPPORT
typedef struct {
I16 NumItems;
WM_HMEM haHandle; /* Handle to buffer holding handles */
} GUI_ARRAY;
int GUI_ARRAY_GetNumItems (const GUI_ARRAY* pThis);
int GUI_ARRAY_AddItem (GUI_ARRAY* pThis, const void *pNew, int Len);
WM_HMEM GUI_ARRAY_GethItem (GUI_ARRAY* pThis, int Index);
void GUI_ARRAY_Delete (GUI_ARRAY* pThis);
/* Optional methods */
void* GUI_ARRAY_GetpItem (GUI_ARRAY* pThis, int Index);
int GUI_ARRAY_SetItem (GUI_ARRAY* pThis, const void *pNew, int Len, int Index);
void GUI_ARRAY_DeleteItem (GUI_ARRAY* pThis, int Index);
int GUI_ARRAY_InsertItem(GUI_ARRAY* pThis, const void *pNew, int Len, int Index);
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -