示例#1
0
 public static void SetOverlayScrollbarPolicy(Gtk.ScrolledWindow sw, Gtk.PolicyType hpolicy, Gtk.PolicyType vpolicy)
 {
     if (!canSetOverlayScrollbarPolicy)
     {
         return;
     }
     try {
         gtk_scrolled_window_set_overlay_policy(sw.Handle, hpolicy, vpolicy);
         return;
     } catch (DllNotFoundException) {
     } catch (EntryPointNotFoundException) {
     }
 }
示例#2
0
 public static void GetOverlayScrollbarPolicy(Gtk.ScrolledWindow sw, out Gtk.PolicyType hpolicy, out Gtk.PolicyType vpolicy)
 {
     if (!canSetOverlayScrollbarPolicy)
     {
         hpolicy = vpolicy = 0;
         return;
     }
     try {
         gtk_scrolled_window_get_overlay_policy(sw.Handle, out hpolicy, out vpolicy);
         return;
     } catch (DllNotFoundException) {
     } catch (EntryPointNotFoundException) {
     }
     hpolicy = vpolicy = 0;
     canSetOverlayScrollbarPolicy = false;
 }
示例#3
0
 static extern void gtk_scrolled_window_get_overlay_policy(IntPtr sw, out Gtk.PolicyType hpolicy, out Gtk.PolicyType vpolicy);