GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: gx_utility_rectangle_define.c Lines: 6 6 100.0 %
Date: 2026-03-06 19:21:09 Branches: 0 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
/**   Utility (Utility)                                                   */
19
/**                                                                       */
20
/**************************************************************************/
21
22
#define GX_SOURCE_CODE
23
24
25
/* Include necessary system files.  */
26
27
#include "gx_api.h"
28
#include "gx_utility.h"
29
30
31
/**************************************************************************/
32
/*                                                                        */
33
/*  FUNCTION                                               RELEASE        */
34
/*                                                                        */
35
/*    _gx_utility_rectangle_define                        PORTABLE C      */
36
/*                                                           6.1          */
37
/*  AUTHOR                                                                */
38
/*                                                                        */
39
/*    Kenneth Maxwell, Microsoft Corporation                              */
40
/*                                                                        */
41
/*  DESCRIPTION                                                           */
42
/*                                                                        */
43
/*    This service defines a rectangle as specified.                      */
44
/*                                                                        */
45
/*  INPUT                                                                 */
46
/*                                                                        */
47
/*    rectangle                             Rectangle to define           */
48
/*    left                                  Left most coordinate          */
49
/*    top                                   Top most coordinate           */
50
/*    right                                 Right most coordinate         */
51
/*    bottom                                Bottom most coordinate        */
52
/*                                                                        */
53
/*  OUTPUT                                                                */
54
/*                                                                        */
55
/*    None                                                                */
56
/*                                                                        */
57
/*  CALLS                                                                 */
58
/*                                                                        */
59
/*    None                                                                */
60
/*                                                                        */
61
/*  CALLED BY                                                             */
62
/*                                                                        */
63
/*    Application Code                                                    */
64
/*    GUIX Internal Code                                                  */
65
/*                                                                        */
66
/**************************************************************************/
67
9745478
UINT  _gx_utility_rectangle_define(GX_RECTANGLE *rectangle, GX_VALUE left,
68
                                   GX_VALUE top, GX_VALUE right, GX_VALUE bottom)
69
{
70
71
9745478
    rectangle -> gx_rectangle_left =    left;
72
9745478
    rectangle -> gx_rectangle_top =     top;
73
9745478
    rectangle -> gx_rectangle_right =   right;
74
9745478
    rectangle -> gx_rectangle_bottom =  bottom;
75
9745478
    return GX_SUCCESS;
76
}
77