Browse Source

Misc changes

pull/6/head
falkTX 10 years ago
parent
commit
0d5de799d9
2 changed files with 6 additions and 5 deletions
  1. +3
    -2
      dgl/NanoVG.hpp
  2. +3
    -3
      distrho/DistrhoUI.hpp

+ 3
- 2
dgl/NanoVG.hpp View File

@@ -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].


+ 3
- 3
distrho/DistrhoUI.hpp View File

@@ -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;


Loading…
Cancel
Save