gtksourceview2-0.12.3.1: Binding to the GtkSourceView library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Safe HaskellSafe-Infered

Graphics.UI.Gtk.SourceView.SourceStyleScheme

Contents

Description

 

Synopsis

Description

SourceStyleScheme contains all the text styles to be used in SourceView and SourceBuffer. For instance, it contains text styles for syntax highlighting, it may contain foreground and background color for non-highlighted text, color for the line numbers, etc.

Style schemes are stored in XML files. The format of a scheme file is the documented in the style scheme reference.

Types

Methods

sourceStyleSchemeGetIdSource

Arguments

:: SourceStyleSchemeClass sss 
=> sss 
-> IO String

returns scheme id.

sourceStyleSchemeGetNameSource

Arguments

:: SourceStyleSchemeClass sss 
=> sss 
-> IO String

returns scheme name.

sourceStyleSchemeGetDescriptionSource

Arguments

:: SourceStyleSchemeClass sss 
=> sss 
-> IO String

returns scheme description (if defined) or empty.

sourceStyleSchemeGetAuthorsSource

Arguments

:: SourceStyleSchemeClass sss 
=> sss 
-> IO [String]

returns an array containing the scheme authors or empty if no author is specified by the style scheme.

sourceStyleSchemeGetFilenameSource

Arguments

:: SourceStyleSchemeClass sss 
=> sss 
-> IO String

returns scheme file name if the scheme was created parsing a style scheme file or empty in the other cases.

sourceStyleSchemeGetStyleSource

Arguments

:: SourceStyleSchemeClass sss 
=> sss 
-> String

styleId id of the style to retrieve.

-> IO SourceStyle

returns style which corresponds to styleId in the scheme

Attributes

sourceStyleSchemeDescription :: SourceStyleSchemeClass sss => ReadAttr sss StringSource

Style scheme description.

Default value: ""

sourceStyleSchemeFilename :: SourceStyleSchemeClass sss => ReadAttr sss FilePathSource

Style scheme filename or Nothing.

Default value: ""

sourceStyleSchemeId :: SourceStyleSchemeClass sss => ReadAttr sss StringSource

Style scheme id, a unique string used to identify the style scheme in SourceStyleSchemeManager.

Default value: ""

sourceStyleSchemeName :: SourceStyleSchemeClass sss => ReadAttr sss StringSource

Style scheme name, a translatable string to present to user.

Default value: ""