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