GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: gxe_system_scroll_appearance_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
/**   System Management (System)                                          */
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
30
/* Bring in externs for caller checking code.  */
31
GX_CALLER_CHECKING_EXTERNS
32
33
/**************************************************************************/
34
/*                                                                        */
35
/*  FUNCTION                                               RELEASE        */
36
/*                                                                        */
37
/*    _gxe_system_scroll_appearance_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 system scroll appearance set     */
46
/*      call.                                                             */
47
/*                                                                        */
48
/*  INPUT                                                                 */
49
/*                                                                        */
50
/*    style                                 Scrollbar style               */
51
/*                                            GX_SCROLLBAR_HORIZONTAL or  */
52
/*                                            GX_SCROLLBAR_VERTICAL       */
53
/*    appearance                            Pointer to appearance         */
54
/*                                            structure initialized with  */
55
/*                                            various scrollbar           */
56
/*                                            appearance attributes.      */
57
/*                                                                        */
58
/*  OUTPUT                                                                */
59
/*                                                                        */
60
/*    status                                Completion status             */
61
/*                                                                        */
62
/*  CALLS                                                                 */
63
/*                                                                        */
64
/*    _gx_system_scroll_appearance_set      Actual system scroll          */
65
/*                                            appearance call.            */
66
/*                                                                        */
67
/*  CALLED BY                                                             */
68
/*                                                                        */
69
/*    Application Code                                                    */
70
/*                                                                        */
71
/**************************************************************************/
72
1420
UINT _gxe_system_scroll_appearance_set(ULONG style, GX_SCROLLBAR_APPEARANCE *appearance)
73
{
74
UINT status;
75
76
    /* Check for invalid caller.  */
77

1420
    GX_INIT_AND_THREADS_CALLER_CHECKING
78
79
    /* Check for invalid pointer.  */
80
1418
    if (appearance == GX_NULL)
81
    {
82
2
        return(GX_PTR_ERROR);
83
    }
84
85
86
    /* Call actual system scroll appearance get.  */
87
1416
    status = _gx_system_scroll_appearance_set(style, appearance);
88
89
    /* Return status.  */
90
1416
    return(status);
91
}
92