AeonGUI
A portable video game graphic user interface library.
Loading...
Searching...
No Matches
StyleSheet.hpp
1/*
2Copyright (C) 2023-2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGUI_STYLESHEET_H
17#define AEONGUI_STYLESHEET_H
18
19#include <memory>
20
21extern "C"
22{
23 struct css_stylesheet;
24 struct css_select_ctx;
25 struct css_select_results;
26 struct css_computed_style;
27}
28
29namespace AeonGUI
30{
33 {
37 void operator() ( css_stylesheet* p );
38 };
39
42 {
46 void operator() ( css_select_ctx* p );
47 };
48
51 {
55 void operator() ( css_select_results* p );
56 };
57
60 {
64 void operator() ( css_computed_style* p );
65 };
66
68 using StyleSheetPtr = std::unique_ptr<css_stylesheet, css_stylesheet_deleter>;
70 using SelectCtxPtr = std::unique_ptr<css_select_ctx, css_select_ctx_deleter>;
72 using SelectResultsPtr = std::unique_ptr<css_select_results, css_select_results_deleter>;
74 using ComputedStylePtr = std::unique_ptr<css_computed_style, css_computed_style_deleter>;
75}
76#endif
Custom deleter for css_computed_style.
Definition StyleSheet.hpp:60
void operator()(css_computed_style *p)
Release a css_computed_style.
Definition StyleSheet.cpp:49
Custom deleter for css_select_ctx.
Definition StyleSheet.hpp:42
void operator()(css_select_ctx *p)
Release a css_select_ctx.
Definition StyleSheet.cpp:31
Custom deleter for css_select_results.
Definition StyleSheet.hpp:51
void operator()(css_select_results *p)
Release css_select_results.
Definition StyleSheet.cpp:40
Custom deleter for css_stylesheet.
Definition StyleSheet.hpp:33
void operator()(css_stylesheet *p)
Release a css_stylesheet.
Definition StyleSheet.cpp:22