| 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 (ForeignPtr TextRange)
- newZeroTextRange :: MonadIO m => m TextRange
- noTextRange :: Maybe TextRange
- clearTextRangeBounds :: MonadIO m => TextRange -> m ()
- getTextRangeBounds :: MonadIO m => TextRange -> m (Maybe TextRectangle)
- setTextRangeBounds :: MonadIO m => TextRange -> Ptr TextRectangle -> m ()
- textRangeBounds :: AttrLabelProxy "bounds"
- clearTextRangeContent :: MonadIO m => TextRange -> m ()
- getTextRangeContent :: MonadIO m => TextRange -> m (Maybe Text)
- setTextRangeContent :: MonadIO m => TextRange -> CString -> m ()
- textRangeContent :: AttrLabelProxy "content"
- getTextRangeEndOffset :: MonadIO m => TextRange -> m Int32
- setTextRangeEndOffset :: MonadIO m => TextRange -> Int32 -> m ()
- textRangeEndOffset :: AttrLabelProxy "endOffset"
- getTextRangeStartOffset :: MonadIO m => TextRange -> m Int32
- setTextRangeStartOffset :: MonadIO m => TextRange -> Int32 -> m ()
- textRangeStartOffset :: AttrLabelProxy "startOffset"
Exported types
Constructors
| TextRange (ForeignPtr TextRange) |
Instances
| BoxedObject TextRange Source # | |
| (~) AttrOpTag tag AttrSet => Constructible TextRange tag Source # | |
| ((~) * info (ResolveTextRangeMethod t TextRange), MethodInfo * info TextRange p) => IsLabel t (TextRange -> p) Source # | |
| ((~) * info (ResolveTextRangeMethod t TextRange), MethodInfo * info TextRange p) => IsLabelProxy t (TextRange -> p) Source # | |
| HasAttributeList * TextRange Source # | |
| type AttributeList TextRange Source # | |
newZeroTextRange :: MonadIO m => m TextRange Source #
Construct a TextRange struct initialized to zero.
Properties
Bounds
clearTextRangeBounds :: MonadIO m => TextRange -> m () Source #
getTextRangeBounds :: MonadIO m => TextRange -> m (Maybe TextRectangle) Source #
setTextRangeBounds :: MonadIO m => TextRange -> Ptr TextRectangle -> m () Source #
textRangeBounds :: AttrLabelProxy "bounds" Source #
Content
clearTextRangeContent :: MonadIO m => TextRange -> m () Source #
textRangeContent :: AttrLabelProxy "content" Source #
EndOffset
textRangeEndOffset :: AttrLabelProxy "endOffset" Source #
StartOffset
textRangeStartOffset :: AttrLabelProxy "startOffset" Source #