1 /**************************************************************************/
2 /* */
3 /* Copyright (c) Microsoft Corporation. All rights reserved. */
4 /* */
5 /* This software is licensed under the Microsoft Software License */
6 /* Terms for Microsoft Azure RTOS. Full text of the license can be */
7 /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
8 /* and in the root directory of this software. */
9 /* */
10 /**************************************************************************/
11
12
13 /**************************************************************************/
14 /**************************************************************************/
15 /** */
16 /** GUIX Component */
17 /** */
18 /** Horizontal List (List) */
19 /** */
20 /**************************************************************************/
21
22 #define GX_SOURCE_CODE
23
24
25 /* Include necessary system files. */
26
27 #include "gx_api.h"
28 #include "gx_window.h"
29
30 GX_CALLER_CHECKING_EXTERNS
31
32 /**************************************************************************/
33 /* */
34 /* FUNCTION RELEASE */
35 /* */
36 /* _gx_horizontal_list_total_columns_set PORTABLE C */
37 /* 6.1 */
38 /* AUTHOR */
39 /* */
40 /* Kenneth Maxwell, Microsoft Corporation */
41 /* */
42 /* DESCRIPTION */
43 /* */
44 /* This function scrolls down the vertical list. */
45 /* */
46 /* INPUT */
47 /* */
48 /* vertical_list Vertical list widget control */
49 /* block */
50 /* */
51 /* OUTPUT */
52 /* */
53 /* None */
54 /* */
55 /* CALLS */
56 /* */
57 /* */
58 /* CALLED BY */
59 /* */
60 /* GUIX Internal Code */
61 /* */
62 /* RELEASE HISTORY */
63 /* */
64 /* DATE NAME DESCRIPTION */
65 /* */
66 /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */
67 /* 09-30-2020 Kenneth Maxwell Modified comment(s), */
68 /* resulting in version 6.1 */
69 /* */
70 /**************************************************************************/
_gxe_horizontal_list_total_columns_set(GX_HORIZONTAL_LIST * list,INT count)71 UINT _gxe_horizontal_list_total_columns_set(GX_HORIZONTAL_LIST *list, INT count)
72 {
73 UINT status;
74
75 /* Check for appropriate caller. */
76 GX_INIT_AND_THREADS_CALLER_CHECKING
77
78 if (list == GX_NULL)
79 {
80 return GX_PTR_ERROR;
81 }
82
83 if (count < 0)
84 {
85 return GX_INVALID_VALUE;
86 }
87
88 status = _gx_horizontal_list_total_columns_set(list, count);
89 return status;
90 }
91
92