Пример #1
0
 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;
 }
Пример #2
0
 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;
     }
 }
Пример #3
0
		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;
		}