Package ch.bailu.gtk.pango
Class AttrSize
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.pango.AttrSize
- All Implemented Interfaces:
PointerInterface
The `PangoAttrSize` structure is used to represent attributes which
set font size.
set font size.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringwhether the font size is in device units or points.static final Stringthe common portion of the attribute
Private field: direct-typestatic final Stringsize of font, in units of 1/%PANGO_SCALE of a point (for
%PANGO_ATTR_SIZE) or of a device unit (for %PANGO_ATTR_ABSOLUTE_SIZE) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute_new(int size) Create a new font-size attribute in fractional points.static ClassHandlerintwhether the font size is in device units or points.intsize of font, in units of 1/%PANGO_SCALE of a point (for
%PANGO_ATTR_SIZE) or of a device unit (for %PANGO_ATTR_ABSOLUTE_SIZE)static AttributenewAbsolute(int size) Create a new font-size attribute in device units.voidsetFieldAbsolute(int absolute) whether the font size is in device units or points.voidsetFieldSize(int size) size of font, in units of 1/%PANGO_SCALE of a point (for
%PANGO_ATTR_SIZE) or of a device unit (for %PANGO_ATTR_ABSOLUTE_SIZE)Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
-
SIZE
size of font, in units of 1/%PANGO_SCALE of a point (for
%PANGO_ATTR_SIZE) or of a device unit (for %PANGO_ATTR_ABSOLUTE_SIZE)- See Also:
-
ABSOLUTE
whether the font size is in device units or points.
This field is only present for compatibility with Pango-1.8.0
(%PANGO_ATTR_ABSOLUTE_SIZE was added in 1.8.1); and always will
be %FALSE for %PANGO_ATTR_SIZE and %TRUE for %PANGO_ATTR_ABSOLUTE_SIZE.- See Also:
-
-
Constructor Details
-
AttrSize
-
AttrSize
public AttrSize()
-
-
Method Details
-
getClassHandler
-
setFieldSize
public void setFieldSize(int size) size of font, in units of 1/%PANGO_SCALE of a point (for
%PANGO_ATTR_SIZE) or of a device unit (for %PANGO_ATTR_ABSOLUTE_SIZE) -
getFieldSize
public int getFieldSize()size of font, in units of 1/%PANGO_SCALE of a point (for
%PANGO_ATTR_SIZE) or of a device unit (for %PANGO_ATTR_ABSOLUTE_SIZE) -
setFieldAbsolute
public void setFieldAbsolute(int absolute) whether the font size is in device units or points.
This field is only present for compatibility with Pango-1.8.0
(%PANGO_ATTR_ABSOLUTE_SIZE was added in 1.8.1); and always will
be %FALSE for %PANGO_ATTR_SIZE and %TRUE for %PANGO_ATTR_ABSOLUTE_SIZE. -
getFieldAbsolute
public int getFieldAbsolute()whether the font size is in device units or points.
This field is only present for compatibility with Pango-1.8.0
(%PANGO_ATTR_ABSOLUTE_SIZE was added in 1.8.1); and always will
be %FALSE for %PANGO_ATTR_SIZE and %TRUE for %PANGO_ATTR_ABSOLUTE_SIZE. -
_new
Create a new font-size attribute in fractional points.- Parameters:
size- the font size, in %PANGO_SCALE-ths of a point- Returns:
- the newly allocated `PangoAttribute`, which should be freed with [method@Pango.Attribute.destroy]
-
newAbsolute
Create a new font-size attribute in device units.- Parameters:
size- the font size, in %PANGO_SCALE-ths of a device unit- Returns:
- the newly allocated `PangoAttribute`, which should be freed with [method@Pango.Attribute.destroy]
-