Class StyleSchemeManager
- All Implemented Interfaces:
Proxy
StyleSchemes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new StyleSchemeManager.StyleSchemeManager(MemorySegment address) Create a StyleSchemeManager instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendSearchPath(String path) Appendspathto the list of directories where the this StyleSchemeManager looks for style scheme files.protected StyleSchemeManagerasParent()Return this instance as if it were its parent type.static StyleSchemeManager.Builder<? extends StyleSchemeManager.Builder> builder()AStyleSchemeManager.Builderobject constructs aStyleSchemeManagerwith the specified properties.voidMark any currently cached information about the available style schems as invalid.static StyleSchemeManagerReturns the defaultGtkSourceStyleSchemeManagerinstance.static MemoryLayoutThe memory layout of the native struct.@Nullable StyleSchemeLooks up style scheme by id.@Nullable String @Nullable []Returns the ids of the available style schemes.String[]Returns the current search path for themanager.static @Nullable TypegetType()Get the GType of the StyleSchemeManager class.voidprependSearchPath(String path) Prependspathto the list of directories where the this StyleSchemeManager looks for style scheme files.voidsetSearchPath(@Nullable String @Nullable [] path) Sets the list of directories where the this StyleSchemeManager looks for style scheme files.Methods inherited from class GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
StyleSchemeManager
Create a StyleSchemeManager instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
StyleSchemeManager
public StyleSchemeManager()Create a new StyleSchemeManager.
-
-
Method Details
-
getType
Get the GType of the StyleSchemeManager class.- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code. -
getDefault
Returns the defaultGtkSourceStyleSchemeManagerinstance.- Returns:
- a
GtkSourceStyleSchemeManager. Return value is owned by GtkSourceView library and must not be unref'ed.
-
appendSearchPath
Appends
pathto the list of directories where the this StyleSchemeManager looks for style scheme files.See
setSearchPath(String[])for details.- Parameters:
path- a directory or a filename.
-
forceRescan
public void forceRescan()Mark any currently cached information about the available style schems as invalid.
All the available style schemes will be reloaded next time the this StyleSchemeManager is accessed.
-
getScheme
Looks up style scheme by id.- Parameters:
schemeId- style scheme id to find.- Returns:
- a
GtkSourceStyleSchemeobject. The returned value is owned by this StyleSchemeManager and must not be unref'ed.
-
getSchemeIds
Returns the ids of the available style schemes.- Returns:
- a
null-terminated array of strings containing the ids of the available style schemes ornullif no style scheme is available. The array is sorted alphabetically according to the scheme name. The array is owned by the this StyleSchemeManager and must not be modified.
-
getSearchPath
Returns the current search path for the
manager.See
setSearchPath(String[])for details.- Returns:
- a
null-terminated array of string containing the search path. The array is owned by the this StyleSchemeManager and must not be modified.
-
prependSearchPath
Prepends
pathto the list of directories where the this StyleSchemeManager looks for style scheme files.See
setSearchPath(String[])for details.- Parameters:
path- a directory or a filename.
-
setSearchPath
Sets the list of directories where the this StyleSchemeManager looks for style scheme files.
If
pathisnull, the search path is reset to default.Since GtkSourceView 5.16 this function will allow you to provide paths in the form of "resource:///" URIs to embedded
GResources. They must contain the path of a directory within theGResource.- Parameters:
path- anull-terminated array of strings ornull.
-
builder
AStyleSchemeManager.Builderobject constructs aStyleSchemeManagerwith the specified properties. Use the variousset...()methods to set properties, and finish construction withStyleSchemeManager.Builder.build().- Returns:
- the builder object
-