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 /** Button Management (Button) */
19 /** */
20 /**************************************************************************/
21
22 #define GX_SOURCE_CODE
23
24
25 /* Include necessary system files. */
26
27 #include "gx_api.h"
28 #include "gx_widget.h"
29 #include "gx_pixelmap_prompt.h"
30 #include "gx_system.h"
31
32 /* Bring in externs for caller checking code. */
33 GX_CALLER_CHECKING_EXTERNS
34 /**************************************************************************/
35 /* */
36 /* FUNCTION RELEASE */
37 /* */
38 /* _gxe_pixelmap_prompt_pixelmap_set PORTABLE C */
39 /* 6.1 */
40 /* AUTHOR */
41 /* */
42 /* Kenneth Maxwell, Microsoft Corporation */
43 /* */
44 /* DESCRIPTION */
45 /* */
46 /* This function checks for errors in the pixelmap prompt pixelmap */
47 /* set function call. */
48 /* */
49 /* INPUT */
50 /* */
51 /* prompt Prompt control block */
52 /* normal_left_id Left pixelmap ID */
53 /* normal_fill_id Fill pixelmap ID */
54 /* normal_right_id Right pixelmap ID */
55 /* selected_left_id Left pixelmap ID */
56 /* selected_fill_id Fill pixelmap ID */
57 /* selected_right_id Right pixelmap ID */
58 /* */
59 /* OUTPUT */
60 /* */
61 /* status Completion status */
62 /* */
63 /* CALLS */
64 /* */
65 /* _gx_pixelmap_prompt_pixelmap_set Actual pixelmap prompt */
66 /* pixelmap set function */
67 /* */
68 /* CALLED BY */
69 /* */
70 /* Application Code */
71 /* */
72 /* RELEASE HISTORY */
73 /* */
74 /* DATE NAME DESCRIPTION */
75 /* */
76 /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */
77 /* 09-30-2020 Kenneth Maxwell Modified comment(s), */
78 /* resulting in version 6.1 */
79 /* */
80 /**************************************************************************/
_gxe_pixelmap_prompt_pixelmap_set(GX_PIXELMAP_PROMPT * prompt,GX_RESOURCE_ID normal_left_id,GX_RESOURCE_ID normal_fill_id,GX_RESOURCE_ID normal_right_id,GX_RESOURCE_ID selected_left_id,GX_RESOURCE_ID selected_fill_id,GX_RESOURCE_ID selected_right_id)81 UINT _gxe_pixelmap_prompt_pixelmap_set(GX_PIXELMAP_PROMPT *prompt,
82 GX_RESOURCE_ID normal_left_id,
83 GX_RESOURCE_ID normal_fill_id,
84 GX_RESOURCE_ID normal_right_id,
85 GX_RESOURCE_ID selected_left_id,
86 GX_RESOURCE_ID selected_fill_id,
87 GX_RESOURCE_ID selected_right_id)
88 {
89 UINT status;
90
91 /* Check for invalid caller. */
92 GX_INIT_AND_THREADS_CALLER_CHECKING
93
94 if (!prompt)
95 {
96 return(GX_PTR_ERROR);
97 }
98
99 status = _gx_pixelmap_prompt_pixelmap_set(prompt,
100 normal_left_id,
101 normal_fill_id,
102 normal_right_id,
103 selected_left_id,
104 selected_fill_id,
105 selected_right_id);
106
107 return(status);
108 }
109
110