Module vTabs

vertical position

Functions

build_layout (rmv) call this after building, or when changing switcher layout
refresh_size () refresh the width/height using current settings (refreshing the view like this allows us to "crop" the tab contents)
set_labels (t) update the tab labels for the current number of labels
set_content (t) provide the tabs - this will (re)build the entire view
add_content (tab_idx, view) add a view to the specified tab
set_index (idx) show the selected tab
get_tab_id (idx)
set_switcher_align (val)
get_largest_width_height () retrieve the maximum size, when resizing to LARGEST
set_midi_mapping (str) add handler for MIDI messages, similar to the provided name

Tables

SWITCHER_ALIGN horizontal position
SIZE_METHOD determine the size method
self.tabs (table>renoise.Views.Rack)

Fields

self.index (int) the currently selected tab (1 or higher)
self.switcher_width (int or string)
self.switcher_align (int or string)
self.switcher_height (int or string)
self.layout (vTabs.LAYOUT)
self.size_method (vTabs.SIZE_METHOD)
self._labels (table>strings)
self.on_resize (function) callback event


Functions

build_layout (rmv)
call this after building, or when changing switcher layout

Parameters:

  • rmv (bool) remove before adding
refresh_size ()
refresh the width/height using current settings (refreshing the view like this allows us to "crop" the tab contents)
set_labels (t)
update the tab labels for the current number of labels

Parameters:

  • t (table)
set_content (t)
provide the tabs - this will (re)build the entire view

Parameters:

  • t (table>renoise.Views.Rack)
add_content (tab_idx, view)
add a view to the specified tab

Parameters:

  • tab_idx (int)
  • view (renoise.Views.View)
set_index (idx)
show the selected tab

Parameters:

  • idx (int)
get_tab_id (idx)

Parameters:

  • idx (int)
set_switcher_align (val)

Parameters:

  • val (vTabs.SWITCHER_ALIGN)
get_largest_width_height ()
retrieve the maximum size, when resizing to LARGEST

Returns:

  1. number (width)
  2. number (height)
set_midi_mapping (str)
add handler for MIDI messages, similar to the provided name

Parameters:

  • str

Tables

SWITCHER_ALIGN
horizontal position

Fields:

  • LEFT
  • CENTER
  • RIGHT
SIZE_METHOD
determine the size method

Fields:

  • FIXED FIXED = set to fixed size (crop contents)
  • CURRENT CURRENT = fit to content of currently visible tab
  • LARGEST LARGEST = fit to tallest/widest tab
self.tabs
(table>renoise.Views.Rack)

Fields

self.index
(int) the currently selected tab (1 or higher)
self.switcher_width
(int or string)
self.switcher_align
(int or string)
self.switcher_height
(int or string)
self.layout
(vTabs.LAYOUT)
self.size_method
(vTabs.SIZE_METHOD)
self._labels
(table>strings)
self.on_resize
(function) callback event
  • elm (vTabs)
generated by LDoc 1.4.2