Package ch.bailu.gtk.pango
Class AttrFontDesc
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.pango.AttrFontDesc
- All Implemented Interfaces:
PointerInterface
The `PangoAttrFontDesc` structure is used to store an attribute that
sets all aspects of the font description at once.
sets all aspects of the font description at once.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute
_new
(FontDescription desc) Create a new font description attribute.static ClassHandler
the font description which is the value of this attributevoid
setFieldDesc
(FontDescription desc) the font description which is the value of this attributeMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
ATTR
the common portion of the attribute
Private field: direct-type- See Also:
-
DESC
the font description which is the value of this attribute- See Also:
-
-
Constructor Details
-
AttrFontDesc
-
AttrFontDesc
public AttrFontDesc()
-
-
Method Details
-
getClassHandler
-
setFieldDesc
the font description which is the value of this attribute -
getFieldDesc
the font description which is the value of this attribute -
_new
Create a new font description attribute.
This attribute allows setting family, style, weight, variant,
stretch, and size simultaneously.- Parameters:
desc
- the font description- Returns:
- the newly allocated `PangoAttribute`, which should be freed with [method@Pango.Attribute.destroy]
-