fix(libsimu): move Menu wrapper methods to fix Windows build (#7015)
This commit is contained in:
@@ -400,6 +400,12 @@ void Menu::addLine(const MaskBitmap* icon_mask, const std::string& text,
|
||||
updatePosition();
|
||||
}
|
||||
|
||||
void Menu::addLine(const std::string &text, std::function<void()> onPress,
|
||||
std::function<bool()> isChecked)
|
||||
{
|
||||
addLine(nullptr, text, onPress, isChecked);
|
||||
}
|
||||
|
||||
void Menu::addLineBuffered(const MaskBitmap* icon_mask, const std::string& text,
|
||||
std::function<void()> onPress,
|
||||
std::function<bool()> isChecked)
|
||||
@@ -408,6 +414,12 @@ void Menu::addLineBuffered(const MaskBitmap* icon_mask, const std::string& text,
|
||||
false);
|
||||
}
|
||||
|
||||
void Menu::addLineBuffered(const std::string &text, std::function<void()> onPress,
|
||||
std::function<bool()> isChecked)
|
||||
{
|
||||
addLineBuffered(nullptr, text, onPress, isChecked);
|
||||
}
|
||||
|
||||
void Menu::updateLines()
|
||||
{
|
||||
content->updateLines();
|
||||
|
||||
@@ -49,20 +49,14 @@ class Menu : public ModalWindow
|
||||
std::function<bool()> isChecked = nullptr);
|
||||
|
||||
void addLine(const std::string &text, std::function<void()> onPress,
|
||||
std::function<bool()> isChecked = nullptr)
|
||||
{
|
||||
addLine(nullptr, text, onPress, isChecked);
|
||||
}
|
||||
std::function<bool()> isChecked = nullptr);
|
||||
|
||||
void addLineBuffered(const MaskBitmap *icon_mask, const std::string &text,
|
||||
std::function<void()> onPress,
|
||||
std::function<bool()> isChecked = nullptr);
|
||||
|
||||
void addLineBuffered(const std::string &text, std::function<void()> onPress,
|
||||
std::function<bool()> isChecked = nullptr)
|
||||
{
|
||||
addLineBuffered(nullptr, text, onPress, isChecked);
|
||||
}
|
||||
std::function<bool()> isChecked = nullptr);
|
||||
|
||||
void updateLines();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user