gi-pango-1.0.6: 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.Rectangle

Contents

Description

The #PangoRectangle structure represents a rectangle. It is frequently used to represent the logical or ink extents of a single glyph or section of text. (See, for instance, pango_font_get_glyph_extents())

Synopsis

Exported types

newtype Rectangle Source #

Instances

WrappedPtr Rectangle Source # 
(~) AttrOpTag tag AttrSet => Constructible Rectangle tag Source # 

Methods

new :: MonadIO m => (ForeignPtr Rectangle -> Rectangle) -> [AttrOp Rectangle tag] -> m Rectangle

((~) * info (ResolveRectangleMethod t Rectangle), MethodInfo * info Rectangle p) => IsLabel t (Rectangle -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Rectangle -> p #

((~) * info (ResolveRectangleMethod t Rectangle), MethodInfo * info Rectangle p) => IsLabelProxy t (Rectangle -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Rectangle -> p

HasAttributeList * Rectangle Source # 
type AttributeList Rectangle Source # 
type AttributeList Rectangle

newZeroRectangle :: MonadIO m => m Rectangle Source #

Construct a Rectangle struct initialized to zero.

Properties

Height

rectangleHeight :: AttrLabelProxy "height" Source #

Width

rectangleWidth :: AttrLabelProxy "width" Source #

X

rectangleX :: AttrLabelProxy "x" Source #

Y

rectangleY :: AttrLabelProxy "y" Source #