module Graphics.UI.Gtk.Multiline.TextBuffer (
TextBuffer,
TextBufferClass,
castToTextBuffer, gTypeTextBuffer,
toTextBuffer,
textBufferNew,
textBufferGetLineCount,
textBufferGetCharCount,
textBufferGetTagTable,
textBufferInsert,
textBufferInsertByteString,
textBufferInsertAtCursor,
textBufferInsertByteStringAtCursor,
textBufferInsertInteractive,
textBufferInsertByteStringInteractive,
textBufferInsertInteractiveAtCursor,
textBufferInsertByteStringInteractiveAtCursor,
textBufferInsertRange,
textBufferInsertRangeInteractive,
textBufferDelete,
textBufferDeleteInteractive,
textBufferSetByteString,
textBufferGetByteString,
textBufferGetByteStringSlice,
textBufferSetText,
textBufferGetText,
textBufferGetSlice,
textBufferInsertPixbuf,
textBufferCreateMark,
textBufferAddMark,
textBufferMoveMark,
textBufferMoveMarkByName,
textBufferDeleteMark,
textBufferDeleteMarkByName,
textBufferGetMark,
textBufferGetInsert,
textBufferGetSelectionBound,
textBufferPlaceCursor,
textBufferApplyTag,
textBufferRemoveTag,
textBufferApplyTagByName,
textBufferRemoveTagByName,
textBufferRemoveAllTags,
textBufferGetIterAtLineOffset,
textBufferGetIterAtOffset,
textBufferGetIterAtLine,
textBufferGetIterAtMark,
textBufferGetStartIter,
textBufferGetEndIter,
textBufferGetModified,
textBufferSetModified,
textBufferDeleteSelection,
textBufferHasSelection,
textBufferGetSelectionBounds,
textBufferSelectRange,
textBufferGetBounds,
textBufferBeginUserAction,
textBufferEndUserAction,
textBufferBackspace,
textBufferInsertChildAnchor,
textBufferCreateChildAnchor,
textBufferGetIterAtChildAnchor,
textBufferPasteClipboard,
textBufferPasteClipboardAtCursor,
textBufferCopyClipboard,
textBufferCutClipboard,
textBufferAddSelectionClipboard,
textBufferRemoveSelectionClipboard,
textBufferTagTable,
textBufferText,
textBufferModified,
applyTag,
beginUserAction,
bufferChanged,
deleteRange,
endUserAction,
insertPixbuf,
insertChildAnchor,
bufferInsertText,
markDeleted,
markSet,
modifiedChanged,
pasteDone,
removeTag,
onApplyTag,
afterApplyTag,
onBeginUserAction,
afterBeginUserAction,
onBufferChanged,
afterBufferChanged,
onDeleteRange,
afterDeleteRange,
onEndUserAction,
afterEndUserAction,
onInsertPixbuf,
afterInsertPixbuf,
onBufferInsertText,
afterBufferInsertText,
onMarkDeleted,
afterMarkDeleted,
onMarkSet,
afterMarkSet,
onModifiedChanged,
afterModifiedChanged,
onRemoveTag,
afterRemoveTag
) where
import Control.Monad (liftM)
import System.Glib.FFI
import System.Glib.UTFString
import System.Glib.Attributes
import System.Glib.Properties
import Data.ByteString (ByteString)
import Data.ByteString.Unsafe (unsafeUseAsCStringLen, unsafePackCStringFinalizer)
import Graphics.UI.Gtk.Types
import Graphics.UI.Gtk.Signals
import Graphics.UI.Gtk.Multiline.Types
import Graphics.UI.Gtk.Multiline.TextMark (MarkName)
import Graphics.UI.Gtk.Multiline.TextTag (TagName)
textBufferNew ::
Maybe TextTagTable
-> IO TextBuffer
textBufferNew table =
wrapNewGObject mkTextBuffer $
(\(TextTagTable arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_new argPtr1)
(maybe (TextTagTable nullForeignPtr) toTextTagTable table)
textBufferGetLineCount :: TextBufferClass self => self -> IO Int
textBufferGetLineCount self =
liftM fromIntegral $
(\(TextBuffer arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_get_line_count argPtr1)
(toTextBuffer self)
textBufferGetCharCount :: TextBufferClass self => self -> IO Int
textBufferGetCharCount self =
liftM fromIntegral $
(\(TextBuffer arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_get_char_count argPtr1)
(toTextBuffer self)
textBufferGetTagTable :: TextBufferClass self => self -> IO TextTagTable
textBufferGetTagTable self =
makeNewGObject mkTextTagTable $
(\(TextBuffer arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_get_tag_table argPtr1)
(toTextBuffer self)
textBufferInsert :: (TextBufferClass self, GlibString string) => self
-> TextIter
-> string
-> IO ()
textBufferInsert self iter text =
withUTFStringLen text $ \(textPtr, len) ->
(\(TextBuffer arg1) (TextIter arg2) arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_insert argPtr1 argPtr2 arg3 arg4)
(toTextBuffer self)
iter
textPtr
(fromIntegral len)
textBufferInsertByteString :: TextBufferClass self => self
-> TextIter
-> ByteString
-> IO ()
textBufferInsertByteString self iter text =
unsafeUseAsCStringLen text $ \(textPtr, len) ->
(\(TextBuffer arg1) (TextIter arg2) arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_insert argPtr1 argPtr2 arg3 arg4)
(toTextBuffer self)
iter
textPtr
(fromIntegral len)
textBufferInsertAtCursor :: (TextBufferClass self, GlibString string) => self -> string -> IO ()
textBufferInsertAtCursor self text =
withUTFStringLen text $ \(textPtr, len) ->
(\(TextBuffer arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_insert_at_cursor argPtr1 arg2 arg3)
(toTextBuffer self)
textPtr
(fromIntegral len)
textBufferInsertByteStringAtCursor :: TextBufferClass self => self -> ByteString -> IO ()
textBufferInsertByteStringAtCursor self text =
unsafeUseAsCStringLen text $ \(textPtr, len) ->
(\(TextBuffer arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_insert_at_cursor argPtr1 arg2 arg3)
(toTextBuffer self)
textPtr
(fromIntegral len)
textBufferInsertInteractive :: (TextBufferClass self, GlibString string) => self
-> TextIter
-> string
-> Bool
-> IO Bool
textBufferInsertInteractive self iter text defaultEditable =
liftM toBool $
withUTFStringLen text $ \(textPtr, len) ->
(\(TextBuffer arg1) (TextIter arg2) arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_insert_interactive argPtr1 argPtr2 arg3 arg4 arg5)
(toTextBuffer self)
iter
textPtr
(fromIntegral len)
(fromBool defaultEditable)
textBufferInsertByteStringInteractive :: TextBufferClass self => self
-> TextIter
-> ByteString
-> Bool
-> IO Bool
textBufferInsertByteStringInteractive self iter text defaultEditable =
liftM toBool $
unsafeUseAsCStringLen text $ \(textPtr, len) ->
(\(TextBuffer arg1) (TextIter arg2) arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_insert_interactive argPtr1 argPtr2 arg3 arg4 arg5)
(toTextBuffer self)
iter
textPtr
(fromIntegral len)
(fromBool defaultEditable)
textBufferInsertInteractiveAtCursor :: (TextBufferClass self, GlibString string) => self
-> string
-> Bool
-> IO Bool
textBufferInsertInteractiveAtCursor self text defaultEditable =
liftM toBool $
withUTFStringLen text $ \(textPtr, len) ->
(\(TextBuffer arg1) arg2 arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_insert_interactive_at_cursor argPtr1 arg2 arg3 arg4)
(toTextBuffer self)
textPtr
(fromIntegral len)
(fromBool defaultEditable)
textBufferInsertByteStringInteractiveAtCursor :: TextBufferClass self => self
-> ByteString
-> Bool
-> IO Bool
textBufferInsertByteStringInteractiveAtCursor self text defaultEditable =
liftM toBool $
unsafeUseAsCStringLen text $ \(textPtr, len) ->
(\(TextBuffer arg1) arg2 arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_insert_interactive_at_cursor argPtr1 arg2 arg3 arg4)
(toTextBuffer self)
textPtr
(fromIntegral len)
(fromBool defaultEditable)
textBufferInsertRange :: TextBufferClass self => self
-> TextIter
-> TextIter
-> TextIter
-> IO ()
textBufferInsertRange self iter start end =
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) (TextIter arg4) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->withForeignPtr arg4 $ \argPtr4 ->gtk_text_buffer_insert_range argPtr1 argPtr2 argPtr3 argPtr4)
(toTextBuffer self)
iter
start
end
textBufferInsertRangeInteractive :: TextBufferClass self => self
-> TextIter
-> TextIter
-> TextIter
-> Bool
-> IO Bool
textBufferInsertRangeInteractive self iter start end defaultEditable =
liftM toBool $
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) (TextIter arg4) arg5 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->withForeignPtr arg4 $ \argPtr4 ->gtk_text_buffer_insert_range_interactive argPtr1 argPtr2 argPtr3 argPtr4 arg5)
(toTextBuffer self)
iter
start
end
(fromBool defaultEditable)
textBufferDelete :: TextBufferClass self => self
-> TextIter
-> TextIter
-> IO ()
textBufferDelete self start end =
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_delete argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
start
end
textBufferDeleteInteractive :: TextBufferClass self => self
-> TextIter
-> TextIter
-> Bool
-> IO Bool
textBufferDeleteInteractive self startIter endIter defaultEditable =
liftM toBool $
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_delete_interactive argPtr1 argPtr2 argPtr3 arg4)
(toTextBuffer self)
startIter
endIter
(fromBool defaultEditable)
textBufferSetText :: (TextBufferClass self, GlibString string) => self
-> string
-> IO ()
textBufferSetText self text =
withUTFStringLen text $ \(textPtr, len) ->
(\(TextBuffer arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_set_text argPtr1 arg2 arg3)
(toTextBuffer self)
textPtr
(fromIntegral len)
textBufferGetText :: (TextBufferClass self, GlibString string) => self
-> TextIter
-> TextIter
-> Bool
-> IO string
textBufferGetText self start end includeHiddenChars =
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_get_text argPtr1 argPtr2 argPtr3 arg4)
(toTextBuffer self)
start
end
(fromBool includeHiddenChars)
>>= readUTFString
textBufferGetSlice :: (TextBufferClass self, GlibString string) => self
-> TextIter
-> TextIter
-> Bool
-> IO string
textBufferGetSlice self start end includeHiddenChars =
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_get_slice argPtr1 argPtr2 argPtr3 arg4)
(toTextBuffer self)
start
end
(fromBool includeHiddenChars)
>>= readUTFString
textBufferSetByteString :: TextBufferClass self => self
-> ByteString
-> IO ()
textBufferSetByteString self text =
unsafeUseAsCStringLen text $ \(textPtr, len) ->
(\(TextBuffer arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_set_text argPtr1 arg2 arg3)
(toTextBuffer self)
textPtr
(fromIntegral len)
textBufferGetByteString :: TextBufferClass self => self
-> TextIter
-> TextIter
-> Bool
-> IO ByteString
textBufferGetByteString self start end includeHiddenChars = do
sPtr <- (\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_get_text argPtr1 argPtr2 argPtr3 arg4)
(toTextBuffer self)
start
end
(fromBool includeHiddenChars)
sLen <- lengthArray0 0 sPtr
unsafePackCStringFinalizer (castPtr sPtr) (fromIntegral sLen)
(g_free (castPtr sPtr))
textBufferGetByteStringSlice :: TextBufferClass self => self
-> TextIter
-> TextIter
-> Bool
-> IO ByteString
textBufferGetByteStringSlice self start end includeHiddenChars = do
sPtr <- (\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_get_slice argPtr1 argPtr2 argPtr3 arg4)
(toTextBuffer self)
start
end
(fromBool includeHiddenChars)
sLen <- lengthArray0 0 sPtr
unsafePackCStringFinalizer (castPtr sPtr) (fromIntegral sLen)
(g_free (castPtr sPtr))
textBufferInsertPixbuf :: TextBufferClass self => self
-> TextIter
-> Pixbuf
-> IO ()
textBufferInsertPixbuf self iter pixbuf =
(\(TextBuffer arg1) (TextIter arg2) (Pixbuf arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_insert_pixbuf argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
iter
pixbuf
textBufferCreateMark :: TextBufferClass self => self
-> Maybe MarkName
-> TextIter
-> Bool
-> IO TextMark
textBufferCreateMark self markName where_ leftGravity =
makeNewGObject mkTextMark $
maybeWith withUTFString markName $ \markNamePtr ->
(\(TextBuffer arg1) arg2 (TextIter arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_create_mark argPtr1 arg2 argPtr3 arg4)
(toTextBuffer self)
markNamePtr
where_
(fromBool leftGravity)
textBufferAddMark :: TextBufferClass self => self
-> TextMark
-> TextIter
-> IO ()
textBufferAddMark self mark iter =
(\(TextBuffer arg1) (TextMark arg2) (TextIter arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_add_mark argPtr1 argPtr2 argPtr3) (toTextBuffer self) (toTextMark mark) iter
textBufferMoveMark :: (TextBufferClass self, TextMarkClass mark) => self
-> mark
-> TextIter
-> IO ()
textBufferMoveMark self mark where_ =
(\(TextBuffer arg1) (TextMark arg2) (TextIter arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_move_mark argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
(toTextMark mark)
where_
textBufferMoveMarkByName :: TextBufferClass self => self
-> MarkName
-> TextIter
-> IO ()
textBufferMoveMarkByName self name where_ =
withUTFString name $ \namePtr ->
(\(TextBuffer arg1) arg2 (TextIter arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_move_mark_by_name argPtr1 arg2 argPtr3)
(toTextBuffer self)
namePtr
where_
textBufferDeleteMark :: (TextBufferClass self, TextMarkClass mark) => self
-> mark
-> IO ()
textBufferDeleteMark self mark =
(\(TextBuffer arg1) (TextMark arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_delete_mark argPtr1 argPtr2)
(toTextBuffer self)
(toTextMark mark)
textBufferDeleteMarkByName :: TextBufferClass self => self
-> MarkName
-> IO ()
textBufferDeleteMarkByName self name =
withUTFString name $ \namePtr ->
(\(TextBuffer arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_delete_mark_by_name argPtr1 arg2)
(toTextBuffer self)
namePtr
textBufferGetMark :: TextBufferClass self => self
-> MarkName
-> IO (Maybe TextMark)
textBufferGetMark self name =
maybeNull (makeNewGObject mkTextMark) $
withUTFString name $ \namePtr ->
(\(TextBuffer arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_get_mark argPtr1 arg2)
(toTextBuffer self)
namePtr
textBufferGetInsert :: TextBufferClass self => self -> IO TextMark
textBufferGetInsert self =
makeNewGObject mkTextMark $
(\(TextBuffer arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_get_insert argPtr1)
(toTextBuffer self)
textBufferGetSelectionBound :: TextBufferClass self => self -> IO TextMark
textBufferGetSelectionBound self =
makeNewGObject mkTextMark $
(\(TextBuffer arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_get_selection_bound argPtr1)
(toTextBuffer self)
textBufferPlaceCursor :: TextBufferClass self => self
-> TextIter
-> IO ()
textBufferPlaceCursor self where_ =
(\(TextBuffer arg1) (TextIter arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_place_cursor argPtr1 argPtr2)
(toTextBuffer self)
where_
textBufferApplyTag :: (TextBufferClass self, TextTagClass tag) => self
-> tag
-> TextIter
-> TextIter
-> IO ()
textBufferApplyTag self tag start end =
(\(TextBuffer arg1) (TextTag arg2) (TextIter arg3) (TextIter arg4) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->withForeignPtr arg4 $ \argPtr4 ->gtk_text_buffer_apply_tag argPtr1 argPtr2 argPtr3 argPtr4)
(toTextBuffer self)
(toTextTag tag)
start
end
textBufferRemoveTag :: (TextBufferClass self, TextTagClass tag) => self
-> tag
-> TextIter
-> TextIter
-> IO ()
textBufferRemoveTag self tag start end =
(\(TextBuffer arg1) (TextTag arg2) (TextIter arg3) (TextIter arg4) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->withForeignPtr arg4 $ \argPtr4 ->gtk_text_buffer_remove_tag argPtr1 argPtr2 argPtr3 argPtr4)
(toTextBuffer self)
(toTextTag tag)
start
end
textBufferApplyTagByName :: TextBufferClass self => self
-> TagName
-> TextIter
-> TextIter
-> IO ()
textBufferApplyTagByName self name start end =
withUTFString name $ \namePtr ->
(\(TextBuffer arg1) arg2 (TextIter arg3) (TextIter arg4) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->withForeignPtr arg4 $ \argPtr4 ->gtk_text_buffer_apply_tag_by_name argPtr1 arg2 argPtr3 argPtr4)
(toTextBuffer self)
namePtr
start
end
textBufferRemoveTagByName :: TextBufferClass self => self
-> TagName
-> TextIter
-> TextIter
-> IO ()
textBufferRemoveTagByName self name start end =
withUTFString name $ \namePtr ->
(\(TextBuffer arg1) arg2 (TextIter arg3) (TextIter arg4) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->withForeignPtr arg4 $ \argPtr4 ->gtk_text_buffer_remove_tag_by_name argPtr1 arg2 argPtr3 argPtr4)
(toTextBuffer self)
namePtr
start
end
textBufferRemoveAllTags :: TextBufferClass self => self
-> TextIter
-> TextIter
-> IO ()
textBufferRemoveAllTags self start end =
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_remove_all_tags argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
start
end
textBufferGetIterAtLineOffset :: TextBufferClass self => self
-> Int
-> Int
-> IO TextIter
textBufferGetIterAtLineOffset self lineNumber charOffset = do
iter <- makeEmptyTextIter
(\(TextBuffer arg1) (TextIter arg2) arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_get_iter_at_line_offset argPtr1 argPtr2 arg3 arg4)
(toTextBuffer self)
iter
(fromIntegral lineNumber)
(fromIntegral charOffset)
return iter
textBufferGetIterAtOffset :: TextBufferClass self => self
-> Int
-> IO TextIter
textBufferGetIterAtOffset self charOffset = do
iter <- makeEmptyTextIter
(\(TextBuffer arg1) (TextIter arg2) arg3 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_get_iter_at_offset argPtr1 argPtr2 arg3)
(toTextBuffer self)
iter
(fromIntegral charOffset)
return iter
textBufferGetIterAtLine :: TextBufferClass self => self
-> Int
-> IO TextIter
textBufferGetIterAtLine self lineNumber = do
iter <- makeEmptyTextIter
(\(TextBuffer arg1) (TextIter arg2) arg3 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_get_iter_at_line argPtr1 argPtr2 arg3)
(toTextBuffer self)
iter
(fromIntegral lineNumber)
return iter
textBufferGetIterAtMark :: (TextBufferClass self, TextMarkClass mark) => self
-> mark
-> IO TextIter
textBufferGetIterAtMark self mark = do
iter <- makeEmptyTextIter
(\(TextBuffer arg1) (TextIter arg2) (TextMark arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_get_iter_at_mark argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
iter
(toTextMark mark)
return iter
textBufferGetStartIter :: TextBufferClass self => self -> IO TextIter
textBufferGetStartIter self = do
iter <- makeEmptyTextIter
(\(TextBuffer arg1) (TextIter arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_get_start_iter argPtr1 argPtr2)
(toTextBuffer self)
iter
return iter
textBufferGetEndIter :: TextBufferClass self => self -> IO TextIter
textBufferGetEndIter self = do
iter <- makeEmptyTextIter
(\(TextBuffer arg1) (TextIter arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_get_end_iter argPtr1 argPtr2)
(toTextBuffer self)
iter
return iter
textBufferGetModified :: TextBufferClass self => self
-> IO Bool
textBufferGetModified self =
liftM toBool $
(\(TextBuffer arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_get_modified argPtr1)
(toTextBuffer self)
textBufferSetModified :: TextBufferClass self => self -> Bool -> IO ()
textBufferSetModified self setting =
(\(TextBuffer arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_set_modified argPtr1 arg2)
(toTextBuffer self)
(fromBool setting)
textBufferDeleteSelection :: TextBufferClass self => self
-> Bool
-> Bool
-> IO Bool
textBufferDeleteSelection self interactive defaultEditable =
liftM toBool $
(\(TextBuffer arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_delete_selection argPtr1 arg2 arg3)
(toTextBuffer self)
(fromBool interactive)
(fromBool defaultEditable)
textBufferHasSelection :: TextBufferClass self => self -> IO Bool
textBufferHasSelection self =
liftM toBool $
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_get_selection_bounds argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
(TextIter nullForeignPtr)
(TextIter nullForeignPtr)
textBufferGetSelectionBounds :: TextBufferClass self => self
-> IO (TextIter, TextIter)
textBufferGetSelectionBounds self = do
start <- makeEmptyTextIter
end <- makeEmptyTextIter
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_get_selection_bounds argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
start
end
return (start, end)
textBufferBeginUserAction :: TextBufferClass self => self -> IO ()
textBufferBeginUserAction self =
(\(TextBuffer arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_begin_user_action argPtr1)
(toTextBuffer self)
textBufferEndUserAction :: TextBufferClass self => self -> IO ()
textBufferEndUserAction self =
(\(TextBuffer arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_text_buffer_end_user_action argPtr1)
(toTextBuffer self)
textBufferBackspace :: TextBufferClass self => self
-> TextIter
-> Bool
-> Bool
-> IO Bool
textBufferBackspace self iter interactive defaultEditable =
liftM toBool $
(\(TextBuffer arg1) (TextIter arg2) arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_backspace argPtr1 argPtr2 arg3 arg4)
(toTextBuffer self)
iter
(fromBool interactive)
(fromBool defaultEditable)
textBufferInsertChildAnchor :: TextBufferClass self => self
-> TextIter
-> TextChildAnchor
-> IO ()
textBufferInsertChildAnchor self iter anchor =
(\(TextBuffer arg1) (TextIter arg2) (TextChildAnchor arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_insert_child_anchor argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
iter
anchor
textBufferCreateChildAnchor :: TextBufferClass self => self
-> TextIter
-> IO TextChildAnchor
textBufferCreateChildAnchor self iter =
makeNewGObject mkTextChildAnchor $
(\(TextBuffer arg1) (TextIter arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_create_child_anchor argPtr1 argPtr2)
(toTextBuffer self)
iter
textBufferSelectRange :: TextBufferClass self => self
-> TextIter
-> TextIter
-> IO ()
textBufferSelectRange self ins bound =
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_select_range argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
ins
bound
textBufferGetIterAtChildAnchor :: TextBufferClass self => self
-> TextIter
-> TextChildAnchor
-> IO ()
textBufferGetIterAtChildAnchor self iter anchor =
(\(TextBuffer arg1) (TextIter arg2) (TextChildAnchor arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_get_iter_at_child_anchor argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
iter
anchor
textBufferGetBounds :: TextBufferClass self => self
-> IO (TextIter, TextIter)
textBufferGetBounds self = do
start <- makeEmptyTextIter
end <- makeEmptyTextIter
(\(TextBuffer arg1) (TextIter arg2) (TextIter arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_get_bounds argPtr1 argPtr2 argPtr3)
(toTextBuffer self)
start
end
return (start, end)
textBufferPasteClipboard :: TextBufferClass self => self
-> Clipboard
-> TextIter
-> Bool
-> IO ()
textBufferPasteClipboard self clipboard overrideLocation defaultEditable =
(\(TextBuffer arg1) (Clipboard arg2) (TextIter arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_paste_clipboard argPtr1 argPtr2 argPtr3 arg4)
(toTextBuffer self)
clipboard
overrideLocation
(fromBool defaultEditable)
textBufferPasteClipboardAtCursor :: TextBufferClass self => self
-> Clipboard
-> Bool
-> IO ()
textBufferPasteClipboardAtCursor self clipboard defaultEditable =
(\(TextBuffer arg1) (Clipboard arg2) (TextIter arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_text_buffer_paste_clipboard argPtr1 argPtr2 argPtr3 arg4)
(toTextBuffer self)
clipboard
(TextIter nullForeignPtr)
(fromBool defaultEditable)
textBufferCopyClipboard :: TextBufferClass self => self
-> Clipboard
-> IO ()
textBufferCopyClipboard self clipboard =
(\(TextBuffer arg1) (Clipboard arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_copy_clipboard argPtr1 argPtr2)
(toTextBuffer self)
clipboard
textBufferCutClipboard :: TextBufferClass self => self
-> Clipboard
-> Bool
-> IO ()
textBufferCutClipboard self clipboard defaultEditable =
(\(TextBuffer arg1) (Clipboard arg2) arg3 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_cut_clipboard argPtr1 argPtr2 arg3)
(toTextBuffer self)
clipboard
(fromBool defaultEditable)
textBufferAddSelectionClipboard :: TextBufferClass self => self
-> Clipboard
-> IO ()
textBufferAddSelectionClipboard self clipboard =
(\(TextBuffer arg1) (Clipboard arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_add_selection_clipboard argPtr1 argPtr2) (toTextBuffer self) clipboard
textBufferRemoveSelectionClipboard :: TextBufferClass self => self
-> Clipboard
-> IO ()
textBufferRemoveSelectionClipboard self clipboard =
(\(TextBuffer arg1) (Clipboard arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_text_buffer_remove_selection_clipboard argPtr1 argPtr2) (toTextBuffer self) clipboard
textBufferTagTable :: (TextBufferClass self, TextTagTableClass textTagTable)
=> ReadWriteAttr self TextTagTable textTagTable
textBufferTagTable = newAttrFromObjectProperty "tag-table"
gtk_text_tag_table_get_type
textBufferText :: (TextBufferClass self, GlibString string) => Attr self string
textBufferText = newAttrFromStringProperty "text"
textBufferModified :: TextBufferClass self => Attr self Bool
textBufferModified = newAttr
textBufferGetModified
textBufferSetModified
applyTag :: TextBufferClass self => Signal self (TextTag -> TextIter -> TextIter -> IO ())
applyTag = Signal (connect_OBJECT_BOXED_BOXED__NONE "apply-tag" mkTextIterCopy mkTextIterCopy)
beginUserAction :: TextBufferClass self => Signal self (IO ())
beginUserAction = Signal (connect_NONE__NONE "begin-user-action")
bufferChanged :: TextBufferClass self => Signal self (IO ())
bufferChanged = Signal (connect_NONE__NONE "changed")
deleteRange :: TextBufferClass self => Signal self (TextIter -> TextIter -> IO ())
deleteRange = Signal (connect_BOXED_BOXED__NONE "delete-range" mkTextIterCopy mkTextIterCopy)
endUserAction :: TextBufferClass self => Signal self (IO ())
endUserAction = Signal (connect_NONE__NONE "end-user-action")
insertPixbuf :: TextBufferClass self => Signal self (TextIter -> Pixbuf -> IO ())
insertPixbuf = Signal (connect_BOXED_OBJECT__NONE "insert-pixbuf" mkTextIterCopy)
insertChildAnchor :: TextBufferClass self => Signal self (TextIter -> TextChildAnchor -> IO ())
insertChildAnchor = Signal (connect_BOXED_OBJECT__NONE "insert-child-anchor" mkTextIterCopy)
bufferInsertText :: (TextBufferClass self, GlibString string) => Signal self (TextIter -> string -> IO ())
bufferInsertText = Signal $ \after obj handler ->
connect_BOXED_PTR_INT__NONE "insert-text" mkTextIterCopy after obj
(\iter strPtr strLen -> peekUTFStringLen (strPtr, strLen) >>= handler iter)
markDeleted :: TextBufferClass self => Signal self (TextMark -> IO ())
markDeleted = Signal (connect_OBJECT__NONE "mark-deleted")
markSet :: TextBufferClass self => Signal self (TextIter -> TextMark -> IO ())
markSet = Signal (connect_BOXED_OBJECT__NONE "mark-set" mkTextIterCopy)
modifiedChanged :: TextBufferClass self => Signal self (IO ())
modifiedChanged = Signal (connect_NONE__NONE "modified-changed")
pasteDone :: TextBufferClass self => Signal self (Clipboard -> IO ())
pasteDone = Signal (connect_OBJECT__NONE "paste-done")
removeTag :: TextBufferClass self => Signal self (TextTag -> TextIter -> TextIter -> IO ())
removeTag = Signal (connect_OBJECT_BOXED_BOXED__NONE "remove-tag" mkTextIterCopy mkTextIterCopy)
onApplyTag, afterApplyTag :: TextBufferClass self => self
-> (TextTag -> TextIter -> TextIter -> IO ())
-> IO (ConnectId self)
onApplyTag = connect_OBJECT_BOXED_BOXED__NONE "apply-tag"
mkTextIterCopy mkTextIterCopy False
afterApplyTag = connect_OBJECT_BOXED_BOXED__NONE "apply-tag"
mkTextIterCopy mkTextIterCopy True
onBeginUserAction, afterBeginUserAction :: TextBufferClass self => self
-> IO ()
-> IO (ConnectId self)
onBeginUserAction = connect_NONE__NONE "begin-user-action" False
afterBeginUserAction = connect_NONE__NONE "begin-user-action" True
onBufferChanged, afterBufferChanged :: TextBufferClass self => self
-> IO ()
-> IO (ConnectId self)
onBufferChanged = connect_NONE__NONE "changed" False
afterBufferChanged = connect_NONE__NONE "changed" True
onDeleteRange, afterDeleteRange :: TextBufferClass self => self
-> (TextIter -> TextIter -> IO ())
-> IO (ConnectId self)
onDeleteRange = connect_BOXED_BOXED__NONE "delete-range"
mkTextIterCopy mkTextIterCopy False
afterDeleteRange = connect_BOXED_BOXED__NONE "delete-range"
mkTextIterCopy mkTextIterCopy True
onEndUserAction, afterEndUserAction :: TextBufferClass self => self
-> IO ()
-> IO (ConnectId self)
onEndUserAction = connect_NONE__NONE "end-user-action" False
afterEndUserAction = connect_NONE__NONE "end-user-action" True
onInsertPixbuf, afterInsertPixbuf :: TextBufferClass self => self
-> (TextIter -> Pixbuf -> IO ())
-> IO (ConnectId self)
onInsertPixbuf = connect_BOXED_OBJECT__NONE "insert-pixbuf" mkTextIterCopy False
afterInsertPixbuf = connect_BOXED_OBJECT__NONE "insert-pixbuf" mkTextIterCopy True
onBufferInsertText, afterBufferInsertText :: (TextBufferClass self, GlibString string) => self
-> (TextIter -> string -> IO ())
-> IO (ConnectId self)
onBufferInsertText self user =
connect_BOXED_PTR_INT__NONE "insert-text" mkTextIterCopy False self $
\iter strP strLen -> do
str <- peekUTFStringLen (strP,strLen)
user iter str
afterBufferInsertText self user =
connect_BOXED_PTR_INT__NONE "insert-text" mkTextIterCopy True self $
\iter strP strLen -> do
str <- peekUTFStringLen (strP,strLen)
user iter str
onMarkDeleted, afterMarkDeleted :: TextBufferClass self => self
-> (TextMark -> IO ())
-> IO (ConnectId self)
onMarkDeleted = connect_OBJECT__NONE "mark-deleted" False
afterMarkDeleted = connect_OBJECT__NONE "mark-deleted" True
onMarkSet, afterMarkSet :: TextBufferClass self => self ->
(TextIter -> TextMark -> IO ()) ->
IO (ConnectId self)
onMarkSet = connect_BOXED_OBJECT__NONE "mark-set" mkTextIterCopy False
afterMarkSet = connect_BOXED_OBJECT__NONE "mark-set" mkTextIterCopy True
onModifiedChanged, afterModifiedChanged :: TextBufferClass self => self
-> IO ()
-> IO (ConnectId self)
onModifiedChanged = connect_NONE__NONE "modified-changed" False
afterModifiedChanged = connect_NONE__NONE "modified-changed" True
onRemoveTag, afterRemoveTag :: TextBufferClass self => self
-> (TextTag -> TextIter -> TextIter -> IO ())
-> IO (ConnectId self)
onRemoveTag = connect_OBJECT_BOXED_BOXED__NONE "remove-tag"
mkTextIterCopy mkTextIterCopy False
afterRemoveTag = connect_OBJECT_BOXED_BOXED__NONE "remove-tag"
mkTextIterCopy mkTextIterCopy True
foreign import ccall unsafe "gtk_text_buffer_new"
gtk_text_buffer_new :: ((Ptr TextTagTable) -> (IO (Ptr TextBuffer)))
foreign import ccall unsafe "gtk_text_buffer_get_line_count"
gtk_text_buffer_get_line_count :: ((Ptr TextBuffer) -> (IO CInt))
foreign import ccall unsafe "gtk_text_buffer_get_char_count"
gtk_text_buffer_get_char_count :: ((Ptr TextBuffer) -> (IO CInt))
foreign import ccall unsafe "gtk_text_buffer_get_tag_table"
gtk_text_buffer_get_tag_table :: ((Ptr TextBuffer) -> (IO (Ptr TextTagTable)))
foreign import ccall safe "gtk_text_buffer_insert"
gtk_text_buffer_insert :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr CChar) -> (CInt -> (IO ())))))
foreign import ccall safe "gtk_text_buffer_insert_at_cursor"
gtk_text_buffer_insert_at_cursor :: ((Ptr TextBuffer) -> ((Ptr CChar) -> (CInt -> (IO ()))))
foreign import ccall safe "gtk_text_buffer_insert_interactive"
gtk_text_buffer_insert_interactive :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr CChar) -> (CInt -> (CInt -> (IO CInt))))))
foreign import ccall safe "gtk_text_buffer_insert_interactive_at_cursor"
gtk_text_buffer_insert_interactive_at_cursor :: ((Ptr TextBuffer) -> ((Ptr CChar) -> (CInt -> (CInt -> (IO CInt)))))
foreign import ccall safe "gtk_text_buffer_insert_range"
gtk_text_buffer_insert_range :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (IO ())))))
foreign import ccall safe "gtk_text_buffer_insert_range_interactive"
gtk_text_buffer_insert_range_interactive :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (CInt -> (IO CInt))))))
foreign import ccall safe "gtk_text_buffer_delete"
gtk_text_buffer_delete :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (IO ()))))
foreign import ccall safe "gtk_text_buffer_delete_interactive"
gtk_text_buffer_delete_interactive :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (CInt -> (IO CInt)))))
foreign import ccall safe "gtk_text_buffer_set_text"
gtk_text_buffer_set_text :: ((Ptr TextBuffer) -> ((Ptr CChar) -> (CInt -> (IO ()))))
foreign import ccall unsafe "gtk_text_buffer_get_text"
gtk_text_buffer_get_text :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (CInt -> (IO (Ptr CChar))))))
foreign import ccall unsafe "gtk_text_buffer_get_slice"
gtk_text_buffer_get_slice :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (CInt -> (IO (Ptr CChar))))))
foreign import ccall unsafe "g_free"
g_free :: ((Ptr ()) -> (IO ()))
foreign import ccall safe "gtk_text_buffer_insert_pixbuf"
gtk_text_buffer_insert_pixbuf :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr Pixbuf) -> (IO ()))))
foreign import ccall safe "gtk_text_buffer_create_mark"
gtk_text_buffer_create_mark :: ((Ptr TextBuffer) -> ((Ptr CChar) -> ((Ptr TextIter) -> (CInt -> (IO (Ptr TextMark))))))
foreign import ccall safe "gtk_text_buffer_add_mark"
gtk_text_buffer_add_mark :: ((Ptr TextBuffer) -> ((Ptr TextMark) -> ((Ptr TextIter) -> (IO ()))))
foreign import ccall safe "gtk_text_buffer_move_mark"
gtk_text_buffer_move_mark :: ((Ptr TextBuffer) -> ((Ptr TextMark) -> ((Ptr TextIter) -> (IO ()))))
foreign import ccall safe "gtk_text_buffer_move_mark_by_name"
gtk_text_buffer_move_mark_by_name :: ((Ptr TextBuffer) -> ((Ptr CChar) -> ((Ptr TextIter) -> (IO ()))))
foreign import ccall safe "gtk_text_buffer_delete_mark"
gtk_text_buffer_delete_mark :: ((Ptr TextBuffer) -> ((Ptr TextMark) -> (IO ())))
foreign import ccall safe "gtk_text_buffer_delete_mark_by_name"
gtk_text_buffer_delete_mark_by_name :: ((Ptr TextBuffer) -> ((Ptr CChar) -> (IO ())))
foreign import ccall unsafe "gtk_text_buffer_get_mark"
gtk_text_buffer_get_mark :: ((Ptr TextBuffer) -> ((Ptr CChar) -> (IO (Ptr TextMark))))
foreign import ccall unsafe "gtk_text_buffer_get_insert"
gtk_text_buffer_get_insert :: ((Ptr TextBuffer) -> (IO (Ptr TextMark)))
foreign import ccall unsafe "gtk_text_buffer_get_selection_bound"
gtk_text_buffer_get_selection_bound :: ((Ptr TextBuffer) -> (IO (Ptr TextMark)))
foreign import ccall safe "gtk_text_buffer_place_cursor"
gtk_text_buffer_place_cursor :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> (IO ())))
foreign import ccall safe "gtk_text_buffer_apply_tag"
gtk_text_buffer_apply_tag :: ((Ptr TextBuffer) -> ((Ptr TextTag) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (IO ())))))
foreign import ccall safe "gtk_text_buffer_remove_tag"
gtk_text_buffer_remove_tag :: ((Ptr TextBuffer) -> ((Ptr TextTag) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (IO ())))))
foreign import ccall safe "gtk_text_buffer_apply_tag_by_name"
gtk_text_buffer_apply_tag_by_name :: ((Ptr TextBuffer) -> ((Ptr CChar) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (IO ())))))
foreign import ccall safe "gtk_text_buffer_remove_tag_by_name"
gtk_text_buffer_remove_tag_by_name :: ((Ptr TextBuffer) -> ((Ptr CChar) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (IO ())))))
foreign import ccall safe "gtk_text_buffer_remove_all_tags"
gtk_text_buffer_remove_all_tags :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (IO ()))))
foreign import ccall unsafe "gtk_text_buffer_get_iter_at_line_offset"
gtk_text_buffer_get_iter_at_line_offset :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> (CInt -> (CInt -> (IO ())))))
foreign import ccall unsafe "gtk_text_buffer_get_iter_at_offset"
gtk_text_buffer_get_iter_at_offset :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> (CInt -> (IO ()))))
foreign import ccall unsafe "gtk_text_buffer_get_iter_at_line"
gtk_text_buffer_get_iter_at_line :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> (CInt -> (IO ()))))
foreign import ccall unsafe "gtk_text_buffer_get_iter_at_mark"
gtk_text_buffer_get_iter_at_mark :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextMark) -> (IO ()))))
foreign import ccall unsafe "gtk_text_buffer_get_start_iter"
gtk_text_buffer_get_start_iter :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> (IO ())))
foreign import ccall unsafe "gtk_text_buffer_get_end_iter"
gtk_text_buffer_get_end_iter :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> (IO ())))
foreign import ccall unsafe "gtk_text_buffer_get_modified"
gtk_text_buffer_get_modified :: ((Ptr TextBuffer) -> (IO CInt))
foreign import ccall safe "gtk_text_buffer_set_modified"
gtk_text_buffer_set_modified :: ((Ptr TextBuffer) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_text_buffer_delete_selection"
gtk_text_buffer_delete_selection :: ((Ptr TextBuffer) -> (CInt -> (CInt -> (IO CInt))))
foreign import ccall unsafe "gtk_text_buffer_get_selection_bounds"
gtk_text_buffer_get_selection_bounds :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (IO CInt))))
foreign import ccall safe "gtk_text_buffer_begin_user_action"
gtk_text_buffer_begin_user_action :: ((Ptr TextBuffer) -> (IO ()))
foreign import ccall safe "gtk_text_buffer_end_user_action"
gtk_text_buffer_end_user_action :: ((Ptr TextBuffer) -> (IO ()))
foreign import ccall safe "gtk_text_buffer_backspace"
gtk_text_buffer_backspace :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> (CInt -> (CInt -> (IO CInt)))))
foreign import ccall safe "gtk_text_buffer_insert_child_anchor"
gtk_text_buffer_insert_child_anchor :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextChildAnchor) -> (IO ()))))
foreign import ccall safe "gtk_text_buffer_create_child_anchor"
gtk_text_buffer_create_child_anchor :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> (IO (Ptr TextChildAnchor))))
foreign import ccall safe "gtk_text_buffer_select_range"
gtk_text_buffer_select_range :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (IO ()))))
foreign import ccall safe "gtk_text_buffer_get_iter_at_child_anchor"
gtk_text_buffer_get_iter_at_child_anchor :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextChildAnchor) -> (IO ()))))
foreign import ccall unsafe "gtk_text_buffer_get_bounds"
gtk_text_buffer_get_bounds :: ((Ptr TextBuffer) -> ((Ptr TextIter) -> ((Ptr TextIter) -> (IO ()))))
foreign import ccall safe "gtk_text_buffer_paste_clipboard"
gtk_text_buffer_paste_clipboard :: ((Ptr TextBuffer) -> ((Ptr Clipboard) -> ((Ptr TextIter) -> (CInt -> (IO ())))))
foreign import ccall safe "gtk_text_buffer_copy_clipboard"
gtk_text_buffer_copy_clipboard :: ((Ptr TextBuffer) -> ((Ptr Clipboard) -> (IO ())))
foreign import ccall safe "gtk_text_buffer_cut_clipboard"
gtk_text_buffer_cut_clipboard :: ((Ptr TextBuffer) -> ((Ptr Clipboard) -> (CInt -> (IO ()))))
foreign import ccall safe "gtk_text_buffer_add_selection_clipboard"
gtk_text_buffer_add_selection_clipboard :: ((Ptr TextBuffer) -> ((Ptr Clipboard) -> (IO ())))
foreign import ccall safe "gtk_text_buffer_remove_selection_clipboard"
gtk_text_buffer_remove_selection_clipboard :: ((Ptr TextBuffer) -> ((Ptr Clipboard) -> (IO ())))
foreign import ccall unsafe "gtk_text_tag_table_get_type"
gtk_text_tag_table_get_type :: CULong