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 /** Window Management (Window) */
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_window.h"
30
31 /**************************************************************************/
32 /* */
33 /* FUNCTION RELEASE */
34 /* */
35 /* _gx_next_client_child_get PORTABLE C */
36 /* 6.1 */
37 /* AUTHOR */
38 /* */
39 /* Kenneth Maxwell, Microsoft Corporation */
40 /* */
41 /* DESCRIPTION */
42 /* */
43 /* This function get the next client child. */
44 /* */
45 /* INPUT */
46 /* */
47 /* start Pointer to starting widget */
48 /* */
49 /* OUTPUT */
50 /* */
51 /* child Next client child */
52 /* */
53 /* CALLS */
54 /* */
55 /* None */
56 /* */
57 /* CALLED BY */
58 /* */
59 /* _gx_drop_list_event_process */
60 /* _gx_horizontal_list_event_process */
61 /* _gx_horizontal_list_left_wrap */
62 /* _gx_horizontal_list_right_wrap */
63 /* _gx_horizontal_list_scroll_info_get */
64 /* _gx_horizontal_list_slide_back_check */
65 /* _gx_vertical_list_down_wrap */
66 /* _gx_vertical_list_event_process */
67 /* _gx_vertical_list_scroll_info_get */
68 /* _gx_vertical_list_slide_back_check */
69 /* _gx_vertical_list_up_wrap */
70 /* */
71 /* RELEASE HISTORY */
72 /* */
73 /* DATE NAME DESCRIPTION */
74 /* */
75 /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */
76 /* 09-30-2020 Kenneth Maxwell Modified comment(s), */
77 /* resulting in version 6.1 */
78 /* */
79 /**************************************************************************/
_gx_widget_next_client_child_get(GX_WIDGET * start)80 GX_WIDGET *_gx_widget_next_client_child_get(GX_WIDGET *start)
81 {
82 GX_WIDGET *child = start -> gx_widget_next;
83
84 while (child)
85 {
86 if (!(child -> gx_widget_status & GX_STATUS_NONCLIENT))
87 {
88 break;
89 }
90 child = child -> gx_widget_next;
91 }
92 return child;
93 }
94
95 /**************************************************************************/
96 /* */
97 /* FUNCTION RELEASE */
98 /* */
99 /* _gx_widget_next_visible_client_child_get PORTABLE C */
100 /* 6.1.7 */
101 /* AUTHOR */
102 /* */
103 /* Ting Zhu, Microsoft Corporation */
104 /* */
105 /* DESCRIPTION */
106 /* */
107 /* This function get the next client child that is visible. */
108 /* */
109 /* INPUT */
110 /* */
111 /* start Pointer to starting widget */
112 /* */
113 /* OUTPUT */
114 /* */
115 /* child Next visible client child */
116 /* */
117 /* CALLS */
118 /* */
119 /* None */
120 /* */
121 /* CALLED BY */
122 /* */
123 /* GUIX Internal Code */
124 /* */
125 /* RELEASE HISTORY */
126 /* */
127 /* DATE NAME DESCRIPTION */
128 /* */
129 /* 06-02-2021 Ting Zhu Initial Version 6.1.7 */
130 /* */
131 /**************************************************************************/
_gx_widget_next_visible_client_child_get(GX_WIDGET * start)132 GX_WIDGET *_gx_widget_next_visible_client_child_get(GX_WIDGET *start)
133 {
134 GX_WIDGET *child = start -> gx_widget_next;
135
136 while (child)
137 {
138 if (!(child -> gx_widget_status & GX_STATUS_NONCLIENT) &&
139 (child -> gx_widget_status & GX_STATUS_VISIBLE))
140 {
141
142 /* Find the next child that is client and visible. */
143 return child;
144 }
145 child = child -> gx_widget_next;
146 }
147 return GX_NULL;
148 }
149
150