gi-pango-1.0.10: 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 #

Constructors

Rectangle (ManagedPtr Rectangle) 

Instances

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

Methods

new :: MonadIO m => (ManagedPtr 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

rectangle_height :: AttrLabelProxy "height" Source #

width

rectangle_width :: AttrLabelProxy "width" Source #

x

rectangle_x :: AttrLabelProxy "x" Source #

y

rectangle_y :: AttrLabelProxy "y" Source #