1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef C_INCLUDE_DRAWING_SHADOW_LAYER_H 17 #define C_INCLUDE_DRAWING_SHADOW_LAYER_H 18 19 /** 20 * @addtogroup Drawing 21 * @{ 22 * 23 * @brief Provides functions such as 2D graphics rendering, text drawing, and image display. 24 * 25 * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing 26 * 27 * @since 8 28 * @version 1.0 29 */ 30 31 /** 32 * @file drawing_shadow_layer.h 33 * 34 * @brief Declares functions related to the <b>ShadowLayer</b> object in the drawing module. 35 * 36 * @library libnative_drawing.so 37 * @since 12 38 * @version 1.0 39 */ 40 41 #include "drawing_types.h" 42 43 #ifdef __cplusplus 44 extern "C" { 45 #endif 46 47 /** 48 * @brief Creates an <b>OH_Drawing_ShadowLayer</b> object. 49 * 50 * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing 51 * @param blurRadius Indicates the blur radius of the shadow. 52 * @param x Indicates the offset point on x-axis. 53 * @param y Indicates the offset point on y-axis. 54 * @param color Indicates the shadow color. 55 * @return Returns the pointer to the <b>OH_Drawing_ShadowLayer</b> object created. 56 * @since 12 57 * @version 1.0 58 */ 59 OH_Drawing_ShadowLayer* OH_Drawing_ShadowLayerCreate(float blurRadius, float x, float y, uint32_t color); 60 61 /** 62 * @brief Destroys an <b>OH_Drawing_ShadowLayer</b> object and reclaims the memory occupied by the object. 63 * 64 * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing 65 * @param OH_Drawing_ShadowLayer Indicates the pointer to an <b>OH_Drawing_ShadowLayer</b> object. 66 * @since 12 67 * @version 1.0 68 */ 69 void OH_Drawing_ShadowLayerDestroy(OH_Drawing_ShadowLayer*); 70 71 #ifdef __cplusplus 72 } 73 #endif 74 /** @} */ 75 #endif 76