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

GI.Pango.Structs.TabArray

Description

A TabArray struct contains an array of tab stops. Each tab stop has an alignment and a position.

Synopsis

Exported types

newtype TabArray Source #

Memory-managed wrapper type.

Constructors

TabArray (ManagedPtr TabArray) 

Instances

Instances details
Eq TabArray Source # 
Instance details

Defined in GI.Pango.Structs.TabArray

GBoxed TabArray Source # 
Instance details

Defined in GI.Pango.Structs.TabArray

ManagedPtrNewtype TabArray Source # 
Instance details

Defined in GI.Pango.Structs.TabArray

Methods

toManagedPtr :: TabArray -> ManagedPtr TabArray

TypedObject TabArray Source # 
Instance details

Defined in GI.Pango.Structs.TabArray

Methods

glibType :: IO GType

HasParentTypes TabArray Source # 
Instance details

Defined in GI.Pango.Structs.TabArray

IsGValue (Maybe TabArray) Source #

Convert TabArray to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Pango.Structs.TabArray

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe TabArray -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe TabArray)

type ParentTypes TabArray Source # 
Instance details

Defined in GI.Pango.Structs.TabArray

type ParentTypes TabArray = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, free, resize.

Getters

getPositionsInPixels, getSize, getTab.

Setters

setTab.

copy

tabArrayCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TabArray

src: TabArray to copy

-> m TabArray

Returns: the newly allocated TabArray, which should be freed with tabArrayFree.

Copies a TabArray

free

tabArrayFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TabArray

tabArray: a TabArray

-> m () 

Frees a tab array and associated resources.

getPositionsInPixels

tabArrayGetPositionsInPixels Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TabArray

tabArray: a TabArray

-> m Bool

Returns: whether positions are in pixels.

Returns True if the tab positions are in pixels, False if they are in Pango units.

getSize

tabArrayGetSize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TabArray

tabArray: a TabArray

-> m Int32

Returns: the number of tab stops in the array.

Gets the number of tab stops in tabArray.

getTab

tabArrayGetTab Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TabArray

tabArray: a TabArray

-> Int32

tabIndex: tab stop index

-> m (TabAlign, Int32) 

Gets the alignment and position of a tab stop.

new

tabArrayNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Int32

initialSize: Initial number of tab stops to allocate, can be 0

-> Bool

positionsInPixels: whether positions are in pixel units

-> m TabArray

Returns: the newly allocated TabArray, which should be freed with tabArrayFree.

Creates an array of initialSize tab stops. Tab stops are specified in pixel units if positionsInPixels is True, otherwise in Pango units. All stops are initially at position 0.

resize

tabArrayResize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TabArray

tabArray: a TabArray

-> Int32

newSize: new size of the array

-> m () 

Resizes a tab array. You must subsequently initialize any tabs that were added as a result of growing the array.

setTab

tabArraySetTab Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TabArray

tabArray: a TabArray

-> Int32

tabIndex: the index of a tab stop

-> TabAlign

alignment: tab alignment

-> Int32

location: tab location in Pango units

-> m () 

Sets the alignment and location of a tab stop. alignment must always be PANGO_TAB_LEFT in the current implementation.