Package: gtk

Function gtk-scrolled-window-policy

Lambda List

gtk-scrolled-window-policy (window)

Syntax

(gtk-scrolled-window-policy window) => hpolicy, vpolicy
(setf (gtk-scrolled-window-policy window) (list hpolicy vpolicy))

Arguments

window -- a gtk-scrolled-window widget
hpolicy -- a value of the gtk-policy-type enumeration for the policy for horizontal bar
vpolicy -- a value of the gtk-policy-type enumeration for the policy for vertical bar

Details

Accessor of the policy values of the srolled window.

The gtk-scrolled-window-policy function retrieves the current policy values for the horizontal and vertical scrollbars. The (setf gtk-scrolled-window-policy) function sets the scrollbar policy.

The policy determines when the scrollbar should appear. It is a value from the gtk-policy-type enumeration. If :always, the scrollbar is always present. If :never, the scrollbar is never present. If :automatic, the scrollbar is present only if needed, that is, if the slider part of the bar would be smaller than the trough - the display is larger than the page size.
 

See also

*2021-10-14