gi-pango-1.0.25: Pango bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Pango.Structs.AttrSize

Description

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

Synopsis

Exported types

newtype AttrSize Source #

Memory-managed wrapper type.

Constructors

AttrSize (ManagedPtr AttrSize) 

Instances

Instances details
Eq AttrSize Source # 
Instance details

Defined in GI.Pango.Structs.AttrSize

BoxedPtr AttrSize Source # 
Instance details

Defined in GI.Pango.Structs.AttrSize

CallocPtr AttrSize Source # 
Instance details

Defined in GI.Pango.Structs.AttrSize

ManagedPtrNewtype AttrSize Source # 
Instance details

Defined in GI.Pango.Structs.AttrSize

tag ~ 'AttrSet => Constructible AttrSize tag Source # 
Instance details

Defined in GI.Pango.Structs.AttrSize

Methods

new :: MonadIO m => (ManagedPtr AttrSize -> AttrSize) -> [AttrOp AttrSize tag] -> m AttrSize #

newZeroAttrSize :: MonadIO m => m AttrSize Source #

Construct a AttrSize struct initialized to zero.

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 PangoAttribute, which should be freed with attributeDestroy

Create a new font-size attribute in fractional points.

newAbsolute

attrSizeNewAbsolute Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Int32

size: the font size, in SCALE-ths of a device unit

-> m Attribute

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

Create a new font-size attribute in device units.

Since: 1.8

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 unit (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 ]