Module vScrollbar

An emulated scrollbar widget (using a minislider)

Tables

BUTTON_LAYOUT Placement of buttons

Fields

self.button_height (int)
self.position (number) scroll position, between 0-1
self.button_layout (vScrollbar.BUTTON_LAYOUT)
self.orientation (vScrollbar.ORIENTATION)
self.index (int) 1-[step_count] derived from position
self.step_count (int) the number of "steps"
self.step_size (int) how far to travel when navigation button is pressed
self.do_change (function) callbacks for when changed


Tables

BUTTON_LAYOUT
Placement of buttons

Fields:

  • HIDDEN do not show buttons
  • ABOVE show buttons above track
  • BELOW show buttons below track
  • BOTH show buttons on either side

Fields

self.button_height
(int)
self.position
(number) scroll position, between 0-1
self.button_layout
(vScrollbar.BUTTON_LAYOUT)
self.orientation
(vScrollbar.ORIENTATION)
self.index
(int) 1-[step_count] derived from position
self.step_count
(int) the number of "steps"
self.step_size
(int) how far to travel when navigation button is pressed
self.do_change
(function) callbacks for when changed
  • elm (vScrollbar)
generated by LDoc 1.4.2