/*************************************************************************** * Copyright (c) 2024 Microsoft Corporation * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ /**************************************************************************/ /** */ /** GUIX Component */ /** */ /** Radial Slider Management (Slider) */ /** */ /**************************************************************************/ #define GX_SOURCE_CODE /* Include necessary system files. */ #include "gx_api.h" #include "gx_system.h" #include "gx_radial_slider.h" /**************************************************************************/ /* */ /* FUNCTION RELEASE */ /* */ /* _gx_radial_slider_pixelmap_set PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ /* Kenneth Maxwell, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This function sets background and needle pixelmap for radial slider.*/ /* */ /* INPUT */ /* */ /* slider Radial slider control block */ /* background_pixelmap Resource id of background */ /* pixelmap */ /* needle_pixelmap Resource id of needle pixelmap*/ /* */ /* OUTPUT */ /* */ /* status Completion status */ /* */ /* CALLS */ /* */ /* _gx_system_dirty_mark Mark widget as dirty */ /* */ /* 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 _gx_radial_slider_pixelmap_set(GX_RADIAL_SLIDER *slider, GX_RESOURCE_ID background_pixelmap, GX_RESOURCE_ID needle_pixelmap) { /* Copy the new info. */ slider -> gx_radial_slider_info.gx_radial_slider_info_background_pixelmap = background_pixelmap; slider -> gx_radial_slider_info.gx_radial_slider_info_needle_pixelmap = needle_pixelmap; if (slider -> gx_widget_status & GX_STATUS_VISIBLE) { /* Mark the widget area as dirty. */ _gx_system_dirty_mark((GX_WIDGET *)slider); } return(GX_SUCCESS); }