Package org.gnome.gtksourceview
Class StyleSchemeManager
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gtksourceview.StyleSchemeManager
-
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 org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new StyleSchemeManager.StyleSchemeManager(MemorySegment address) Create a StyleSchemeManager proxy 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()Returns 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.@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 classvoidprependSearchPath(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 org.gnome.gobject.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, getMemoryLayout, 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 org.gnome.gobject.TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
StyleSchemeManager
Create a StyleSchemeManager proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
StyleSchemeManager
public StyleSchemeManager()Creates a new StyleSchemeManager.
-
-
Method Details
-
getType
Get the GType of the StyleSchemeManager class- Returns:
- the GType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName(). This will call the native function pointer of this virtual method in the typeclass of the parent type. -
getDefault
Returns the defaultGtkSourceStyleSchemeManagerinstance.- Returns:
- a
GtkSourceStyleSchemeManager. Return value is owned by GtkSourceView library and must not be unref'ed.
-
appendSearchPath
Appendspathto the list of directories where the this StyleSchemeManager looks for style scheme files.See
setSearchPath(java.lang.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 themanager.See
setSearchPath(java.lang.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
Prependspathto the list of directories where the this StyleSchemeManager looks for style scheme files.See
setSearchPath(java.lang.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
-