Class TextProperties
-
- All Implemented Interfaces:
-
kotlin.Cloneable
public class TextProperties extends Properties
-
-
Field Summary
Fields Modifier and Type Field Description private final Colors.Palettepaletteprivate final TextAlignalignmentprivate final Fontfontprivate final Unit.PixelfontSizeprivate final transient Function1<Properties, Font>fontGetprivate transient Colorscolorsprivate transient FontFamilyfontsprivate final Vec2<Unit>sizeprivate final transient HashMap<Event, Function2<Component, Event, Boolean>>eventHandlersprivate final Booleaninitialized
-
Constructor Summary
Constructors Constructor Description TextProperties(Unit.Pixel fontSize, Function1<Properties, Font> fontGet)
-
Method Summary
Modifier and Type Method Description Colors.PalettegetPalette()TextAligngetAlignment()FontgetFont()Unit.PixelgetFontSize()final Function1<Properties, Font>getFontGet()-
Methods inherited from class org.polyfrost.polyui.property.Properties
addEventHandler, getColors, getEventHandlers, getFonts, getInitialized, getSize, init, setColors, setFonts -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TextProperties
TextProperties(Unit.Pixel fontSize, Function1<Properties, Font> fontGet)
-
-
Method Detail
-
getPalette
Colors.Palette getPalette()
-
getAlignment
TextAlign getAlignment()
-
getFontSize
Unit.Pixel getFontSize()
-
getFontGet
final Function1<Properties, Font> getFontGet()
-
-
-
-