|
Graphics.UI.Gtk.SourceView.SourceBuffer | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
Description |
|
|
Synopsis |
|
|
|
Documentation |
|
data SourceBuffer |
Instances | |
|
|
class TextBufferClass o => SourceBufferClass o |
| Instances | |
|
|
castToSourceBuffer :: GObjectClass obj => obj -> SourceBuffer |
|
sourceBufferNew :: Maybe SourceTagTable -> IO SourceBuffer |
Create a new SourceBuffer, possibly
taking a SourceTagTable.
|
|
sourceBufferNewWithLanguage :: SourceLanguage -> IO SourceBuffer |
Create a new SourceBuffer
with a SourceLanguage.
|
|
sourceBufferSetCheckBrackets :: SourceBuffer -> Bool -> IO () |
|
sourceBufferGetCheckBrackets :: SourceBuffer -> IO Bool |
|
sourceBufferSetBracketsMatchStyle :: SourceBuffer -> SourceTagStyle -> IO () |
|
sourceBufferSetHighlight :: SourceBuffer -> Bool -> IO () |
|
sourceBufferGetHighlight :: SourceBuffer -> IO Bool |
|
sourceBufferSetMaxUndoLevels :: SourceBuffer -> Int -> IO () |
|
sourceBufferGetMaxUndoLevels :: SourceBuffer -> IO Int |
|
sourceBufferSetLanguage :: SourceBuffer -> SourceLanguage -> IO () |
|
sourceBufferGetLanguage :: SourceBuffer -> IO SourceLanguage |
|
sourceBufferSetEscapeChar :: SourceBuffer -> Char -> IO () |
|
sourceBufferGetEscapeChar :: SourceBuffer -> IO Char |
|
sourceBufferCanUndo :: SourceBuffer -> IO Bool |
|
sourceBufferCanRedo :: SourceBuffer -> IO Bool |
|
sourceBufferUndo :: SourceBuffer -> IO () |
|
sourceBufferRedo :: SourceBuffer -> IO () |
|
sourceBufferBeginNotUndoableAction :: SourceBuffer -> IO () |
|
sourceBufferEndNotUndoableAction :: SourceBuffer -> IO () |
|
sourceBufferCreateMarker :: SourceBuffer -> Maybe String -> String -> TextIter -> IO SourceMarker |
Creates a marker in the buffer of the given type.
- A marker is
semantically very similar to a 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 TextMark,
so all characteristics
and restrictions to marks apply to markers too. These includes
life cycle issues and onMarkSet
and onMarkDeleted signal
emissions.
- Like a TextMark, a SourceMarker
can be anonymous if the
passed name is Nothing. Also, the buffer owns the markers so you
shouldn't unreference it.
|
|
sourceBufferMoveMarker :: SourceBuffer -> SourceMarker -> TextIter -> IO () |
|
sourceBufferDeleteMarker :: SourceBuffer -> SourceMarker -> IO () |
|
sourceBufferGetMarker :: SourceBuffer -> String -> IO (Maybe SourceMarker) |
|
sourceBufferGetMarkersInRegion :: SourceBuffer -> TextIter -> TextIter -> IO [SourceMarker] |
Returns an ordered (by position) list of SourceMarkers inside the
region delimited by the two TextIters. The iterators may be in any
order.
|
|
sourceBufferGetFirstMarker :: SourceBuffer -> IO (Maybe SourceMarker) |
Returns the first (nearest to the top of the buffer) marker.
|
|
sourceBufferGetLastMarker :: SourceBuffer -> IO (Maybe SourceMarker) |
Returns the last (nearest to the bottom of the buffer) marker.
|
|
sourceBufferGetIterAtMarker :: SourceBuffer -> SourceMarker -> IO TextIter |
|
sourceBufferGetNextMarker :: SourceBuffer -> TextIter -> IO (Maybe SourceMarker) |
Returns the nearest marker to the right of the given iterator.
If there are
multiple markers at the same position, this function will always
return the first one (from the internal linked list), even if
starting the search exactly at its location. You can get the
others using sourceMarkerNext.
|
|
sourceBufferGetPrevMarker :: SourceBuffer -> TextIter -> IO (Maybe SourceMarker) |
Returns the nearest marker to the left of the given iterator.
If there are
multiple markers at the same position, this function will always
return the last one (from the internal linked list), even if
starting the search exactly at its location. You can get the
others using sourceMarkerPrev.
|
|
Produced by Haddock version 0.8 |