/**************************************************************************/ /* */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* */ /* This software is licensed under the Microsoft Software License */ /* Terms for Microsoft Azure RTOS. Full text of the license can be */ /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */ /* and in the root directory of this software. */ /* */ /**************************************************************************/ /**************************************************************************/ /**************************************************************************/ /** */ /** GUIX Component */ /** */ /** Widget Management (Widget) */ /** */ /**************************************************************************/ #define GX_SOURCE_CODE /* Include necessary system files. */ #include "gx_api.h" #include "gx_widget.h" /**************************************************************************/ /* */ /* FUNCTION RELEASE */ /* */ /* _gxe_widget_top_visible_child_find PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ /* Kenneth Maxwell, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This function checks for errors in the */ /* gx_widget_top_visible_child_find function call. */ /* */ /* INPUT */ /* */ /* parent Pointer to parent widget to */ /* start search from */ /* return_widget Pointer to destination for */ /* found widget */ /* */ /* OUTPUT */ /* */ /* status Completion status */ /* */ /* CALLS */ /* */ /* _gx_widget_top_visible_child_find Actual */ /* widget_previous_sibling_get */ /* function. */ /* */ /* CALLED BY */ /* */ /* Application Code */ /* */ /* RELEASE HISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ /* 09-30-2020 Kenneth Maxwell Modified comment(s), */ /* resulting in version 6.1 */ /* */ /**************************************************************************/ UINT _gxe_widget_top_visible_child_find(GX_WIDGET *parent, GX_WIDGET **return_widget) { UINT status; /* Check for invalid input pointers. */ if ((parent == GX_NULL) || (return_widget == GX_NULL)) { return(GX_PTR_ERROR); } /* Check for invalid widget. */ if (parent -> gx_widget_type == 0) { return(GX_INVALID_WIDGET); } /* Call actual widget find function. */ status = _gx_widget_top_visible_child_find(parent, return_widget); /* Return successful completion. */ return(status); }