public void SetTagStyle(string tag_id, GtkSourceView.SourceTagStyle style) { IntPtr native_tag_id = GLib.Marshaller.StringToPtrGStrdup(tag_id); gtk_source_language_set_tag_style(Handle, native_tag_id, ref style); GLib.Marshaller.Free(native_tag_id); }
public GtkSourceView.SourceTagStyle GetTagStyle(string style_name) { IntPtr native_style_name = GLib.Marshaller.StringToPtrGStrdup(style_name); IntPtr raw_ret = gtk_source_style_scheme_get_tag_style(Handle, native_style_name); GtkSourceView.SourceTagStyle ret = GtkSourceView.SourceTagStyle.New(raw_ret); GLib.Marshaller.Free(native_style_name); return(ret); }
public GtkSourceView.SourceTagStyle GetTagStyle(string tag_id) { IntPtr native_tag_id = GLib.Marshaller.StringToPtrGStrdup(tag_id); IntPtr raw_ret = gtk_source_language_get_tag_style(Handle, native_tag_id); GtkSourceView.SourceTagStyle ret = GtkSourceView.SourceTagStyle.New(raw_ret); GLib.Marshaller.Free(native_tag_id); return(ret); }
static IntPtr GetTagStyleCallback(IntPtr scheme, IntPtr style_name) { try { GtkSourceView.SourceStyleSchemeImplementor __obj = GLib.Object.GetObject(scheme, false) as GtkSourceView.SourceStyleSchemeImplementor; GtkSourceView.SourceTagStyle __result = __obj.GetTagStyle(GLib.Marshaller.Utf8PtrToString(style_name)); return(GLib.Marshaller.StructureToPtrAlloc <GtkSourceView.SourceTagStyle> (__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static extern void gtk_source_buffer_set_bracket_match_style(IntPtr raw, ref GtkSourceView.SourceTagStyle value);
static extern void gtk_source_language_set_tag_style(IntPtr raw, IntPtr tag_id, ref GtkSourceView.SourceTagStyle style);
static extern void glibsharp_value_set_boxed(ref GLib.Value val, ref GtkSourceView.SourceTagStyle boxed);