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)
- noLayoutLine :: Maybe LayoutLine
- layoutLineGetExtents :: MonadIO m => LayoutLine -> m (Rectangle, Rectangle)
- layoutLineGetPixelExtents :: MonadIO m => LayoutLine -> m (Rectangle, Rectangle)
- layoutLineGetXRanges :: MonadIO m => LayoutLine -> Int32 -> Int32 -> m [Int32]
- layoutLineIndexToX :: MonadIO m => LayoutLine -> Int32 -> Bool -> m Int32
- layoutLineRef :: MonadIO m => LayoutLine -> m LayoutLine
- layoutLineUnref :: MonadIO m => LayoutLine -> m ()
- 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
Methods
layoutLineGetExtents
layoutLineGetExtents :: MonadIO m => LayoutLine -> m (Rectangle, Rectangle) Source
layoutLineGetPixelExtents
layoutLineGetPixelExtents :: MonadIO m => LayoutLine -> m (Rectangle, Rectangle) Source
layoutLineGetXRanges
layoutLineGetXRanges :: MonadIO m => LayoutLine -> Int32 -> Int32 -> m [Int32] Source
layoutLineIndexToX
layoutLineIndexToX :: MonadIO m => LayoutLine -> Int32 -> Bool -> m Int32 Source
layoutLineRef
layoutLineRef :: MonadIO m => LayoutLine -> m LayoutLine Source
layoutLineUnref
layoutLineUnref :: MonadIO m => LayoutLine -> m () Source
layoutLineXToIndex
layoutLineXToIndex :: MonadIO m => LayoutLine -> Int32 -> m (Bool, Int32, Int32) Source
Properties
IsParagraphStart
Layout
Length
ResolvedDir
Runs
layoutLineReadRuns :: LayoutLine -> IO [Ptr ()] Source