neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
i_menu_item_widget.hpp
Go to the documentation of this file.
1// i_menu_item_widget.hpp
2/*
3neogfx C++ App/Game Engine
4Copyright (c) 2015, 2020 Leigh Johnston. All Rights Reserved.
5
6This program is free software: you can redistribute it and / or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#pragma once
21
22#include <neogfx/neogfx.hpp>
24#include <neogfx/app/i_help.hpp>
28
29namespace neogfx
30{
31 class popup_menu;
32
33 class i_menu_item_widget : protected i_mnemonic, protected i_help_source
34 {
35 public:
36 virtual i_menu& menu() const = 0;
37 virtual i_menu_item& menu_item() const = 0;
38 public:
39 virtual image_widget& item_icon() = 0; // todo: i_image_widget
40 virtual text_widget& item_text() = 0; // todo: i_text_widget
41 };
42}
virtual i_menu_item & menu_item() const =0
virtual image_widget & item_icon()=0
virtual i_menu & menu() const =0
virtual text_widget & item_text()=0