Class Bin.scrollbox

inherit bin

Properties

method hscrollbar_policy : scrollbar_policy
method set_hscrollbar_policy : scrollbar_policy -> unit
method vscrollbar_policy : scrollbar_policy
method set_vscrollbar_policy : scrollbar_policy -> unit
method hscrollbar_covers_child : bool
method set_hscrollbar_covers_child : bool -> unit
method vscrollbar_covers_child : bool
method set_vscrollbar_covers_child : bool -> unit

Other methods

method vscroll : int -> unit

#vscroll off vertically scrolls by off. A negative offset moves up, a positive one moves down. Checks are performed not to scroll out of bounds.

method hscroll : int -> unit

#hscroll off horizontally scrolls by off. A negative offset moves left, a positive one moves right. Checks are performed not to scroll out of bounds.

method offsets : int * int

#offsets return x-offset and y-offset, i.e. the top left corner coordinates displayed of the child content.

method scroll_to : x:int -> y:int -> unit

#scroll_to ~x ~y sets x-offset and y-offset to x and y. x and y are corrected to valid bounds (> 0 and < content - displayed rect).