package stk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Class Bin.scrollboxSource

inherit bin

Properties

method hscrollbar_policy : scrollbar_policy
method set_hscrollbar_policy : ?delay:float -> ?propagate:bool -> scrollbar_policy -> unit
method vscrollbar_policy : scrollbar_policy
method set_vscrollbar_policy : ?delay:float -> ?propagate:bool -> scrollbar_policy -> unit
method hscrollbar_covers_child : bool
method set_hscrollbar_covers_child : ?delay:float -> ?propagate:bool -> bool -> unit
method vscrollbar_covers_child : bool
method set_vscrollbar_covers_child : ?delay:float -> ?propagate:bool -> bool -> unit
method scrollbar_width : int
method set_scrollbar_width : ?delay:float -> ?propagate:bool -> int -> 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).

method hscroll_range : float * float

#hscroll_range returns the start and stop horizontal range (from 0. to 1.) of the child which is currently displayed.

method vscroll_range : float * float

#vscroll_range returns the start and stop vertical range (from 0. to 1.) of the child which is currently displayed.

OCaml

Innovation. Community. Security.