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 |
The #PangoLayoutLine structure represents one of the lines resulting from laying out a paragraph via PangoLayoutLine structures are obtained by calling pango_layout_get_line() and are only valid until the text, attributes, or settings of the parent #PangoLayout are modified.
Routines for rendering PangoLayout objects are provided in code specific to each rendering system.
- newtype LayoutLine = LayoutLine (ForeignPtr LayoutLine)
- newZeroLayoutLine :: MonadIO m => m LayoutLine
- noLayoutLine :: Maybe LayoutLine
- data LayoutLineGetExtentsMethodInfo
- layoutLineGetExtents :: MonadIO m => LayoutLine -> m (Rectangle, Rectangle)
- data LayoutLineGetPixelExtentsMethodInfo
- layoutLineGetPixelExtents :: MonadIO m => LayoutLine -> m (Rectangle, Rectangle)
- data LayoutLineGetXRangesMethodInfo
- layoutLineGetXRanges :: MonadIO m => LayoutLine -> Int32 -> Int32 -> m [Int32]
- data LayoutLineIndexToXMethodInfo
- layoutLineIndexToX :: MonadIO m => LayoutLine -> Int32 -> Bool -> m Int32
- data LayoutLineRefMethodInfo
- layoutLineRef :: MonadIO m => LayoutLine -> m LayoutLine
- data LayoutLineUnrefMethodInfo
- layoutLineUnref :: MonadIO m => LayoutLine -> m ()
- data LayoutLineXToIndexMethodInfo
- layoutLineXToIndex :: MonadIO m => LayoutLine -> Int32 -> m (Bool, Int32, Int32)
- layoutLineReadIsParagraphStart :: LayoutLine -> IO Word32
- layoutLineReadLayout :: LayoutLine -> IO Layout
- layoutLineReadLength :: LayoutLine -> IO Int32
- layoutLineReadResolvedDir :: LayoutLine -> IO Word32
- layoutLineReadRuns :: LayoutLine -> IO [Ptr ()]
- layoutLineReadStartIndex :: LayoutLine -> IO Int32
Exported types
newtype LayoutLine Source
newZeroLayoutLine :: MonadIO m => m LayoutLine Source
Construct a LayoutLine
struct initialized to zero.
Methods
layoutLineGetExtents
data LayoutLineGetExtentsMethodInfo Source
((~) (TYPE Lifted) signature (m (Rectangle, Rectangle)), MonadIO m) => MethodInfo (TYPE Lifted) LayoutLineGetExtentsMethodInfo LayoutLine signature Source | |
layoutLineGetExtents :: MonadIO m => LayoutLine -> m (Rectangle, Rectangle) Source
layoutLineGetPixelExtents
data LayoutLineGetPixelExtentsMethodInfo Source
((~) (TYPE Lifted) signature (m (Rectangle, Rectangle)), MonadIO m) => MethodInfo (TYPE Lifted) LayoutLineGetPixelExtentsMethodInfo LayoutLine signature Source | |
layoutLineGetPixelExtents :: MonadIO m => LayoutLine -> m (Rectangle, Rectangle) Source
layoutLineGetXRanges
data LayoutLineGetXRangesMethodInfo Source
((~) (TYPE Lifted) signature (Int32 -> Int32 -> m [Int32]), MonadIO m) => MethodInfo (TYPE Lifted) LayoutLineGetXRangesMethodInfo LayoutLine signature Source | |
layoutLineGetXRanges :: MonadIO m => LayoutLine -> Int32 -> Int32 -> m [Int32] Source
layoutLineIndexToX
data LayoutLineIndexToXMethodInfo Source
((~) (TYPE Lifted) signature (Int32 -> Bool -> m Int32), MonadIO m) => MethodInfo (TYPE Lifted) LayoutLineIndexToXMethodInfo LayoutLine signature Source | |
layoutLineIndexToX :: MonadIO m => LayoutLine -> Int32 -> Bool -> m Int32 Source
layoutLineRef
data LayoutLineRefMethodInfo Source
((~) (TYPE Lifted) signature (m LayoutLine), MonadIO m) => MethodInfo (TYPE Lifted) LayoutLineRefMethodInfo LayoutLine signature Source | |
layoutLineRef :: MonadIO m => LayoutLine -> m LayoutLine Source
layoutLineUnref
data LayoutLineUnrefMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) LayoutLineUnrefMethodInfo LayoutLine signature Source | |
layoutLineUnref :: MonadIO m => LayoutLine -> m () Source
layoutLineXToIndex
data LayoutLineXToIndexMethodInfo Source
((~) (TYPE Lifted) signature (Int32 -> m (Bool, Int32, Int32)), MonadIO m) => MethodInfo (TYPE Lifted) LayoutLineXToIndexMethodInfo LayoutLine signature Source | |
layoutLineXToIndex :: MonadIO m => LayoutLine -> Int32 -> m (Bool, Int32, Int32) Source
Properties
IsParagraphStart
Layout
Length
ResolvedDir
Runs
layoutLineReadRuns :: LayoutLine -> IO [Ptr ()] Source