gi-pango-1.0.21: Pango bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Pango.Structs.AttrSize

Contents

Description

The AttrSize structure is used to represent attributes which set font size.

Synopsis

Exported types

newtype AttrSize Source #

Memory-managed wrapper type.

Constructors

AttrSize (ManagedPtr AttrSize) 

newZeroAttrSize :: MonadIO m => m AttrSize Source #

Construct a AttrSize struct initialized to zero.

noAttrSize :: Maybe AttrSize Source #

A convenience alias for Nothing :: Maybe AttrSize.

Methods

new

attrSizeNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Int32

size: the font size, in SCALE<!-- -->ths of a point.

-> m Attribute

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

Create a new font-size attribute in fractional points.

Properties

absolute

whether the font size is in device units or points. This field is only present for compatibility with Pango-1.8.0 (AttrTypeAbsoluteSize was added in 1.8.1); and always will be False for AttrTypeSize and True for AttrTypeAbsoluteSize.

getAttrSizeAbsolute :: MonadIO m => AttrSize -> m Word32 Source #

Get the value of the “absolute” field. When overloading is enabled, this is equivalent to

get attrSize #absolute

setAttrSizeAbsolute :: MonadIO m => AttrSize -> Word32 -> m () Source #

Set the value of the “absolute” field. When overloading is enabled, this is equivalent to

set attrSize [ #absolute := value ]

attr

the common portion of the attribute

getAttrSizeAttr :: MonadIO m => AttrSize -> m Attribute Source #

Get the value of the “attr” field. When overloading is enabled, this is equivalent to

get attrSize #attr

size

size of font, in units of 1/SCALE of a point (for AttrTypeSize) or of a device uni (for AttrTypeAbsoluteSize)

getAttrSizeSize :: MonadIO m => AttrSize -> m Int32 Source #

Get the value of the “size” field. When overloading is enabled, this is equivalent to

get attrSize #size

setAttrSizeSize :: MonadIO m => AttrSize -> Int32 -> m () Source #

Set the value of the “size” field. When overloading is enabled, this is equivalent to

set attrSize [ #size := value ]