/*
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef C_INCLUDE_DRAWING_RECT_H
#define C_INCLUDE_DRAWING_RECT_H
/**
* @addtogroup Drawing
* @{
*
* @brief Provides functions such as 2D graphics rendering, text drawing, and image display.
*
* @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
*
* @since 11
* @version 1.0
*/
/**
* @file drawing_rect.h
*
* @brief Declares functions related to the rect object in the drawing module.
*
* @since 11
* @version 1.0
*/
#include "drawing_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Creates an OH_Drawing_Rect object.
*
* @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
* @param left Indicates the left position of the rect.
* @param top Indicates the top position of the rect.
* @param right Indicates the right position of the rect.
* @param bottom Indicates the bottom position of the rect.
* @return Returns the pointer to the OH_Drawing_Rect object created.
* @since 11
* @version 1.0
*/
OH_Drawing_Rect* OH_Drawing_RectCreate(float left, float top, float right, float bottom);
/**
* @brief Destroys an OH_Drawing_Rect object and reclaims the memory occupied by the object.
*
* @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
* @param OH_Drawing_Rect Indicates the pointer to an OH_Drawing_Rect object.
* @since 11
* @version 1.0
*/
void OH_Drawing_RectDestroy(OH_Drawing_Rect*);
#ifdef __cplusplus
}
#endif
/** @} */
#endif