2019-12-12 14:28:32 +00:00
|
|
|
#ifndef _INCLUDE_SGUI_MENU_H_
|
|
|
|
#define _INCLUDE_SGUI_MENU_H_
|
|
|
|
//=======================================================================//
|
|
|
|
//= Include files. =//
|
|
|
|
//=======================================================================//
|
|
|
|
#include "SGUI_Common.h"
|
|
|
|
#include "SGUI_Basic.h"
|
|
|
|
#include "SGUI_Text.h"
|
|
|
|
#include "SGUI_ItemsBase.h"
|
|
|
|
//=======================================================================//
|
|
|
|
//= Data type definition. =//
|
|
|
|
//=======================================================================//
|
|
|
|
typedef struct
|
|
|
|
{
|
2019-12-25 15:23:13 +00:00
|
|
|
SGUI_RECT stLayout;
|
2019-12-12 14:28:32 +00:00
|
|
|
SGUI_ITEMS_BASE stItems;
|
|
|
|
const SGUI_FONT_RES* pstFontRes;
|
|
|
|
}SGUI_MENU_STRUCT;
|
|
|
|
|
|
|
|
//=======================================================================//
|
|
|
|
//= Public function declaration. =//
|
|
|
|
//=======================================================================//
|
2020-02-29 13:39:18 +00:00
|
|
|
void SGUI_Menu_Initialize(SGUI_MENU_STRUCT* pstObj, const SGUI_FONT_RES* pstFontRes, const SGUI_RECT* cpstLayout, SGUI_ITEMS_ITEM* pstItemsData, SGUI_INT iItemsCount);
|
2019-12-12 14:28:32 +00:00
|
|
|
void SGUI_Menu_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_MENU_STRUCT* pstObj);
|
2020-02-29 13:39:18 +00:00
|
|
|
void SGUI_Menu_Layout(SGUI_MENU_STRUCT* pstObj, const SGUI_RECT* pstNewLayout);
|
|
|
|
void SGUI_Menu_PopupSubMenu(SGUI_SCR_DEV* pstDeviceIF, SGUI_MENU_STRUCT* pstObj, const SGUI_RECT* cpstParentLayout);
|
2019-12-12 14:28:32 +00:00
|
|
|
|
|
|
|
#endif // _INCLUDE_SGUI_MENU_H_
|