VCV Rack API v2
Loading...
Searching...
No Matches
common.hpp File Reference
#include <nanovg.h>
#include <blendish.h>
#include <common.hpp>
#include <color.hpp>
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  rack
 Root namespace for the Rack API.
 
namespace  rack::ui
 Common graphical user interface widgets.
 

Macros

#define CHECKMARK_STRING   "✔"
 Useful for menu items with a "true" boolean state.
 
#define CHECKMARK(_cond)   ((_cond) ? CHECKMARK_STRING : "")
 
#define RIGHT_ARROW   "▸"
 Useful for menu items that open a sub-menu.
 

Functions

PRIVATE void rack::ui::init ()
 
PRIVATE void rack::ui::destroy ()
 
void rack::ui::setTheme (NVGcolor bg, NVGcolor fg)
 
void rack::ui::refreshTheme ()
 Sets theme from settings.
 

Macro Definition Documentation

◆ CHECKMARK_STRING

#define CHECKMARK_STRING   "✔"

Useful for menu items with a "true" boolean state.

◆ CHECKMARK

#define CHECKMARK ( _cond)    ((_cond) ? CHECKMARK_STRING : "")

◆ RIGHT_ARROW

#define RIGHT_ARROW   "▸"

Useful for menu items that open a sub-menu.