Class AttrSize

All Implemented Interfaces:
PointerInterface

public class AttrSize extends Record
The `PangoAttrSize` structure is used to represent attributes which
set font size.

https://docs.gtk.org/Pango/struct.AttrSize.html

  • Field Details

    • ATTR

      public static final String ATTR
      the common portion of the attribute
      Private field: direct-type
      See Also:
    • SIZE

      public static final String 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

      public static final String 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

      public AttrSize(PointerContainer pointer)
    • AttrSize

      public AttrSize()
  • Method Details

    • getClassHandler

      public static ClassHandler 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

      public static Attribute _new(int size)
      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

      public static Attribute newAbsolute(int size)
      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]