xref: /php-src/ext/dom/lexbor/lexbor/css/unit.h (revision f0934090)
1 /*
2  * Copyright (C) 2021 Alexander Borisov
3  *
4  * Author: Alexander Borisov <borisov@lexbor.com>
5  */
6 
7 #ifndef LXB_CSS_UNIT_H
8 #define LXB_CSS_UNIT_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #include "lexbor/css/base.h"
15 
16 
17 LXB_API const lxb_css_data_t *
18 lxb_css_unit_absolute_relative_by_name(const lxb_char_t *name, size_t length);
19 
20 LXB_API const lxb_css_data_t *
21 lxb_css_unit_absolute_by_name(const lxb_char_t *name, size_t length);
22 
23 LXB_API const lxb_css_data_t *
24 lxb_css_unit_relative_by_name(const lxb_char_t *name, size_t length);
25 
26 LXB_API const lxb_css_data_t *
27 lxb_css_unit_angel_by_name(const lxb_char_t *name, size_t length);
28 
29 LXB_API const lxb_css_data_t *
30 lxb_css_unit_frequency_by_name(const lxb_char_t *name, size_t length);
31 
32 LXB_API const lxb_css_data_t *
33 lxb_css_unit_resolution_by_name(const lxb_char_t *name, size_t length);
34 
35 LXB_API const lxb_css_data_t *
36 lxb_css_unit_duration_by_name(const lxb_char_t *name, size_t length);
37 
38 LXB_API const lxb_css_data_t *
39 lxb_css_unit_by_id(lxb_css_type_t id);
40 
41 
42 #ifdef __cplusplus
43 } /* extern "C" */
44 #endif
45 
46 #endif /* LXB_CSS_UNIT_H */
47