Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BaseCssProperty.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace OreUI::Styling { struct CssParsingOptions; }
8// clang-format on
9
10namespace OreUI::Styling {
11
12struct BaseCssProperty {
13public:
14 // member variables
15 // NOLINTBEGIN
16 ::ll::TypedStorage<8, 32, ::std::string> mPropertyName;
17 // NOLINTEND
18
19public:
20 // virtual functions
21 // NOLINTBEGIN
22 virtual ~BaseCssProperty() = default;
23
24 virtual ::std::string convertToCss(
25 ::OreUI::Styling::CssParsingOptions const& options,
26 ::std::unordered_set<::std::string>& addedProperties
27 ) = 0;
28 // NOLINTEND
29
30public:
31 // static functions
32 // NOLINTBEGIN
33 MCNAPI static ::std::string getCssFloatProp(
34 ::std::string const& propertyName,
35 ::std::optional<float> const& value,
37 ::std::unordered_set<::std::string>& addedProperties
38 );
39
40 MCNAPI static ::std::string getCssFloatRemProp(
41 ::std::string const& propertyName,
42 ::std::optional<float> const& value,
44 ::std::unordered_set<::std::string>& addedProperties
45 );
46 // NOLINTEND
47};
48
49} // namespace OreUI::Styling
Definition BaseCssProperty.h:7
static MCAPI ::std::string getCssFloatProp(::std::string const &propertyName, ::std::optional< float > const &value, ::OreUI::Styling::CssParsingOptions const &options, ::std::unordered_set<::std::string > &addedProperties)
static MCAPI ::std::string getCssFloatRemProp(::std::string const &propertyName, ::std::optional< float > const &value, ::OreUI::Styling::CssParsingOptions const &options, ::std::unordered_set<::std::string > &addedProperties)
Definition CssParsingOptions.h:7