Class PlaceholderStyle
- java.lang.Object
-
- io.github.humbleui.skija.paragraph.PlaceholderStyle
-
public class PlaceholderStyle extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description PlaceholderAlignment_alignmentfloat_baselineDistance from the top edge of the rect to the baseline position.BaselineMode_baselineModefloat_heightfloat_width
-
Constructor Summary
Constructors Constructor Description PlaceholderStyle(float width, float height, PlaceholderAlignment alignment, BaselineMode baselineMode, float baseline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)PlaceholderAlignmentgetAlignment()floatgetBaseline()Distance from the top edge of the rect to the baseline position.BaselineModegetBaselineMode()floatgetHeight()floatgetWidth()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
_width
public final float _width
-
_height
public final float _height
-
_alignment
public final PlaceholderAlignment _alignment
-
_baselineMode
public final BaselineMode _baselineMode
-
_baseline
public final float _baseline
Distance from the top edge of the rect to the baseline position. This baseline will be aligned against the alphabetic baseline of the surrounding text.
Positive values drop the baseline lower (positions the rect higher) and small or negative values will cause the rect to be positioned underneath the line. When baseline == height, the bottom edge of the rect will rest on the alphabetic baseline.
-
-
Constructor Detail
-
PlaceholderStyle
public PlaceholderStyle(float width, float height, PlaceholderAlignment alignment, BaselineMode baselineMode, float baseline)
-
-
Method Detail
-
getWidth
public float getWidth()
-
getHeight
public float getHeight()
-
getAlignment
public PlaceholderAlignment getAlignment()
-
getBaselineMode
public BaselineMode getBaselineMode()
-
getBaseline
public float getBaseline()
Distance from the top edge of the rect to the baseline position. This baseline will be aligned against the alphabetic baseline of the surrounding text.
Positive values drop the baseline lower (positions the rect higher) and small or negative values will cause the rect to be positioned underneath the line. When baseline == height, the bottom edge of the rect will rest on the alphabetic baseline.
-
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
-
-