예제 #1
0
 static void SetFontMap_cb(IntPtr inst, IntPtr fontmap)
 {
     try {
         IFontChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IFontChooserImplementor;
         __obj.FontMap = GLib.Object.GetObject(fontmap) as Pango.FontMap;
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #2
0
 static void SetFilterFunc_cb(IntPtr inst, GtkSharp.FontFilterFuncNative filter, IntPtr user_data, GLib.DestroyNotify destroy)
 {
     try {
         IFontChooserImplementor        __obj          = GLib.Object.GetObject(inst, false) as IFontChooserImplementor;
         GtkSharp.FontFilterFuncInvoker filter_invoker = new GtkSharp.FontFilterFuncInvoker(filter, user_data, destroy);
         __obj.FilterFunc = filter_invoker.Handler;
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #3
0
 public FontChooserAdapter(IFontChooserImplementor 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;
 }
예제 #4
0
 static int GetFontSize_cb(IntPtr inst)
 {
     try {
         IFontChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IFontChooserImplementor;
         int __result;
         __result = __obj.FontSize;
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #5
0
 static IntPtr GetFontFace_cb(IntPtr inst)
 {
     try {
         IFontChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IFontChooserImplementor;
         Pango.FontFace          __result;
         __result = __obj.FontFace;
         return(__result == null ? IntPtr.Zero : __result.Handle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }