docs
Docs
C++ API
C API
Search API
Ctrl K
2.0
2.0
latest
1.4
Ultralight C API
2.0.0
Toggle main menu visibility
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
18
#include <
Ultralight/CAPI/CAPI_Defines.h
>
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
24
/******************************************************************************
25
* Rect
26
*****************************************************************************/
27
28
///
29
/// Whether or not a ULRect is empty (all members equal to 0)
30
///
31
ULExport
bool
ulRectIsEmpty
(
ULRect
rect);
32
33
///
34
/// Create an empty ULRect (all members equal to 0)
35
///
36
ULExport
ULRect
ulRectMakeEmpty
(
void
);
37
38
/******************************************************************************
39
* IntRect
40
*****************************************************************************/
41
42
///
43
/// Whether or not a ULIntRect is empty (all members equal to 0)
44
///
45
ULExport
bool
ulIntRectIsEmpty
(
ULIntRect
rect);
46
47
///
48
/// Create an empty ULIntRect (all members equal to 0)
49
///
50
ULExport
ULIntRect
ulIntRectMakeEmpty
(
void
);
51
52
#ifdef __cplusplus
53
}
// extern "C"
54
#endif
55
56
#endif
// ULTRALIGHT_CAPI_GEOMETRY_H
ulRectIsEmpty
bool ulRectIsEmpty(ULRect rect)
Whether or not a ULRect is empty (all members equal to 0).
ulRectMakeEmpty
ULRect ulRectMakeEmpty(void)
Create an empty ULRect (all members equal to 0).
ulIntRectIsEmpty
bool ulIntRectIsEmpty(ULIntRect rect)
Whether or not a ULIntRect is empty (all members equal to 0).
ulIntRectMakeEmpty
ULIntRect ulIntRectMakeEmpty(void)
Create an empty ULIntRect (all members equal to 0).
CAPI_Defines.h
Various defines and utility functions for the C API.
ULExport
#define ULExport
Definition
CAPI_Defines.h:42
ULIntRect
Integer rectangle defined by left, top, right, and bottom coordinates.
Definition
CAPI_Defines.h:548
ULRect
Float rectangle defined by left, top, right, and bottom coordinates.
Definition
CAPI_Defines.h:538
Ultralight
CAPI
CAPI_Geometry.h
Docs
C++ API
C API
Version
2.0
2.0
latest
1.4