Package ch.bailu.gtk.gsk
Klasse TextNode
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gsk.RenderNode
ch.bailu.gtk.gsk.TextNode
- Alle implementierten Schnittstellen:
PointerInterface
A render node drawing a set of glyphs.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gsk.RenderNode
RenderNode.OnParseErrorFunc
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungTextNode
(Font font, GlyphString glyphs, RGBA color, Point offset) Creates a render node that renders the given glyphs.TextNode
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
getColor()
Retrieves the color used by the text @node.getFont()
Returns the font used by the text @node.static int
int
Retrieves the number of glyphs in the text node.Retrieves the offset applied to the text.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
boolean
Checks whether the text @node has color glyphs.Von Klasse geerbte Methoden ch.bailu.gtk.gsk.RenderNode
deserialize, draw, getBounds, getNodeType, getOpaqueRect, ref, serialize, unref, writeToFile, writeToFile
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
TextNode
-
TextNode
public TextNode(@Nonnull Font font, @Nonnull GlyphString glyphs, @Nonnull RGBA color, @Nonnull Point offset) Creates a render node that renders the given glyphs.
Note that @color may not be used if the font contains
color glyphs.- Parameter:
font
- the `PangoFont` containing the glyphsglyphs
- the `PangoGlyphString` to rendercolor
- the foreground color to render withoffset
- offset of the baseline
-
-
Methodendetails
-
getClassHandler
-
getColor
Retrieves the color used by the text @node.
The value returned by this function will not be correct
if the render node was created for a non-sRGB color.- Gibt zurück:
- the text color
-
getFont
Returns the font used by the text @node.- Gibt zurück:
- the font
-
getNumGlyphs
public int getNumGlyphs()Retrieves the number of glyphs in the text node.- Gibt zurück:
- the number of glyphs
-
getOffset
Retrieves the offset applied to the text.- Gibt zurück:
- a point with the horizontal and vertical offsets
-
hasColorGlyphs
public boolean hasColorGlyphs()Checks whether the text @node has color glyphs.- Gibt zurück:
- %TRUE if the text node has color glyphs
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-