1 /**************************************************************************/ 2 /* */ 3 /* Copyright (c) Microsoft Corporation. All rights reserved. */ 4 /* */ 5 /* This software is licensed under the Microsoft Software License */ 6 /* Terms for Microsoft Azure RTOS. Full text of the license can be */ 7 /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */ 8 /* and in the root directory of this software. */ 9 /* */ 10 /**************************************************************************/ 11 12 13 /**************************************************************************/ 14 /**************************************************************************/ 15 /** */ 16 /** GUIX Component */ 17 /** */ 18 /** Window Management (Window) */ 19 /** */ 20 /**************************************************************************/ 21 /**************************************************************************/ 22 23 24 /**************************************************************************/ 25 /* */ 26 /* COMPONENT DEFINITION RELEASE */ 27 /* */ 28 /* gx_drop_list.h PORTABLE C */ 29 /* 6.1 */ 30 /* AUTHOR */ 31 /* */ 32 /* Kenneth Maxwell, Microsoft Corporation */ 33 /* */ 34 /* DESCRIPTION */ 35 /* */ 36 /* This file defines the GUIX window management component, */ 37 /* including all data types and external references. It is assumed */ 38 /* that gx_api.h and gx_port.h have already been included. */ 39 /* */ 40 /* RELEASE HISTORY */ 41 /* */ 42 /* DATE NAME DESCRIPTION */ 43 /* */ 44 /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ 45 /* 09-30-2020 Kenneth Maxwell Modified comment(s), */ 46 /* resulting in version 6.1 */ 47 /* */ 48 /**************************************************************************/ 49 50 #ifndef GX_DROP_LIST_H 51 #define GX_DROP_LIST_H 52 53 /* Define drop list management function prototypes. */ 54 UINT _gx_drop_list_close(GX_DROP_LIST *drop_list); 55 UINT _gx_drop_list_create(GX_DROP_LIST *drop_list, GX_CONST GX_CHAR *name, 56 GX_WIDGET *parent, INT total_rows, INT open_height, 57 VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT), 58 ULONG style, USHORT drop_list_id, GX_CONST GX_RECTANGLE *size); 59 VOID _gx_drop_list_draw(GX_DROP_LIST *box); 60 VOID _gx_drop_list_background_draw(GX_DROP_LIST *drop_list); 61 UINT _gx_drop_list_event_process(GX_DROP_LIST *widget, GX_EVENT *event_ptr); 62 UINT _gx_drop_list_open(GX_DROP_LIST *list); 63 UINT _gx_drop_list_pixelmap_set(GX_DROP_LIST *drop_list, GX_RESOURCE_ID pixelmap_id); 64 UINT _gx_drop_list_popup_get(GX_DROP_LIST *box, GX_VERTICAL_LIST **return_list); 65 66 67 UINT _gxe_drop_list_close(GX_DROP_LIST *drop_list); 68 UINT _gxe_drop_list_create(GX_DROP_LIST *drop_list, GX_CONST GX_CHAR *name, 69 GX_WIDGET *parent, INT total_rows, INT open_height, 70 VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT), 71 ULONG style, USHORT drop_list_id, GX_CONST GX_RECTANGLE *size, UINT drop_list_control_block_size); 72 UINT _gxe_drop_list_event_process(GX_DROP_LIST *widget, GX_EVENT *event_ptr); 73 UINT _gxe_drop_list_open(GX_DROP_LIST *list); 74 UINT _gxe_drop_list_pixelmap_set(GX_DROP_LIST *drop_list, GX_RESOURCE_ID pixelmap_id); 75 UINT _gxe_drop_list_popup_get(GX_DROP_LIST *box, GX_VERTICAL_LIST **return_list); 76 77 #endif 78 79