diff options
Diffstat (limited to 'include/cru/ui/components/PopupButton.h')
-rw-r--r-- | include/cru/ui/components/PopupButton.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cru/ui/components/PopupButton.h b/include/cru/ui/components/PopupButton.h index 38109fbe..37420ff6 100644 --- a/include/cru/ui/components/PopupButton.h +++ b/include/cru/ui/components/PopupButton.h @@ -15,9 +15,15 @@ class CRU_UI_API PopupMenuTextButton : public Component { public: ui::controls::Control* GetRootControl() override { return &button_; } + ui::controls::Button* GetButton() { return &button_; } + String GetButtonText() { return button_text_.GetText(); } void SetButtonText(String text) { button_text_.SetText(std::move(text)); } + void SetButtonTextColor(const Color& color) { + button_text_.SetTextColor(color); + } + void SetMenuItems(std::vector<String> items); IEvent<Index>* MenuItemSelectedEvent() { return &menu_item_selected_event_; } |