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();
|
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,
|
void Menu::addLineBuffered(const MaskBitmap* icon_mask, const std::string& text,
|
||||||
std::function<void()> onPress,
|
std::function<void()> onPress,
|
||||||
std::function<bool()> isChecked)
|
std::function<bool()> isChecked)
|
||||||
@@ -408,6 +414,12 @@ void Menu::addLineBuffered(const MaskBitmap* icon_mask, const std::string& text,
|
|||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Menu::addLineBuffered(const std::string &text, std::function<void()> onPress,
|
||||||
|
std::function<bool()> isChecked)
|
||||||
|
{
|
||||||
|
addLineBuffered(nullptr, text, onPress, isChecked);
|
||||||
|
}
|
||||||
|
|
||||||
void Menu::updateLines()
|
void Menu::updateLines()
|
||||||
{
|
{
|
||||||
content->updateLines();
|
content->updateLines();
|
||||||
|
|||||||
@@ -49,20 +49,14 @@ class Menu : public ModalWindow
|
|||||||
std::function<bool()> isChecked = nullptr);
|
std::function<bool()> isChecked = nullptr);
|
||||||
|
|
||||||
void addLine(const std::string &text, std::function<void()> onPress,
|
void addLine(const std::string &text, std::function<void()> onPress,
|
||||||
std::function<bool()> isChecked = nullptr)
|
std::function<bool()> isChecked = nullptr);
|
||||||
{
|
|
||||||
addLine(nullptr, text, onPress, isChecked);
|
|
||||||
}
|
|
||||||
|
|
||||||
void addLineBuffered(const MaskBitmap *icon_mask, const std::string &text,
|
void addLineBuffered(const MaskBitmap *icon_mask, const std::string &text,
|
||||||
std::function<void()> onPress,
|
std::function<void()> onPress,
|
||||||
std::function<bool()> isChecked = nullptr);
|
std::function<bool()> isChecked = nullptr);
|
||||||
|
|
||||||
void addLineBuffered(const std::string &text, std::function<void()> onPress,
|
void addLineBuffered(const std::string &text, std::function<void()> onPress,
|
||||||
std::function<bool()> isChecked = nullptr)
|
std::function<bool()> isChecked = nullptr);
|
||||||
{
|
|
||||||
addLineBuffered(nullptr, text, onPress, isChecked);
|
|
||||||
}
|
|
||||||
|
|
||||||
void updateLines();
|
void updateLines();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user