Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
- data SourceStyleScheme
- class GObjectClass o => SourceStyleSchemeClass o
- castToSourceStyleScheme :: GObjectClass obj => obj -> SourceStyleScheme
- sourceStyleSchemeGetId :: (SourceStyleSchemeClass sss, GlibString string) => sss -> IO string
- sourceStyleSchemeGetName :: (SourceStyleSchemeClass sss, GlibString string) => sss -> IO string
- sourceStyleSchemeGetDescription :: (SourceStyleSchemeClass sss, GlibString string) => sss -> IO string
- sourceStyleSchemeGetAuthors :: (SourceStyleSchemeClass sss, GlibString string) => sss -> IO [string]
- sourceStyleSchemeGetFilename :: (SourceStyleSchemeClass sss, GlibString string) => sss -> IO string
- sourceStyleSchemeGetStyle :: (SourceStyleSchemeClass sss, GlibString string) => sss -> string -> IO SourceStyle
- sourceStyleSchemeDescription :: (SourceStyleSchemeClass sss, GlibString string) => ReadAttr sss string
- sourceStyleSchemeFilename :: (SourceStyleSchemeClass sss, GlibFilePath fp) => ReadAttr sss fp
- sourceStyleSchemeId :: (SourceStyleSchemeClass sss, GlibString string) => ReadAttr sss string
- sourceStyleSchemeName :: (SourceStyleSchemeClass sss, GlibString string) => ReadAttr sss string
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
data SourceStyleScheme Source
Methods
castToSourceStyleScheme :: GObjectClass obj => obj -> SourceStyleScheme Source
:: (SourceStyleSchemeClass sss, GlibString string) | |
=> sss | |
-> IO string | returns scheme id. |
sourceStyleSchemeGetName Source
:: (SourceStyleSchemeClass sss, GlibString string) | |
=> sss | |
-> IO string | returns scheme name. |
sourceStyleSchemeGetDescription Source
:: (SourceStyleSchemeClass sss, GlibString string) | |
=> sss | |
-> IO string | returns scheme description (if defined) or empty. |
sourceStyleSchemeGetAuthors Source
:: (SourceStyleSchemeClass sss, GlibString string) | |
=> sss | |
-> IO [string] | returns an array containing the scheme authors or empty if no author is specified by the style scheme. |
sourceStyleSchemeGetFilename Source
:: (SourceStyleSchemeClass sss, GlibString string) | |
=> sss | |
-> IO string | returns scheme file name if the scheme was created parsing a style scheme file or empty in the other cases. |
sourceStyleSchemeGetStyle Source
:: (SourceStyleSchemeClass sss, GlibString string) | |
=> sss | |
-> string |
|
-> IO SourceStyle | returns style which corresponds to |
Attributes
sourceStyleSchemeDescription :: (SourceStyleSchemeClass sss, GlibString string) => ReadAttr sss string Source
Style scheme description.
Default value: ""
sourceStyleSchemeFilename :: (SourceStyleSchemeClass sss, GlibFilePath fp) => ReadAttr sss fp Source
Style scheme filename or Nothing
.
Default value: ""
sourceStyleSchemeId :: (SourceStyleSchemeClass sss, GlibString string) => ReadAttr sss string Source
Style scheme id, a unique string used to identify the style scheme in SourceStyleSchemeManager
.
Default value: ""
sourceStyleSchemeName :: (SourceStyleSchemeClass sss, GlibString string) => ReadAttr sss string Source
Style scheme name, a translatable string to present to user.
Default value: ""