blob: d47e3eb69a172f116bdaa786eae0af8e6ed48701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <vector>
#include <utility>
#include <functional>
#include "base.hpp"
#include "ui/ui_base.hpp"
namespace cru::ui
{
class Window;
}
namespace cru::ui::controls
{
using MenuItemInfo = std::pair<String, std::function<void()>>;
Window* CreatePopupMenu(const Point& anchor, const std::vector<MenuItemInfo>& items, Window* parent = nullptr);
}
|