From 38221428a5ea4bc71f03508dafdc6ad65ebfbea1 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 26 Feb 2022 21:13:52 +0800 Subject: ... --- include/cru/ui/components/PopupButton.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/cru/ui/components/PopupButton.h') 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 items); IEvent* MenuItemSelectedEvent() { return &menu_item_selected_event_; } -- cgit v1.2.3