VCV Rack API v2
Loading...
Searching...
No Matches
rack::app Namespace Reference

Rack's custom UI widgets that control the Rack state and engine. More...

Classes

struct  AudioDriverChoice
struct  AudioDeviceChoice
struct  AudioSampleRateChoice
struct  AudioBlockSizeChoice
struct  AudioDeviceMenuChoice
struct  AudioDisplay
 Designed for Audio-8 and Audio-16 module. More...
struct  AudioButton
 A virtual audio port graphic that displays an audio menu when clicked. More...
struct  PlugWidget
struct  CableWidget
struct  CircularShadow
struct  Knob
 Implements vertical dragging behavior for ParamWidgets. More...
struct  LedDisplay
struct  LedDisplaySeparator
struct  LedDisplayChoice
struct  LedDisplayTextField
struct  LightWidget
struct  MidiDriverChoice
struct  MidiDeviceChoice
struct  MidiChannelChoice
struct  MidiDisplay
struct  MidiButton
 A virtual MIDI port graphic that displays an MIDI menu when clicked. More...
struct  ModuleLightWidget
 A MultiLightWidget that points to a module's Light or a range of lights Will access firstLightId, firstLightId + 1, etc. More...
struct  ModuleWidget
 Manages an engine::Module in the rack. More...
struct  MultiLightWidget
 Mixes a list of colors based on a list of brightness values. More...
struct  ParamWidget
 Manages an engine::Param on a ModuleWidget. More...
struct  PortWidget
 Manages an engine::Port on a ModuleWidget. More...
struct  RackScrollWidget
struct  RackWidget
 Container for ModuleWidget and CableWidget. More...
struct  RailWidget
struct  Scene
struct  SliderKnob
struct  SvgButton
struct  SvgKnob
 A knob which rotates an SVG and caches it in a framebuffer. More...
struct  PanelBorder
struct  SvgPanel
struct  ThemedSvgPanel
struct  SvgPort
struct  ThemedSvgPort
struct  SvgScrew
 If you don't add these to your ModuleWidget, they will fall out of the rack... More...
struct  ThemedSvgScrew
struct  SvgSlider
 Behaves like a knob but linearly moves an widget::SvgWidget between two points. More...
struct  SvgSwitch
 A ParamWidget with multiple frames corresponding to its value. More...
struct  Switch
 A ParamWidget that represents an integer. More...

Functions

void appendAudioMenu (ui::Menu *menu, audio::Port *port)
 Appends menu items to the given menu with driver, device, etc.
PRIVATE void browserInit ()
PRIVATE widget::WidgetbrowserCreate ()
PRIVATE widget::WidgetcreateMenuBar ()
PRIVATE void appendLanguageMenu (ui::Menu *menu)
void appendMidiMenu (ui::Menu *menu, midi::Port *port)
 Appends menu items to the given menu with driver, device, etc.
PRIVATE widget::WidgettipWindowCreate ()

Variables

DEPRECATED typedef SvgButton SVGButton
DEPRECATED typedef SvgKnob SVGKnob
DEPRECATED typedef SvgPanel SVGPanel
DEPRECATED typedef SvgPort SVGPort
DEPRECATED typedef SvgScrew SVGScrew
DEPRECATED typedef SvgSlider SVGSlider
DEPRECATED typedef SvgSwitch SVGSwitch
static const float RACK_GRID_WIDTH = 15
static const float RACK_GRID_HEIGHT = 380
static const math::Vec RACK_GRID_SIZE = math::Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT)
static const math::Vec RACK_OFFSET = RACK_GRID_SIZE.mult(math::Vec(2000, 100))

Detailed Description

Rack's custom UI widgets that control the Rack state and engine.

Function Documentation

◆ appendAudioMenu()

void rack::app::appendAudioMenu ( ui::Menu * menu,
audio::Port * port )

Appends menu items to the given menu with driver, device, etc.

Useful alternative to putting an AudioDisplay on your module's panel.

◆ browserInit()

PRIVATE void rack::app::browserInit ( )

◆ browserCreate()

PRIVATE widget::Widget * rack::app::browserCreate ( )

◆ createMenuBar()

PRIVATE widget::Widget * rack::app::createMenuBar ( )

◆ appendLanguageMenu()

PRIVATE void rack::app::appendLanguageMenu ( ui::Menu * menu)

◆ appendMidiMenu()

void rack::app::appendMidiMenu ( ui::Menu * menu,
midi::Port * port )

Appends menu items to the given menu with driver, device, etc.

Useful alternative to putting a MidiDisplay on your module's panel.

◆ tipWindowCreate()

PRIVATE widget::Widget * rack::app::tipWindowCreate ( )

Variable Documentation

◆ SVGButton

DEPRECATED typedef SvgButton rack::app::SVGButton

◆ SVGKnob

DEPRECATED typedef SvgKnob rack::app::SVGKnob

◆ SVGPanel

DEPRECATED typedef SvgPanel rack::app::SVGPanel

◆ SVGPort

DEPRECATED typedef SvgPort rack::app::SVGPort

◆ SVGScrew

DEPRECATED typedef SvgScrew rack::app::SVGScrew

◆ SVGSlider

DEPRECATED typedef SvgSlider rack::app::SVGSlider

◆ SVGSwitch

DEPRECATED typedef SvgSwitch rack::app::SVGSwitch

◆ RACK_GRID_WIDTH

const float rack::app::RACK_GRID_WIDTH = 15
static

◆ RACK_GRID_HEIGHT

const float rack::app::RACK_GRID_HEIGHT = 380
static

◆ RACK_GRID_SIZE

const math::Vec rack::app::RACK_GRID_SIZE = math::Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT)
static

◆ RACK_OFFSET

const math::Vec rack::app::RACK_OFFSET = RACK_GRID_SIZE.mult(math::Vec(2000, 100))
static