Browse Source

Add rightText arguments to docs of menu item helpers.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
c53ad4b75e
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      include/helpers.hpp

+ 3
- 3
include/helpers.hpp View File

@@ -230,7 +230,7 @@ TMenuItem* createMenuItem(std::string text, std::string rightText, std::function
/** Creates a MenuItem with a check mark set by a lambda function.
Example:

menu->addChild(createCheckMenuItem("Loop",
menu->addChild(createCheckMenuItem("Loop", "",
[=]() {
return module->isLoop();
},
@@ -276,7 +276,7 @@ ui::MenuItem* createCheckMenuItem(std::string text, std::string rightText, std::
/** Creates a MenuItem that controls a boolean value with a check mark.
Example:

menu->addChild(createBoolMenuItem("Loop",
menu->addChild(createBoolMenuItem("Loop", "",
[=]() {
return module->isLoop();
},
@@ -322,7 +322,7 @@ ui::MenuItem* createBoolMenuItem(std::string text, std::string rightText, std::f
/** Easy wrapper for createBoolMenuItem() to modify a bool pointer.
Example:

menu->addChild(createBoolPtrMenuItem("Loop", &module->loop));
menu->addChild(createBoolPtrMenuItem("Loop", "", &module->loop));
*/
template <typename T>
ui::MenuItem* createBoolPtrMenuItem(std::string text, std::string rightText, T* ptr) {


Loading…
Cancel
Save