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
Modifier and TypeFieldDescriptionstatic final String
whether the font size is in device units or points.static final String
the common portion of the attribute
Private field: direct-typestatic final String
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) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute
_new
(int size) Create a new font-size attribute in fractional points.static ClassHandler
int
whether the font size is in device units or points.int
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)static Attribute
newAbsolute
(int size) Create a new font-size attribute in device units.void
setFieldAbsolute
(int absolute) whether the font size is in device units or points.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)Methods 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:
-
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]
-