gi-pango-1.0.11: Pango bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Pango.Structs.AttrShape

Contents

Description

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

Synopsis

Exported types

newZeroAttrShape :: MonadIO m => m AttrShape Source #

Construct a AttrShape struct initialized to zero.

Methods

new

attrShapeNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Rectangle

inkRect: ink rectangle to assign to each character

-> Rectangle

logicalRect: logical rectangle to assign to each character

-> m Attribute

Returns: the newly allocated Attribute, which should be freed with attributeDestroy.

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 Layout.

Properties

attr

copyFunc

data

destroyFunc

inkRect

logicalRect