Package io.github.humbleui.skija.svg
Class SVGLength
- java.lang.Object
-
- io.github.humbleui.skija.svg.SVGLength
-
public class SVGLength extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description SVGLengthUnit_unitfloat_value
-
Constructor Summary
Constructors Constructor Description SVGLength(float value)SVGLength(float value, int unit)SVGLength(float value, SVGLengthUnit unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)SVGLengthUnitgetUnit()floatgetValue()inthashCode()java.lang.StringtoString()SVGLengthwithUnit(SVGLengthUnit _unit)SVGLengthwithValue(float _value)
-
-
-
Field Detail
-
_value
@Internal public final float _value
-
_unit
@Internal public final SVGLengthUnit _unit
-
-
Constructor Detail
-
SVGLength
@Internal public SVGLength(float value, int unit)
-
SVGLength
public SVGLength(float value)
-
SVGLength
public SVGLength(float value, SVGLengthUnit unit)
-
-
Method Detail
-
getValue
public float getValue()
-
getUnit
public SVGLengthUnit getUnit()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
withValue
public SVGLength withValue(float _value)
- Returns:
this.
-
withUnit
public SVGLength withUnit(SVGLengthUnit _unit)
- Returns:
this.
-
-