コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 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;
     }
 }
コード例 #5
0
 static extern void gtk_source_buffer_set_bracket_match_style(IntPtr raw, ref GtkSourceView.SourceTagStyle value);
コード例 #6
0
 static extern void gtk_source_language_set_tag_style(IntPtr raw, IntPtr tag_id, ref GtkSourceView.SourceTagStyle style);
コード例 #7
0
 static extern void glibsharp_value_set_boxed(ref GLib.Value val, ref GtkSourceView.SourceTagStyle boxed);