GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: gxe_multi_line_text_view_text_color_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
/**   Multi Line Text View Managment (Multi Line Text View)               */
19
/**                                                                       */
20
/**************************************************************************/
21
22
#define GX_SOURCE_CODE
23
24
25
/* Include necessary system files.  */
26
27
#include "gx_api.h"
28
#include "gx_system.h"
29
#include "gx_multi_line_text_view.h"
30
31
GX_CALLER_CHECKING_EXTERNS
32
/**************************************************************************/
33
/*                                                                        */
34
/*  FUNCTION                                               RELEASE        */
35
/*                                                                        */
36
/*    _gxe_multi_line_text_view_text_color_set            PORTABLE C      */
37
/*                                                           6.1          */
38
/*  AUTHOR                                                                */
39
/*                                                                        */
40
/*    Kenneth Maxwell, Microsoft Corporation                              */
41
/*                                                                        */
42
/*  DESCRIPTION                                                           */
43
/*                                                                        */
44
/*    This function checks for errors in the multi line text view text    */
45
/*    color set function call.                                            */
46
/*                                                                        */
47
/*                                                                        */
48
/*  INPUT                                                                 */
49
/*                                                                        */
50
/*    view                                  Pointer to multi line text    */
51
/*                                            view control block          */
52
/*    normal_text_color_id                  Resource ID of the normal     */
53
/*                                             text color                 */
54
/*    selected_text_color_id                Resource ID of the selected   */
55
/*                                             text color                 */
56
/*    disabled_text_color_id                Resource ID of the disabled   */
57
/*                                             text color                 */
58
/*                                                                        */
59
/*  OUTPUT                                                                */
60
/*                                                                        */
61
/*    status                                Completion status             */
62
/*                                                                        */
63
/*  CALLS                                                                 */
64
/*                                                                        */
65
/*    _gx_multi_line_text_view_text_color_set                             */
66
/*                                          Actual multi line text view   */
67
/*                                            text color set function     */
68
/*                                                                        */
69
/*  CALLED BY                                                             */
70
/*                                                                        */
71
/*    Application Code                                                    */
72
/*                                                                        */
73
/**************************************************************************/
74
2396
UINT  _gxe_multi_line_text_view_text_color_set(GX_MULTI_LINE_TEXT_VIEW *view,
75
                                               GX_RESOURCE_ID normal_text_color_id,
76
                                               GX_RESOURCE_ID selected_text_color_id,
77
                                               GX_RESOURCE_ID disabled_text_color_id)
78
{
79
UINT status;
80
81
    /* Check for invalid caller.  */
82

2396
    GX_INIT_AND_THREADS_CALLER_CHECKING
83
84
2394
    if (!view)
85
    {
86
2
        return(GX_PTR_ERROR);
87
    }
88
89
2392
    status = _gx_multi_line_text_view_text_color_set(view, normal_text_color_id, selected_text_color_id, disabled_text_color_id);
90
91
2392
    return(status);
92
}
93