/************************************************************************************************** * This file is a part of Ultralight, an ultra-portable web-browser engine. * * * * See for licensing and more. * * * * (C) 2024 Ultralight, Inc. * **************************************************************************************************/ /// /// @file CAPI_Geometry.h /// /// Geometry utilities. /// /// `#include ` /// /// This file defines the C API for various geometry utilities. /// #ifndef ULTRALIGHT_CAPI_GEOMETRY_H #define ULTRALIGHT_CAPI_GEOMETRY_H #include #ifdef __cplusplus extern "C" { #endif /****************************************************************************** * Rect *****************************************************************************/ /// /// Whether or not a ULRect is empty (all members equal to 0) /// ULExport bool ulRectIsEmpty(ULRect rect); /// /// Create an empty ULRect (all members equal to 0) /// ULExport ULRect ulRectMakeEmpty(); /****************************************************************************** * IntRect *****************************************************************************/ /// /// Whether or not a ULIntRect is empty (all members equal to 0) /// ULExport bool ulIntRectIsEmpty(ULIntRect rect); /// /// Create an empty ULIntRect (all members equal to 0) /// ULExport ULIntRect ulIntRectMakeEmpty(); #ifdef __cplusplus } // extern "C" #endif #endif // ULTRALIGHT_CAPI_GEOMETRY_H