Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
A TabArray
struct contains an array
of tab stops. Each tab stop has an alignment and a position.
Synopsis
- newtype TabArray = TabArray (ManagedPtr TabArray)
- noTabArray :: Maybe TabArray
- tabArrayCopy :: (HasCallStack, MonadIO m) => TabArray -> m TabArray
- tabArrayFree :: (HasCallStack, MonadIO m) => TabArray -> m ()
- tabArrayGetPositionsInPixels :: (HasCallStack, MonadIO m) => TabArray -> m Bool
- tabArrayGetSize :: (HasCallStack, MonadIO m) => TabArray -> m Int32
- tabArrayGetTab :: (HasCallStack, MonadIO m) => TabArray -> Int32 -> m (TabAlign, Int32)
- tabArrayNew :: (HasCallStack, MonadIO m) => Int32 -> Bool -> m TabArray
- tabArrayResize :: (HasCallStack, MonadIO m) => TabArray -> Int32 -> m ()
- tabArraySetTab :: (HasCallStack, MonadIO m) => TabArray -> Int32 -> TabAlign -> Int32 -> m ()
Exported types
Memory-managed wrapper type.
Instances
BoxedObject TabArray Source # | |
Methods
copy
:: (HasCallStack, MonadIO m) | |
=> TabArray |
|
-> m TabArray | Returns: the newly allocated |
Copies a TabArray
free
:: (HasCallStack, MonadIO m) | |
=> TabArray |
|
-> m () |
Frees a tab array and associated resources.
getPositionsInPixels
tabArrayGetPositionsInPixels Source #
:: (HasCallStack, MonadIO m) | |
=> TabArray |
|
-> m Bool | Returns: whether positions are in pixels. |
getSize
:: (HasCallStack, MonadIO m) | |
=> TabArray |
|
-> m Int32 | Returns: the number of tab stops in the array. |
Gets the number of tab stops in tabArray
.
getTab
:: (HasCallStack, MonadIO m) | |
=> TabArray |
|
-> Int32 |
|
-> m (TabAlign, Int32) |
Gets the alignment and position of a tab stop.
new
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Bool |
|
-> m TabArray | Returns: the newly allocated |
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
:: (HasCallStack, MonadIO m) | |
=> TabArray |
|
-> Int32 |
|
-> m () |
Resizes a tab array. You must subsequently initialize any tabs that were added as a result of growing the array.
setTab
:: (HasCallStack, MonadIO m) | |
=> TabArray |
|
-> Int32 |
|
-> TabAlign |
|
-> Int32 |
|
-> m () |
Sets the alignment and location of a tab stop.
alignment
must always be PANGO_TAB_LEFT
in the current
implementation.