docs
Loading...
Searching...
No Matches
CAPI_Geometry.h
Go to the documentation of this file.
1///
2/// Copyright (C) 2026 Ultralight, Inc. All rights reserved.
3/// A license is required for commercial use. https://ultralig.ht
4///
5
6///
7/// @file CAPI_Geometry.h
8///
9/// Geometry utilities.
10///
11/// `#include <Ultralight/CAPI/CAPI_Geometry.h>`
12///
13/// This file defines the C API for various geometry utilities.
14///
15#ifndef ULTRALIGHT_CAPI_GEOMETRY_H
16#define ULTRALIGHT_CAPI_GEOMETRY_H
17
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/******************************************************************************
25 * Rect
26 *****************************************************************************/
27
28///
29/// Whether or not a ULRect is empty (all members equal to 0)
30///
32
33///
34/// Create an empty ULRect (all members equal to 0)
35///
37
38/******************************************************************************
39 * IntRect
40 *****************************************************************************/
41
42///
43/// Whether or not a ULIntRect is empty (all members equal to 0)
44///
46
47///
48/// Create an empty ULIntRect (all members equal to 0)
49///
51
52#ifdef __cplusplus
53} // extern "C"
54#endif
55
56#endif // ULTRALIGHT_CAPI_GEOMETRY_H
bool ulRectIsEmpty(ULRect rect)
Whether or not a ULRect is empty (all members equal to 0).
ULRect ulRectMakeEmpty(void)
Create an empty ULRect (all members equal to 0).
bool ulIntRectIsEmpty(ULIntRect rect)
Whether or not a ULIntRect is empty (all members equal to 0).
ULIntRect ulIntRectMakeEmpty(void)
Create an empty ULIntRect (all members equal to 0).
Various defines and utility functions for the C API.
#define ULExport
Definition CAPI_Defines.h:42
Integer rectangle defined by left, top, right, and bottom coordinates.
Definition CAPI_Defines.h:548
Float rectangle defined by left, top, right, and bottom coordinates.
Definition CAPI_Defines.h:538