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