docs
Loading...
Searching...
No Matches
CAPI_Geometry.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * This file is a part of Ultralight. *
3 * *
4 * See <https://ultralig.ht> for licensing and more. *
5 * *
6 * (C) 2024 Ultralight, Inc. *
7 **************************************************************************************************/
8
9///
10/// @file CAPI_Geometry.h
11///
12/// Geometry utilities.
13///
14/// `#include <Ultralight/CAPI/CAPI_Geometry.h>`
15///
16/// This file defines the C API for various geometry utilities.
17///
18#ifndef ULTRALIGHT_CAPI_GEOMETRY_H
19#define ULTRALIGHT_CAPI_GEOMETRY_H
20
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/******************************************************************************
28 * Rect
29 *****************************************************************************/
30
31///
32/// Whether or not a ULRect is empty (all members equal to 0)
33///
35
36///
37/// Create an empty ULRect (all members equal to 0)
38///
40
41/******************************************************************************
42 * IntRect
43 *****************************************************************************/
44
45///
46/// Whether or not a ULIntRect is empty (all members equal to 0)
47///
49
50///
51/// Create an empty ULIntRect (all members equal to 0)
52///
54
55#ifdef __cplusplus
56} // extern "C"
57#endif
58
59#endif // ULTRALIGHT_CAPI_GEOMETRY_H
Various defines and utility functions for the C API.
#define ULExport
Definition CAPI_Defines.h:38
ULIntRect ulIntRectMakeEmpty()
Create an empty ULIntRect (all members equal to 0).
bool ulRectIsEmpty(ULRect rect)
Whether or not a ULRect is empty (all members equal to 0).
bool ulIntRectIsEmpty(ULIntRect rect)
Whether or not a ULIntRect is empty (all members equal to 0).
ULRect ulRectMakeEmpty()
Create an empty ULRect (all members equal to 0).
Definition CAPI_Defines.h:257
Definition CAPI_Defines.h:250