| 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 |
GI.Atk.Structs.TextRange
Description
A structure used to describe a text range.
- newtype TextRange = TextRange (ManagedPtr TextRange)
- newZeroTextRange :: MonadIO m => m TextRange
- noTextRange :: Maybe TextRange
- getTextRangeBounds :: MonadIO m => TextRange -> m TextRectangle
- clearTextRangeContent :: MonadIO m => TextRange -> m ()
- getTextRangeContent :: MonadIO m => TextRange -> m (Maybe Text)
- setTextRangeContent :: MonadIO m => TextRange -> CString -> m ()
- getTextRangeEndOffset :: MonadIO m => TextRange -> m Int32
- setTextRangeEndOffset :: MonadIO m => TextRange -> Int32 -> m ()
- getTextRangeStartOffset :: MonadIO m => TextRange -> m Int32
- setTextRangeStartOffset :: MonadIO m => TextRange -> Int32 -> m ()
Exported types
Constructors
| TextRange (ManagedPtr TextRange) |
Instances
| BoxedObject TextRange Source # | |
| (~) AttrOpTag tag AttrSet => Constructible TextRange tag Source # | |
newZeroTextRange :: MonadIO m => m TextRange Source #
Construct a TextRange struct initialized to zero.
Properties
bounds
getTextRangeBounds :: MonadIO m => TextRange -> m TextRectangle Source #
content
clearTextRangeContent :: MonadIO m => TextRange -> m () Source #