.. index:: pair: class; EE::UI::CSS::StyleSheetProperty .. _doxid-class_e_e_1_1_u_i_1_1_c_s_s_1_1_style_sheet_property: class EE::UI::CSS::StyleSheetProperty ===================================== .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class StyleSheetProperty { public: // construction :target:`StyleSheetProperty`(); :target:`StyleSheetProperty`(const :ref:`PropertyDefinition`* definition, const std::string& value, const :ref:`Uint32`& index = 0); :target:`StyleSheetProperty`(const std::string& name, const std::string& value, const bool& trimValue = true, const :ref:`Uint32`& specificity = 0, const :ref:`Uint32`& index = 0); :target:`StyleSheetProperty`(const std::string& name, const std::string& value, const :ref:`Uint32`& specificity, const bool& isVolatile = false, const :ref:`Uint32`& index = 0); // methods :ref:`Uint32` :target:`getId`() const; const std::string& :target:`getName`() const; const :ref:`String::HashType`& :target:`getNameHash`() const; const std::string& :target:`getValue`() const; const std::string& :target:`value`() const; const :ref:`Uint32`& :target:`getSpecificity`() const; void :target:`setSpecificity`(const :ref:`Uint32`& specificity); bool :target:`isEmpty`() const; void :target:`setName`(const std::string& name); void :target:`setValue`(const std::string& value, bool updateHash = false); const bool& :target:`isVolatile`() const; void :target:`setVolatile`(const bool& isVolatile); bool :target:`operator==`(const StyleSheetProperty& property) const; bool :target:`operator!=`(const StyleSheetProperty& property) const; std::string :target:`asString`(const std::string& defaultValue = "") const; template Type :target:`asType`(Type defaultValue) const; int :target:`asInt`(int defaultValue = 0) const; unsigned int :target:`asUint`(unsigned int defaultValue = 0) const; double :target:`asDouble`(double defaultValue = 0) const; float :target:`asFloat`(float defaultValue = 0) const; long long :target:`asLlong`(long long defaultValue = 0) const; unsigned long long :target:`asUllong`(unsigned long long defaultValue = 0) const; bool :target:`asBool`(bool defaultValue = false) const; :ref:`Color` :target:`asColor`() const; :ref:`Float` :target:`asDpDimension`(const std::string& defaultValue = "") const; int :target:`asDpDimensionI`(const std::string& defaultValue = "") const; :ref:`Uint32` :target:`asDpDimensionUint`(const std::string& defaultValue = "") const; :ref:`OriginPoint` :target:`asOriginPoint`() const; :ref:`BlendMode` :target:`asBlendMode`() const; :ref:`Vector2f` :target:`asDpDimensionVector2f`(const :ref:`Vector2f`& defaultValue = Vector2f::Zero) const; :ref:`Vector2i` :target:`asDpDimensionVector2i`(const :ref:`Vector2i`& defaultValue = Vector2i::Zero) const; :ref:`Vector2f` :target:`asDpDimensionSizef`(const :ref:`Sizef`& defaultValue = Sizef::Zero) const; :ref:`Vector2i` :target:`asDpDimensionSizei`(const :ref:`Sizei`& defaultValue = Sizei::Zero) const; :ref:`Vector2f` :target:`asVector2f`(const :ref:`Vector2f`& defaultValue = Vector2f::Zero) const; :ref:`Vector2i` :target:`asVector2i`(const :ref:`Vector2i`& defaultValue = Vector2i::Zero) const; :ref:`Sizef` :target:`asSizef`(const :ref:`Sizef`& defaultValue = Sizef::Zero) const; :ref:`Sizei` :target:`asSizei`(const :ref:`Sizei`& defaultValue = Sizei::Zero) const; :ref:`Rect` :target:`asRect`(const :ref:`Rect`& defaultValue = :ref:`Rect`()) const; :ref:`Rectf` :target:`asRectf`(const :ref:`Rectf`& defaultValue = :ref:`Rectf`()) const; :ref:`Uint32` :target:`asFontStyle`() const; :ref:`Time` :target:`asTime`(const :ref:`Time`& defaultTime = Seconds(0)); :ref:`Ease::Interpolation` :target:`asInterpolation`(const :ref:`Ease::Interpolation`& defaultInterpolation = Ease::Linear); const :ref:`PropertyDefinition`* :target:`getPropertyDefinition`() const; const :ref:`ShorthandDefinition`* :target:`getShorthandDefinition`() const; const bool& :target:`isVarValue`() const; size_t :target:`getPropertyIndexCount`() const; const StyleSheetProperty& :target:`getPropertyIndex`(const :ref:`Uint32`& index) const; StyleSheetProperty* :target:`getPropertyIndexRef`(const :ref:`Uint32`& index); const :ref:`Uint32`& :target:`getIndex`() const; :ref:`Float` :target:`asDpDimension`(:ref:`UINode`* node, const std::string& defaultValue = "") const; int :target:`asDpDimensionI`(:ref:`UINode`* node, const std::string& defaultValue = "") const; :ref:`Uint32` :target:`asDpDimensionUint`(:ref:`UINode`* node, const std::string& defaultValue = "") const; :ref:`Vector2f` :target:`asDpDimensionVector2f`(:ref:`UINode`* node, const :ref:`Vector2f`& defaultValue = Vector2f::Zero) const; :ref:`Vector2i` :target:`asDpDimensionVector2i`(:ref:`UINode`* node, const :ref:`Vector2i`& defaultValue = Vector2i::Zero) const; :ref:`Vector2f` :target:`asDpDimensionSizef`(:ref:`UINode`* node, const :ref:`Sizef`& defaultValue = Sizef::Zero) const; :ref:`Vector2i` :target:`asDpDimensionSizei`(:ref:`UINode`* node, const :ref:`Sizei`& defaultValue = Sizei::Zero) const; :ref:`Vector2f` :target:`asVector2f`(:ref:`UINode`* node, const :ref:`Vector2f`& defaultValue = Vector2f::Zero) const; :ref:`Vector2i` :target:`asVector2i`(:ref:`UINode`* node, const :ref:`Vector2i`& defaultValue = Vector2i::Zero) const; :ref:`Sizef` :target:`asSizef`(:ref:`UINode`* node, const :ref:`Sizef`& defaultValue = Sizef::Zero) const; :ref:`Sizei` :target:`asSizei`(:ref:`UINode`* node, const :ref:`Sizei`& defaultValue = Sizei::Zero) const; :ref:`StyleSheetLength` :target:`asStyleSheetLength`() const; const :ref:`String::HashType`& :target:`getValueHash`() const; const std::vector<:ref:`VariableFunctionCache`>& :target:`getVarCache`() const; };