diff --git a/dgl/NanoVG.hpp b/dgl/NanoVG.hpp index 18ec1de0..0d50133e 100644 --- a/dgl/NanoVG.hpp +++ b/dgl/NanoVG.hpp @@ -801,11 +801,12 @@ public: float text(float x, float y, const char* string, const char* end); /** - Draws multi-line text string at specified location wrapped at the specified width. If end is specified only the sub-string up to the end is drawn. + Draws multi-line text string at specified location wrapped at the specified width. + If end is specified only the sub-string up to the end is drawn. White space is stripped at the beginning of the rows, the text is split at word boundaries or when new-line characters are encountered. Words longer than the max width are slit at nearest character (i.e. no hyphenation). */ - void textBox(float x, float y, float breakRowWidth, const char* string, const char* end); + void textBox(float x, float y, float breakRowWidth, const char* string, const char* end = nullptr); /** Measures the specified text string. The bounds value are [xmin,ymin, xmax,ymax]. diff --git a/distrho/DistrhoUI.hpp b/distrho/DistrhoUI.hpp index 18d07892..00540e81 100644 --- a/distrho/DistrhoUI.hpp +++ b/distrho/DistrhoUI.hpp @@ -107,14 +107,14 @@ protected: * DSP/Plugin Callbacks */ /** - A parameter has changed on the plugin side. + A parameter has changed on the plugin side.@n This is called by the host to inform the UI about parameter changes. */ virtual void parameterChanged(uint32_t index, float value) = 0; #if DISTRHO_PLUGIN_WANT_PROGRAMS /** - A program has been loaded on the plugin side. + A program has been loaded on the plugin side.@n This is called by the host to inform the UI about program changes. */ virtual void programLoaded(uint32_t index) = 0; @@ -122,7 +122,7 @@ protected: #if DISTRHO_PLUGIN_WANT_STATE /** - A state has changed on the plugin side. + A state has changed on the plugin side.@n This is called by the host to inform the UI about state changes. */ virtual void stateChanged(const char* key, const char* value) = 0;