| Gtk2Hs | Contents | Index

Graphics.UI.Gtk.SourceView.SourceBuffer

Portability | portable (depends on GHC)
Stability | provisional
Maintainer | gtk2hs-users@lists.sourceforge.net

Description
Synopsis

data SourceBuffer
class TextBufferClass o => SourceBufferClass o
castToSourceBuffer :: GObjectClass obj => obj -> SourceBuffer
sourceBufferNew :: Maybe TextTagTable -> IO SourceBuffer
sourceBufferNewWithLanguage :: SourceLanguage -> IO SourceBuffer
sourceBufferSetHighlightSyntax :: SourceBuffer -> Bool -> IO ()
sourceBufferGetHighlightSyntax :: SourceBuffer -> IO Bool
sourceBufferSetLanguage :: SourceBuffer -> SourceLanguage -> IO ()
sourceBufferGetLanguage :: SourceBuffer -> IO SourceLanguage
sourceBufferSetHighlightMatchingBrackets :: SourceBuffer -> Bool -> IO ()
sourceBufferGetHighlightMatchingBrackets :: SourceBuffer -> IO Bool
sourceBufferSetStyleScheme :: SourceBuffer -> SourceStyleScheme -> IO ()
sourceBufferGetStyleScheme :: SourceBuffer -> IO SourceStyleScheme
sourceBufferSetMaxUndoLevels :: SourceBuffer -> Int -> IO ()
sourceBufferGetMaxUndoLevels :: SourceBuffer -> IO Int
sourceBufferGetCanUndo :: SourceBuffer -> IO Bool
sourceBufferGetCanRedo :: SourceBuffer -> IO Bool
sourceBufferUndo :: SourceBuffer -> IO ()
sourceBufferRedo :: SourceBuffer -> IO ()
sourceBufferBeginNotUndoableAction :: SourceBuffer -> IO ()
sourceBufferEndNotUndoableAction :: SourceBuffer -> IO ()
sourceBufferCreateSourceMark :: SourceBuffer -> Maybe String -> String -> TextIter -> IO SourceMark
sourceBufferEnsureHighlight :: SourceBuffer -> TextIter -> TextIter -> IO ()
sourceBufferCanRedo :: ReadAttr SourceBuffer Bool
sourceBufferCanUndo :: ReadAttr SourceBuffer Bool
sourceBufferHighlightMatchingBrackets :: Attr SourceBuffer Bool
sourceBufferHighlightSyntax :: Attr SourceBuffer Bool
sourceBufferLanguage :: Attr SourceBuffer (Maybe SourceLanguage)
sourceBufferSourceStyleScheme :: Attr SourceBuffer (Maybe SourceStyleScheme)
sourceBufferHighlightUpdated :: Signal SourceBuffer (TextIter -> TextIter -> IO ())

Documentation
data SourceBuffer

Instances

GObjectClass SourceBuffer
TextBufferClass SourceBuffer
SourceBufferClass SourceBuffer

class TextBufferClass o => SourceBufferClass o

Instances

SourceBufferClass SourceBuffer

castToSourceBuffer :: GObjectClass obj => obj -> SourceBuffer
sourceBufferNew :: Maybe TextTagTable -> IO SourceBuffer
Create a new `SourceBuffer`, possibly taking a `TextTagTable`.
sourceBufferNewWithLanguage :: SourceLanguage -> IO SourceBuffer
Create a new `SourceBuffer` with a `SourceLanguage`.
sourceBufferSetHighlightSyntax :: SourceBuffer -> Bool -> IO ()
sourceBufferGetHighlightSyntax :: SourceBuffer -> IO Bool
sourceBufferSetLanguage :: SourceBuffer -> SourceLanguage -> IO ()
sourceBufferGetLanguage :: SourceBuffer -> IO SourceLanguage
sourceBufferSetHighlightMatchingBrackets :: SourceBuffer -> Bool -> IO ()
sourceBufferGetHighlightMatchingBrackets :: SourceBuffer -> IO Bool
sourceBufferSetStyleScheme :: SourceBuffer -> SourceStyleScheme -> IO ()
sourceBufferGetStyleScheme :: SourceBuffer -> IO SourceStyleScheme
sourceBufferSetMaxUndoLevels :: SourceBuffer -> Int -> IO ()
sourceBufferGetMaxUndoLevels :: SourceBuffer -> IO Int
sourceBufferGetCanUndo :: SourceBuffer -> IO Bool
sourceBufferGetCanRedo :: SourceBuffer -> IO Bool
sourceBufferUndo :: SourceBuffer -> IO ()
sourceBufferRedo :: SourceBuffer -> IO ()
sourceBufferBeginNotUndoableAction :: SourceBuffer -> IO ()
sourceBufferEndNotUndoableAction :: SourceBuffer -> IO ()
sourceBufferCreateSourceMark :: SourceBuffer -> Maybe String -> String -> TextIter -> IO SourceMark

Creates a marker in the buffer of the given type.

- A marker is semantically very similar to a Graphics.UI.Gtk.Multiline.TextMark, except it has a type which is used by the `SourceView` displaying the buffer to show a pixmap on the left margin, at the line the marker is in. Because of this, a marker is generally associated to a line and not a character position. Markers are also accessible through a position or range in the buffer.
- Markers are implemented using Graphics.UI.Gtk.Multiline.TextMark, so all characteristics and restrictions to marks apply to markers too. These includes life cycle issues and Graphics.UI.Gtk.Multiline.TextMark.onMarkSet and Graphics.UI.Gtk.Multiline.TextMark.onMarkDeleted signal emissions.
- Like a Graphics.UI.Gtk.Multiline.TextMark, a SourceMarker can be anonymous if the passed name is `Nothing`. Also, the buffer owns the markers so you shouldn't unreference it.

sourceBufferEnsureHighlight :: SourceBuffer -> TextIter -> TextIter -> IO ()
sourceBufferCanRedo :: ReadAttr SourceBuffer Bool
sourceBufferCanUndo :: ReadAttr SourceBuffer Bool
sourceBufferHighlightMatchingBrackets :: Attr SourceBuffer Bool
sourceBufferHighlightSyntax :: Attr SourceBuffer Bool
sourceBufferLanguage :: Attr SourceBuffer (Maybe SourceLanguage)
sourceBufferSourceStyleScheme :: Attr SourceBuffer (Maybe SourceStyleScheme)
sourceBufferHighlightUpdated :: Signal SourceBuffer (TextIter -> TextIter -> IO ())
Produced by Haddock version 2.4.2