16#ifndef AEONGUI_STYLESHEET_H
17#define AEONGUI_STYLESHEET_H
24 struct css_stylesheet;
25 struct css_select_ctx;
26 struct css_select_results;
27 struct css_computed_style;
78 using StyleSheetPtr = std::unique_ptr<css_stylesheet, css_stylesheet_deleter>;
80 using SelectCtxPtr = std::unique_ptr<css_select_ctx, css_select_ctx_deleter>;
82 using SelectResultsPtr = std::unique_ptr<css_select_results, css_select_results_deleter>;
84 using ComputedStylePtr = std::unique_ptr<css_computed_style, css_computed_style_deleter>;
90 std::string GetCSSFontFamily ( css_computed_style* aStyle );
95 double GetCSSFontSize ( css_computed_style* aStyle );
100 int GetCSSFontWeight ( css_computed_style* aStyle );
105 int GetCSSFontStyle ( css_computed_style* aStyle );
111 void ApplyCSSPaintProperties (
Canvas& aCanvas,
const DOM::Element& aElement, css_computed_style* aStyle );
Abstract 2D rendering surface.
Definition Canvas.hpp:40
Base class for DOM elements.
Definition Element.hpp:46
Custom deleter for css_computed_style.
Definition StyleSheet.hpp:70
void operator()(css_computed_style *p)
Release a css_computed_style.
Definition StyleSheet.cpp:55
Custom deleter for css_select_ctx.
Definition StyleSheet.hpp:52
void operator()(css_select_ctx *p)
Release a css_select_ctx.
Definition StyleSheet.cpp:37
Custom deleter for css_select_results.
Definition StyleSheet.hpp:61
void operator()(css_select_results *p)
Release css_select_results.
Definition StyleSheet.cpp:46
Custom deleter for css_stylesheet.
Definition StyleSheet.hpp:43
void operator()(css_stylesheet *p)
Release a css_stylesheet.
Definition StyleSheet.cpp:28