Package org.gnome.gtksourceview
Class StyleSchemeManager
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gtksourceview.StyleSchemeManager
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Inner class implementing a builder pattern to construct a GObject with properties.static class
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
-
Constructor Summary
ConstructorDescriptionCreates a new style manager.StyleSchemeManager
(MemorySegment address) Create a StyleSchemeManager proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendSearchPath
(String path) Appendspath
to the list of directories where the this StyleSchemeManager looks for style scheme files.protected StyleSchemeManager
asParent()
Returns this instance as if it were its parent type.static StyleSchemeManager.Builder
<? extends StyleSchemeManager.Builder> builder()
AStyleSchemeManager.Builder
object constructs aStyleSchemeManager
with the specified properties.void
Mark any currently cached information about the available style schems as invalid.static StyleSchemeManager
Returns the defaultGtkSourceStyleSchemeManager
instance.Looks up style scheme by id.String[]
Returns the ids of the available style schemes.String[]
Returns the current search path for the this StyleSchemeManager.static Type
getType()
Get the GType of the StyleSchemeManager classvoid
prependSearchPath
(String path) Prependspath
to the list of directories where the this StyleSchemeManager looks for style scheme files.void
setSearchPath
(@Nullable String[] 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, 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, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.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 style manager.If you do not need more than one style manager then use
getDefault()
instead.
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, 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 defaultGtkSourceStyleSchemeManager
instance.- Returns:
- a
GtkSourceStyleSchemeManager
. Return value is owned by GtkSourceView library and must not be unref'ed.
-
appendSearchPath
Appendspath
to 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
GtkSourceStyleScheme
object. 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 ornull
if 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 this StyleSchemeManager.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
Prependspath
to 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
path
isnull
, the search path is reset to default.- Parameters:
path
- anull
-terminated array of strings ornull
.
-
builder
AStyleSchemeManager.Builder
object constructs aStyleSchemeManager
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withStyleSchemeManager.Builder.build()
.
-