gi-gtksource-3.0.24: GtkSource bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GtkSource.Objects.StyleSchemeManager

Description

No description available in the introspection data.

Synopsis

Exported types

newtype StyleSchemeManager Source #

Memory-managed wrapper type.

Constructors

StyleSchemeManager (ManagedPtr StyleSchemeManager) 

Instances

Instances details
Eq StyleSchemeManager Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemeManager

GObject StyleSchemeManager Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemeManager

ManagedPtrNewtype StyleSchemeManager Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemeManager

TypedObject StyleSchemeManager Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemeManager

Methods

glibType :: IO GType

HasParentTypes StyleSchemeManager Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemeManager

IsGValue (Maybe StyleSchemeManager) Source #

Convert StyleSchemeManager to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GtkSource.Objects.StyleSchemeManager

type ParentTypes StyleSchemeManager Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemeManager

type ParentTypes StyleSchemeManager = '[Object]

class (GObject o, IsDescendantOf StyleSchemeManager o) => IsStyleSchemeManager o Source #

Type class for types which can be safely cast to StyleSchemeManager, for instance with toStyleSchemeManager.

Instances

Instances details
(GObject o, IsDescendantOf StyleSchemeManager o) => IsStyleSchemeManager o Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemeManager

toStyleSchemeManager :: (MonadIO m, IsStyleSchemeManager o) => o -> m StyleSchemeManager Source #

Cast to StyleSchemeManager, for types for which this is known to be safe. For general casts, use castTo.

Methods

appendSearchPath

styleSchemeManagerAppendSearchPath Source #

Arguments

:: (HasCallStack, MonadIO m, IsStyleSchemeManager a) 
=> a

manager: a StyleSchemeManager.

-> Text

path: a directory or a filename.

-> m () 

Appends path to the list of directories where the manager looks for style scheme files. See styleSchemeManagerSetSearchPath for details.

forceRescan

styleSchemeManagerForceRescan Source #

Arguments

:: (HasCallStack, MonadIO m, IsStyleSchemeManager a) 
=> a

manager: a StyleSchemeManager.

-> m () 

Mark any currently cached information about the available style scehems as invalid. All the available style schemes will be reloaded next time the manager is accessed.

getDefault

styleSchemeManagerGetDefault Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m StyleSchemeManager

Returns: a StyleSchemeManager. Return value is owned by GtkSourceView library and must not be unref'ed.

Returns the default StyleSchemeManager instance.

getScheme

styleSchemeManagerGetScheme Source #

Arguments

:: (HasCallStack, MonadIO m, IsStyleSchemeManager a) 
=> a

manager: a StyleSchemeManager.

-> Text

schemeId: style scheme id to find.

-> m StyleScheme

Returns: a StyleScheme object. Returned value is owned by manager and must not be unref'ed.

Looks up style scheme by id.

getSchemeIds

styleSchemeManagerGetSchemeIds Source #

Arguments

:: (HasCallStack, MonadIO m, IsStyleSchemeManager a) 
=> a

manager: a StyleSchemeManager.

-> m (Maybe [Text])

Returns: a Nothing-terminated array of strings containing the ids of the available style schemes or Nothing if no style scheme is available. The array is sorted alphabetically according to the scheme name. The array is owned by the manager and must not be modified.

Returns the ids of the available style schemes.

getSearchPath

styleSchemeManagerGetSearchPath Source #

Arguments

:: (HasCallStack, MonadIO m, IsStyleSchemeManager a) 
=> a

manager: a StyleSchemeManager.

-> m [Text]

Returns: a Nothing-terminated array of string containing the search path. The array is owned by the manager and must not be modified.

Returns the current search path for the manager. See styleSchemeManagerSetSearchPath for details.

new

styleSchemeManagerNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m StyleSchemeManager

Returns: a new StyleSchemeManager.

Creates a new style manager. If you do not need more than one style manager then use styleSchemeManagerGetDefault instead.

prependSearchPath

styleSchemeManagerPrependSearchPath Source #

Arguments

:: (HasCallStack, MonadIO m, IsStyleSchemeManager a) 
=> a

manager: a StyleSchemeManager.

-> Text

path: a directory or a filename.

-> m () 

Prepends path to the list of directories where the manager looks for style scheme files. See styleSchemeManagerSetSearchPath for details.

setSearchPath

styleSchemeManagerSetSearchPath Source #

Arguments

:: (HasCallStack, MonadIO m, IsStyleSchemeManager a) 
=> a

manager: a StyleSchemeManager.

-> Maybe [Text]

path: a Nothing-terminated array of strings or Nothing.

-> m () 

Sets the list of directories where the manager looks for style scheme files. If path is Nothing, the search path is reset to default.

Properties

schemeIds

No description available in the introspection data.

getStyleSchemeManagerSchemeIds :: (MonadIO m, IsStyleSchemeManager o) => o -> m (Maybe [Text]) Source #

Get the value of the “scheme-ids” property. When overloading is enabled, this is equivalent to

get styleSchemeManager #schemeIds

searchPath

No description available in the introspection data.

clearStyleSchemeManagerSearchPath :: (MonadIO m, IsStyleSchemeManager o) => o -> m () Source #

Set the value of the “search-path” property to Nothing. When overloading is enabled, this is equivalent to

clear #searchPath

constructStyleSchemeManagerSearchPath :: (IsStyleSchemeManager o, MonadIO m) => [Text] -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “search-path” property. This is rarely needed directly, but it is used by new.

getStyleSchemeManagerSearchPath :: (MonadIO m, IsStyleSchemeManager o) => o -> m [Text] Source #

Get the value of the “search-path” property. When overloading is enabled, this is equivalent to

get styleSchemeManager #searchPath

setStyleSchemeManagerSearchPath :: (MonadIO m, IsStyleSchemeManager o) => o -> [Text] -> m () Source #

Set the value of the “search-path” property. When overloading is enabled, this is equivalent to

set styleSchemeManager [ #searchPath := value ]