Module classes.vTabs
Show/hide sub-views, using a switcher as the navigation interface
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:
-
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:
-
get_tab_id (idx)
-
Parameters:
-
set_switcher_align (val)
-
Parameters:
- val
(vTabs.SWITCHER_ALIGN)
-
get_largest_width_height ()
-
retrieve the maximum size, when resizing to LARGEST
Returns:
-
number (width)
-
number (height)
-
set_midi_mapping (str)
-
add handler for MIDI messages, similar to the provided name
Parameters:
Tables
-
LAYOUT
-
vertical position
Fields:
-
SWITCHER_ALIGN
-
horizontal position
Fields:
-
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
-
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