mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 01:20:25 +00:00
Add possibility to create popup windows and tip windows from XML widgets
This commit is contained in:
parent
455153d4b9
commit
50a01879ac
@ -63,10 +63,12 @@ static std::string convert_type(const std::string& name)
|
||||
if (name == "link") return "ui::LinkLabel";
|
||||
if (name == "listbox") return "ui::ListBox";
|
||||
if (name == "panel") return "ui::Panel";
|
||||
if (name == "popupwindow") return "ui::PopupWindow";
|
||||
if (name == "radio") return "ui::RadioButton";
|
||||
if (name == "search") return "app::SearchEntry";
|
||||
if (name == "slider") return "ui::Slider";
|
||||
if (name == "splitter") return "ui::Splitter";
|
||||
if (name == "tipwindow") return "ui::TipWindow";
|
||||
if (name == "vbox") return "ui::VBox";
|
||||
if (name == "view") return "ui::View";
|
||||
if (name == "window") return "ui::Window";
|
||||
|
@ -25,8 +25,8 @@ namespace ui {
|
||||
CloseOnEnter,
|
||||
};
|
||||
|
||||
PopupWindow(const std::string& text,
|
||||
ClickBehavior clickBehavior,
|
||||
PopupWindow(const std::string& text = "",
|
||||
ClickBehavior clickBehavior = ClickBehavior::CloseOnClickOutsideHotRegion,
|
||||
EnterBehavior enterBehavior = EnterBehavior::CloseOnEnter);
|
||||
~PopupWindow();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user