GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: gxe_pixelmap_prompt_pixelmap_set.c Lines: 6 6 100.0 %
Date: 2026-03-06 19:21:09 Branches: 8 8 100.0 %

Line Branch Exec Source
1
/***************************************************************************
2
 * Copyright (c) 2024 Microsoft Corporation
3
 * Copyright (c) 2026-present Eclipse ThreadX contributors
4
 *
5
 * This program and the accompanying materials are made available under the
6
 * terms of the MIT License which is available at
7
 * https://opensource.org/licenses/MIT.
8
 *
9
 * SPDX-License-Identifier: MIT
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
/**************************************************************************/
73
13770
UINT  _gxe_pixelmap_prompt_pixelmap_set(GX_PIXELMAP_PROMPT *prompt,
74
                                        GX_RESOURCE_ID normal_left_id,
75
                                        GX_RESOURCE_ID normal_fill_id,
76
                                        GX_RESOURCE_ID normal_right_id,
77
                                        GX_RESOURCE_ID selected_left_id,
78
                                        GX_RESOURCE_ID selected_fill_id,
79
                                        GX_RESOURCE_ID selected_right_id)
80
{
81
UINT status;
82
83
    /* Check for invalid caller.  */
84

13770
    GX_INIT_AND_THREADS_CALLER_CHECKING
85
86
13768
    if (!prompt)
87
    {
88
2
        return(GX_PTR_ERROR);
89
    }
90
91
13766
    status = _gx_pixelmap_prompt_pixelmap_set(prompt,
92
                                              normal_left_id,
93
                                              normal_fill_id,
94
                                              normal_right_id,
95
                                              selected_left_id,
96
                                              selected_fill_id,
97
                                              selected_right_id);
98
99
13766
    return(status);
100
}
101