Gjsify LogoGjsify Logo

The PangoAttrShape structure is used to represent attributes which impose shape restrictions.

record

Hierarchy

  • AttrShape

Index

Constructors

Properties

the common portion of the attribute

field

copy function for the user data

field
data: object

user data set (see [funcPango.AttrShape.new_with_data])

field
destroyFunc: GLib.DestroyNotify

destroy function for the user data

field
inkRect: Pango.Rectangle

the ink rectangle to restrict to

field
logicalRect: Pango.Rectangle

the logical rectangle to restrict to

field
name: string

Methods

  • Create a new shape attribute.

    A shape is used to impose a particular ink and logical rectangle on the result of shaping a particular glyph. This might be used, for instance, for embedding a picture or a widget inside a PangoLayout.

    Parameters

    • inkRect: Pango.Rectangle

      ink rectangle to assign to each character

    • logicalRect: Pango.Rectangle

      logical rectangle to assign to each character

    Returns Pango.Attribute

  • Creates a new shape attribute.

    Like [funcPango.AttrShape.new], but a user data pointer is also provided; this pointer can be accessed when later rendering the glyph.

    Parameters

    • inkRect: Pango.Rectangle

      ink rectangle to assign to each character

    • logicalRect: Pango.Rectangle

      logical rectangle to assign to each character

    • data: object

      user data pointer

    • copyFunc: AttrDataCopyFunc

      function to copy data when the attribute is copied. If %NULL, data is simply copied as a pointer

    Returns Pango.Attribute

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method