Skip to content

Commit 4e8b9ef

Browse files
committed
Improve namespace documentation.
1 parent ca19005 commit 4e8b9ef

25 files changed

+40
-32
lines changed

docs/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
This documentation is generated by Doxygen from docstrings in header files and might not include certain functions, macros, and structures that are present in header files.
2-
3-
It is highly recommended to instead refer to the header files themselves as a true reference.
1+
This documentation is generated by [Doxygen](https://www.doxygen.nl/index.html) as a convenience to Rack plugin developers and might not include certain functions, macros, and structures that are present in header files.
2+
It is therefore recommended to refer to Rack's header files as a true reference.

docs/logo.png

271 Bytes
Loading

include/app/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace rack {
1010

1111

12-
/** Rack-specific GUI widgets and functions that control and offer feedback for the rack state.
12+
/** Rack's custom UI widgets that control the Rack state and engine.
1313
*/
1414
namespace app {
1515

include/asset.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ struct Module;
1515
} // namespace engine
1616

1717

18+
/** Handles common path locations.
19+
*/
1820
namespace asset {
1921

2022

include/audio.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace rack {
1111

1212

13-
/** Audio driver
13+
/** Abstraction for all audio drivers in Rack
1414
*/
1515
namespace audio {
1616

include/common.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ namespace std {
161161
#endif
162162

163163

164+
/** Root namespace for the Rack API
165+
*/
164166
namespace rack {
165167

166168

@@ -193,8 +195,9 @@ T* construct(F f, V v, Args... args) {
193195
}
194196

195197

196-
/** Defers code until the scope is destructed
197-
From http://www.gingerbill.org/article/defer-in-cpp.html
198+
/** Defers running code until the scope is destructed
199+
200+
From http://www.gingerbill.org/article/defer-in-cpp.html.
198201
Example:
199202
200203
file = fopen(...);

include/componentlibrary.hpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,9 @@
1414

1515
namespace rack {
1616

17-
/** Component Library by [Grayscale](https://grayscale.info/).
17+
/** Library of Rack components: knobs, ports, lights, switches, buttons, etc.
1818
19-
Copied from `LICENSE.md`:
20-
21-
The **Component Library graphics** in the `res/ComponentLibrary` directory are copyright © 2019 [Grayscale](http://grayscale.info/) and licensed under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/).
22-
You may not freely sell plugins using Component Library graphics.
23-
However, a free commercial license is available for plugins sold through the [VCV Store](https://vcvrack.com/plugins.html).
24-
Email [email protected] for more information about licensing or the VCV Store.
19+
See LICENSE.md for legal details about using Rack component graphics in your Rack plugin.
2520
*/
2621
namespace componentlibrary {
2722

include/context.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ struct Scene;
2929
} // namespace app
3030

3131

32-
/** Contains the application state */
32+
/** Rack instance state
33+
*/
3334
struct Context {
3435
widget::EventState* event = NULL;
3536
app::Scene* scene = NULL;

include/discord.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace rack {
55

6-
/** Updates Discord "now playing" status with its IPC API
6+
/** Updates Discord "now playing" status with IPC
77
*/
88
namespace discord {
99

include/dsp/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace rack {
88

99

10-
/** Digital signal processing routines
10+
/** Digital signal processing routines and classes
1111
*/
1212
namespace dsp {
1313

include/engine/Engine.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99

1010
namespace rack {
11+
/** High-performance classes handling modules and voltage signals between them
12+
*/
1113
namespace engine {
1214

1315

include/history.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ struct CableWidget;
1919
} // namespace app
2020

2121

22-
/** Undo history actions for the Rack application */
22+
/** Action history for UI undo/redo
23+
*/
2324
namespace history {
2425

2526

include/library.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace rack {
88

99

10-
/** Synchronizes plugins with the VCV Library and updates Rack itself
10+
/** Synchronizes plugins with the VCV Library and handles VCV accounts with the vcvrack.com API
1111
*/
1212
namespace library {
1313

include/logger.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ will print something like
1818
namespace rack {
1919

2020

21-
/** Logs messages to a file or the console with decoration
21+
/** Logs messages to a file or the terminal
2222
*/
2323
namespace logger {
2424

include/math.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace rack {
99

1010

11-
/** Supplemental `<cmath>` functions and types
11+
/** Extends `<cmath>` with extra functions and types
1212
*/
1313
namespace math {
1414

include/midi.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace rack {
1212

1313

14-
/** MIDI driver
14+
/** Abstraction for all MIDI drivers in Rack
1515
*/
1616
namespace midi {
1717

include/network.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace rack {
1010

1111

12-
/** Networking functions for HTTP requests, URLs, and downloads
12+
/** Networking functions for HTTP requests, downloads, and URLs
1313
*/
1414
namespace network {
1515

include/plugin.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace rack {
1010

1111

12-
/** Loads and manages plugins
12+
/** Loads and manages Rack plugins
1313
*/
1414
namespace plugin {
1515

include/random.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace rack {
88

99

10-
/** Random number generator
10+
/** Random number generation
1111
*/
1212
namespace random {
1313

@@ -86,7 +86,7 @@ struct Xoroshiro128Plus {
8686
};
8787

8888

89-
// Easy random API
89+
// Simple random API
9090

9191
/** Initializes the thread-local RNG state.
9292
Must call when creating a thread, otherwise random state is undefined (might always return 0).

include/settings.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
namespace rack {
1616

1717

18-
/** Process-level globals. */
18+
/** Process-scope globals, most of which are persisted to a file
19+
*/
1920
namespace settings {
2021

2122

include/simd/vector.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
namespace rack {
77

88

9-
/** Abstraction of byte-aligned values for SIMD CPU acceleration. */
9+
/** Abstraction of aligned types for SIMD computation
10+
*/
1011
namespace simd {
1112

1213

include/system.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace rack {
88

99

10-
/** Cross-platform functions for operating systems routines
10+
/** Cross-platform functions for operating system, file path, and filesystem routines
1111
*/
1212
namespace system {
1313

include/tag.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66

77
namespace rack {
8+
/** Tags describing the functions of modules
9+
*/
810
namespace tag {
911

1012

include/ui/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace rack {
1717

1818

19-
/** General user interface widgets using Blendish
19+
/** Common graphical user interface widgets
2020
*/
2121
namespace ui {
2222

include/widget/Widget.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace rack {
1313

1414

15-
/** General UI widgets
15+
/** Basic UI widget types
1616
*/
1717
namespace widget {
1818

@@ -494,7 +494,7 @@ struct Widget : WeakBase {
494494
} // namespace widget
495495

496496
/** Deprecated Rack v1 event namespace.
497-
Use `FooEvent` (defined in widget::Widget) instead of `event::Foo` in new code.
497+
Use events defined in the widget::Widget class instead of this `event::` namespace in new code.
498498
*/
499499
namespace event {
500500
using Base = widget::BaseEvent;
@@ -533,4 +533,5 @@ using Show = widget::Widget::ShowEvent;
533533
using Hide = widget::Widget::HideEvent;
534534
}
535535

536+
536537
} // namespace rack

0 commit comments

Comments
 (0)