1 /*************************************************************************** 2 * Copyright (c) 2024 Microsoft Corporation 3 * 4 * This program and the accompanying materials are made available under the 5 * terms of the MIT License which is available at 6 * https://opensource.org/licenses/MIT. 7 * 8 * SPDX-License-Identifier: MIT 9 **************************************************************************/ 10 11 12 /**************************************************************************/ 13 /**************************************************************************/ 14 /** */ 15 /** GUIX Component */ 16 /** */ 17 /** Icon Management (Icon) */ 18 /** */ 19 /**************************************************************************/ 20 /**************************************************************************/ 21 22 23 /**************************************************************************/ 24 /* */ 25 /* COMPONENT DEFINITION RELEASE */ 26 /* */ 27 /* gx_icon.h PORTABLE C */ 28 /* 6.1 */ 29 /* AUTHOR */ 30 /* */ 31 /* Kenneth Maxwell, Microsoft Corporation */ 32 /* */ 33 /* DESCRIPTION */ 34 /* */ 35 /* This file defines the GUIX icon management component, */ 36 /* including all data types and external references. It is assumed */ 37 /* that gx_api.h and gx_port.h have already been included. */ 38 /* */ 39 /* RELEASE HISTORY */ 40 /* */ 41 /* DATE NAME DESCRIPTION */ 42 /* */ 43 /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ 44 /* 09-30-2020 Kenneth Maxwell Modified comment(s), */ 45 /* resulting in version 6.1 */ 46 /* */ 47 /**************************************************************************/ 48 49 #ifndef GX_ICON_H 50 #define GX_ICON_H 51 52 53 /* Define button management function prototypes. */ 54 55 VOID _gx_icon_background_draw(GX_ICON *icon); 56 UINT _gx_icon_create(GX_ICON *icon, GX_CONST GX_CHAR *name, GX_WIDGET *parent, 57 GX_RESOURCE_ID pixelmap_id, 58 ULONG style, USHORT icon_id, GX_VALUE x, GX_VALUE y); 59 VOID _gx_icon_draw(GX_ICON *icon); 60 UINT _gx_icon_event_process(GX_ICON *icon, GX_EVENT *event_ptr); 61 62 UINT _gx_icon_pixelmap_set(GX_ICON *icon, GX_RESOURCE_ID normal_id, GX_RESOURCE_ID selected_id); 63 VOID _gx_icon_pixelmap_update(GX_ICON *icon); 64 65 /* Define error checking shells for API services. These are only referenced by the 66 application. */ 67 68 69 UINT _gxe_icon_create(GX_ICON *icon, GX_CONST GX_CHAR *name, GX_WIDGET *parent, GX_RESOURCE_ID pixelmap_id, 70 ULONG style, USHORT icon_id, GX_VALUE x, GX_VALUE y, UINT icon_control_block_size); 71 UINT _gxe_icon_event_process(GX_ICON *button, GX_EVENT *event_ptr); 72 UINT _gxe_icon_pixelmap_set(GX_ICON *icon, GX_RESOURCE_ID normal_id, GX_RESOURCE_ID selected_id); 73 74 #endif 75 76