public StyleProviderAdapter(IStyleProviderImplementor implementor) { if (implementor == null) { throw new ArgumentNullException("implementor"); } else if (!(implementor is GLib.Object)) { throw new ArgumentException("implementor must be a subclass of GLib.Object"); } this.implementor = implementor as GLib.Object; }
static bool GetStyleProperty_cb(IntPtr inst, IntPtr path, int state, IntPtr pspec, IntPtr value) { try { IStyleProviderImplementor __obj = GLib.Object.GetObject(inst, false) as IStyleProviderImplementor; bool __result; __result = __obj.GetStyleProperty(path == IntPtr.Zero ? null : (Gtk.WidgetPath)GLib.Opaque.GetOpaque(path, typeof(Gtk.WidgetPath), false), (Gtk.StateFlags)state, pspec, (GLib.Value)Marshal.PtrToStructure(value, typeof(GLib.Value))); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
public StyleProviderAdapter (IStyleProviderImplementor implementor) { if (implementor == null) throw new ArgumentNullException ("implementor"); else if (!(implementor is GLib.Object)) throw new ArgumentException ("implementor must be a subclass of GLib.Object"); this.implementor = implementor as GLib.Object; }