183 lines
7.9 KiB
C#
183 lines
7.9 KiB
C#
|
|
// This file was generated by the Gtk# code generator.
|
||
|
|
// Any changes made will be lost if regenerated.
|
||
|
|
|
||
|
|
namespace GtkSource {
|
||
|
|
|
||
|
|
using System;
|
||
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Runtime.InteropServices;
|
||
|
|
using static GLib.AbiStructExtension;
|
||
|
|
|
||
|
|
#region Autogenerated code
|
||
|
|
public partial class StyleSchemeManager : GLib.Object {
|
||
|
|
|
||
|
|
public StyleSchemeManager (IntPtr raw) : base(raw) {}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate IntPtr d_gtk_source_style_scheme_manager_new();
|
||
|
|
static d_gtk_source_style_scheme_manager_new gtk_source_style_scheme_manager_new = FuncLoader.LoadFunction<d_gtk_source_style_scheme_manager_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_manager_new"));
|
||
|
|
|
||
|
|
public StyleSchemeManager () : base (IntPtr.Zero)
|
||
|
|
{
|
||
|
|
if (GetType () != typeof (StyleSchemeManager)) {
|
||
|
|
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
Raw = gtk_source_style_scheme_manager_new();
|
||
|
|
}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate IntPtr d_gtk_source_style_scheme_manager_get_search_path(IntPtr raw);
|
||
|
|
static d_gtk_source_style_scheme_manager_get_search_path gtk_source_style_scheme_manager_get_search_path = FuncLoader.LoadFunction<d_gtk_source_style_scheme_manager_get_search_path>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_manager_get_search_path"));
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate void d_gtk_source_style_scheme_manager_set_search_path(IntPtr raw, IntPtr path);
|
||
|
|
static d_gtk_source_style_scheme_manager_set_search_path gtk_source_style_scheme_manager_set_search_path = FuncLoader.LoadFunction<d_gtk_source_style_scheme_manager_set_search_path>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_manager_set_search_path"));
|
||
|
|
|
||
|
|
[GLib.Property ("search-path")]
|
||
|
|
public string SearchPath {
|
||
|
|
get {
|
||
|
|
IntPtr raw_ret = gtk_source_style_scheme_manager_get_search_path(Handle);
|
||
|
|
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
set {
|
||
|
|
gtk_source_style_scheme_manager_set_search_path(Handle, GLib.Marshaller.StringToPtrGStrdup(value));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate IntPtr d_gtk_source_style_scheme_manager_get_scheme_ids(IntPtr raw);
|
||
|
|
static d_gtk_source_style_scheme_manager_get_scheme_ids gtk_source_style_scheme_manager_get_scheme_ids = FuncLoader.LoadFunction<d_gtk_source_style_scheme_manager_get_scheme_ids>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_manager_get_scheme_ids"));
|
||
|
|
|
||
|
|
[GLib.Property ("scheme-ids")]
|
||
|
|
public string SchemeIds {
|
||
|
|
get {
|
||
|
|
IntPtr raw_ret = gtk_source_style_scheme_manager_get_scheme_ids(Handle);
|
||
|
|
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// Internal representation of the wrapped structure ABI.
|
||
|
|
static GLib.AbiStruct _class_abi = null;
|
||
|
|
static public unsafe new GLib.AbiStruct class_abi {
|
||
|
|
get {
|
||
|
|
if (_class_abi == null)
|
||
|
|
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||
|
|
new GLib.AbiField("padding"
|
||
|
|
, GLib.Object.class_abi.Fields
|
||
|
|
, (uint) sizeof( IntPtr ) * 10 // padding
|
||
|
|
, null
|
||
|
|
, null
|
||
|
|
, (uint) sizeof(IntPtr)
|
||
|
|
, 0
|
||
|
|
),
|
||
|
|
});
|
||
|
|
|
||
|
|
return _class_abi;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// End of the ABI representation.
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate void d_gtk_source_style_scheme_manager_append_search_path(IntPtr raw, IntPtr path);
|
||
|
|
static d_gtk_source_style_scheme_manager_append_search_path gtk_source_style_scheme_manager_append_search_path = FuncLoader.LoadFunction<d_gtk_source_style_scheme_manager_append_search_path>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_manager_append_search_path"));
|
||
|
|
|
||
|
|
public void AppendSearchPath(string path) {
|
||
|
|
IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
|
||
|
|
gtk_source_style_scheme_manager_append_search_path(Handle, native_path);
|
||
|
|
GLib.Marshaller.Free (native_path);
|
||
|
|
}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate void d_gtk_source_style_scheme_manager_force_rescan(IntPtr raw);
|
||
|
|
static d_gtk_source_style_scheme_manager_force_rescan gtk_source_style_scheme_manager_force_rescan = FuncLoader.LoadFunction<d_gtk_source_style_scheme_manager_force_rescan>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_manager_force_rescan"));
|
||
|
|
|
||
|
|
public void ForceRescan() {
|
||
|
|
gtk_source_style_scheme_manager_force_rescan(Handle);
|
||
|
|
}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate IntPtr d_gtk_source_style_scheme_manager_get_default();
|
||
|
|
static d_gtk_source_style_scheme_manager_get_default gtk_source_style_scheme_manager_get_default = FuncLoader.LoadFunction<d_gtk_source_style_scheme_manager_get_default>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_manager_get_default"));
|
||
|
|
|
||
|
|
public static GtkSource.StyleSchemeManager Default {
|
||
|
|
get {
|
||
|
|
IntPtr raw_ret = gtk_source_style_scheme_manager_get_default();
|
||
|
|
GtkSource.StyleSchemeManager ret = GLib.Object.GetObject(raw_ret) as GtkSource.StyleSchemeManager;
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate IntPtr d_gtk_source_style_scheme_manager_get_scheme(IntPtr raw, IntPtr scheme_id);
|
||
|
|
static d_gtk_source_style_scheme_manager_get_scheme gtk_source_style_scheme_manager_get_scheme = FuncLoader.LoadFunction<d_gtk_source_style_scheme_manager_get_scheme>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_manager_get_scheme"));
|
||
|
|
|
||
|
|
public GtkSource.StyleScheme GetScheme(string scheme_id) {
|
||
|
|
IntPtr native_scheme_id = GLib.Marshaller.StringToPtrGStrdup (scheme_id);
|
||
|
|
IntPtr raw_ret = gtk_source_style_scheme_manager_get_scheme(Handle, native_scheme_id);
|
||
|
|
GtkSource.StyleScheme ret = GLib.Object.GetObject(raw_ret) as GtkSource.StyleScheme;
|
||
|
|
GLib.Marshaller.Free (native_scheme_id);
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate IntPtr d_gtk_source_style_scheme_manager_get_type();
|
||
|
|
static d_gtk_source_style_scheme_manager_get_type gtk_source_style_scheme_manager_get_type = FuncLoader.LoadFunction<d_gtk_source_style_scheme_manager_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_manager_get_type"));
|
||
|
|
|
||
|
|
public static new GLib.GType GType {
|
||
|
|
get {
|
||
|
|
IntPtr raw_ret = gtk_source_style_scheme_manager_get_type();
|
||
|
|
GLib.GType ret = new GLib.GType(raw_ret);
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate void d_gtk_source_style_scheme_manager_prepend_search_path(IntPtr raw, IntPtr path);
|
||
|
|
static d_gtk_source_style_scheme_manager_prepend_search_path gtk_source_style_scheme_manager_prepend_search_path = FuncLoader.LoadFunction<d_gtk_source_style_scheme_manager_prepend_search_path>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_style_scheme_manager_prepend_search_path"));
|
||
|
|
|
||
|
|
public void PrependSearchPath(string path) {
|
||
|
|
IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
|
||
|
|
gtk_source_style_scheme_manager_prepend_search_path(Handle, native_path);
|
||
|
|
GLib.Marshaller.Free (native_path);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
static StyleSchemeManager ()
|
||
|
|
{
|
||
|
|
GtkSharp.GtkSourceSharp.ObjectManager.Initialize ();
|
||
|
|
}
|
||
|
|
|
||
|
|
// Internal representation of the wrapped structure ABI.
|
||
|
|
static GLib.AbiStruct _abi_info = null;
|
||
|
|
static public unsafe new GLib.AbiStruct abi_info {
|
||
|
|
get {
|
||
|
|
if (_abi_info == null)
|
||
|
|
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||
|
|
new GLib.AbiField("priv"
|
||
|
|
, GLib.Object.abi_info.Fields
|
||
|
|
, (uint) sizeof( IntPtr ) // priv
|
||
|
|
, null
|
||
|
|
, null
|
||
|
|
, (uint) sizeof(IntPtr)
|
||
|
|
, 0
|
||
|
|
),
|
||
|
|
});
|
||
|
|
|
||
|
|
return _abi_info;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// End of the ABI representation.
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
}
|
||
|
|
}
|