Module vlib.vTabs
This class combines a switcher with a number of views which are
shown/hidden as the tabs are clicked
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