2#include <engine/engine_export.h>
11 class StyleSheetContainer;
27 using sptr = std::shared_ptr<style_sheet>;
28 using wptr = std::weak_ptr<style_sheet>;
29 using uptr = std::unique_ptr<style_sheet>;
38 [[nodiscard]]
auto is_valid() const ->
bool;
Represents a UI style sheet asset (CSS/RCSS document).
std::unique_ptr< style_sheet > uptr
Unique pointer to a style sheet.
std::string content
The CSS/RCSS content of the style sheet.
auto get_content_size() const -> size_t
Get the size of the content in bytes.
auto is_valid() const -> bool
Check if the style sheet content is valid/non-empty.
std::shared_ptr< style_sheet > sptr
Shared pointer to a style sheet.
std::weak_ptr< style_sheet > wptr
Weak pointer to a style sheet.