public Gtk.CssSection GetSection(string property) { IntPtr native_property = GLib.Marshaller.StringToPtrGStrdup(property); IntPtr raw_ret = gtk_style_context_get_section(Handle, native_property); Gtk.CssSection ret = raw_ret == IntPtr.Zero ? null : (Gtk.CssSection)GLib.Opaque.GetOpaque(raw_ret, typeof(Gtk.CssSection), false); GLib.Marshaller.Free(native_property); return(ret); }
private void InternalParsingError(Gtk.CssSection section, IntPtr error) { ParsingErrorNativeDelegate unmanaged = class_abi.BaseOverride <ParsingErrorNativeDelegate>(this.LookupGType(), "parsing_error"); if (unmanaged == null) { return; } unmanaged(this.Handle, section == null ? IntPtr.Zero : section.Handle, error); }
private void InternalParsingError(Gtk.CssSection section, IntPtr error) { ParsingErrorNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("parsing_error")); unmanaged = (ParsingErrorNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ParsingErrorNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, section == null ? IntPtr.Zero : section.Handle, error); }
protected virtual void OnParsingError(Gtk.CssSection section, IntPtr error) { InternalParsingError(section, error); }