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) { } }
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; }
static extern void gtk_scrolled_window_get_overlay_policy(IntPtr sw, out Gtk.PolicyType hpolicy, out Gtk.PolicyType vpolicy);