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 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
- textRange_bounds :: AttrLabelProxy "bounds"
- clearTextRangeContent :: MonadIO m => TextRange -> m ()
- getTextRangeContent :: MonadIO m => TextRange -> m (Maybe Text)
- setTextRangeContent :: MonadIO m => TextRange -> CString -> m ()
- textRange_content :: AttrLabelProxy "content"
- getTextRangeEndOffset :: MonadIO m => TextRange -> m Int32
- setTextRangeEndOffset :: MonadIO m => TextRange -> Int32 -> m ()
- textRange_endOffset :: AttrLabelProxy "endOffset"
- getTextRangeStartOffset :: MonadIO m => TextRange -> m Int32
- setTextRangeStartOffset :: MonadIO m => TextRange -> Int32 -> m ()
- textRange_startOffset :: AttrLabelProxy "startOffset"
Exported types
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
getTextRangeBounds :: MonadIO m => TextRange -> m TextRectangle Source #
textRange_bounds :: AttrLabelProxy "bounds" Source #
content
clearTextRangeContent :: MonadIO m => TextRange -> m () Source #
textRange_content :: AttrLabelProxy "content" Source #
endOffset
textRange_endOffset :: AttrLabelProxy "endOffset" Source #
startOffset
textRange_startOffset :: AttrLabelProxy "startOffset" Source #