2018-08-15 14:51:24 +00:00
|
|
|
#ifndef __INCLUDE_SGUI_List_H__
|
|
|
|
#define __INCLUDE_SGUI_List_H__
|
2017-08-02 14:24:26 +00:00
|
|
|
//=======================================================================//
|
|
|
|
//= Include files. =//
|
|
|
|
//=======================================================================//
|
|
|
|
#include "SGUI_Common.h"
|
|
|
|
#include "SGUI_Basic.h"
|
|
|
|
#include "SGUI_Text.h"
|
|
|
|
#include "SGUI_ScrollBar.h"
|
2019-12-09 14:11:37 +00:00
|
|
|
#include "SGUI_ItemsBase.h"
|
2017-08-02 14:24:26 +00:00
|
|
|
|
|
|
|
//=======================================================================//
|
|
|
|
//= Data type definition. =//
|
|
|
|
//=======================================================================//
|
|
|
|
typedef struct
|
|
|
|
{
|
2019-12-25 15:23:13 +00:00
|
|
|
SGUI_RECT stLayout;
|
2019-12-09 14:11:37 +00:00
|
|
|
SGUI_ITEMS_BASE stItems;
|
|
|
|
SGUI_CSZSTR szTitle;
|
2019-12-10 15:04:51 +00:00
|
|
|
SGUI_SCROLLBAR_STRUCT stScrollBar;
|
2019-12-09 14:11:37 +00:00
|
|
|
const SGUI_FONT_RES* pstFontRes;
|
2019-12-12 14:28:32 +00:00
|
|
|
}SGUI_LIST_STRUCT;
|
2017-08-02 14:24:26 +00:00
|
|
|
|
|
|
|
//=======================================================================//
|
|
|
|
//= Public function declaration. =//
|
|
|
|
//=======================================================================//
|
2019-12-25 15:23:13 +00:00
|
|
|
void SGUI_List_Initialize(SGUI_LIST_STRUCT* pstObj, const SGUI_FONT_RES* pstFontRes, SGUI_ITEMS_ITEM* pstItemsData, SGUI_INT iItemsCount);
|
2019-12-12 14:28:32 +00:00
|
|
|
void SGUI_List_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_LIST_STRUCT* pstObj);
|
2017-08-02 14:24:26 +00:00
|
|
|
|
2018-08-15 14:51:24 +00:00
|
|
|
#endif // __INCLUDE_SGUI_List_H__
|