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
/*
3
neogfx C++ App/Game Engine
4
Copyright (c) 2015, 2020 Leigh Johnston. All Rights Reserved.
5
6
This program is free software: you can redistribute it and / or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#pragma once
21
22
#include <
neogfx/neogfx.hpp
>
23
#include <
neogfx/app/i_mnemonic.hpp
>
24
#include <
neogfx/app/i_help.hpp
>
25
#include <
neogfx/gui/widget/text_widget.hpp
>
26
#include <
neogfx/gui/widget/image_widget.hpp
>
27
#include <
neogfx/gui/widget/i_menu_item.hpp
>
28
29
namespace
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
}
neogfx::i_help_source
Definition
i_help.hpp:33
neogfx::i_menu_item_widget
Definition
i_menu_item_widget.hpp:34
neogfx::i_menu_item_widget::menu_item
virtual i_menu_item & menu_item() const =0
neogfx::i_menu_item_widget::item_icon
virtual image_widget & item_icon()=0
neogfx::i_menu_item_widget::menu
virtual i_menu & menu() const =0
neogfx::i_menu_item_widget::item_text
virtual text_widget & item_text()=0
neogfx::i_menu_item
Definition
i_menu_item.hpp:38
neogfx::i_menu
Definition
i_menu.hpp:36
neogfx::i_mnemonic
Definition
i_mnemonic.hpp:30
neogfx::image_widget
Definition
image_widget.hpp:31
neogfx::text_widget
Definition
text_widget.hpp:28
i_help.hpp
i_menu_item.hpp
i_mnemonic.hpp
image_widget.hpp
neogfx
Definition
action.hpp:28
neogfx.hpp
text_widget.hpp
include
neogfx
gui
widget
i_menu_item_widget.hpp
Generated by
1.9.8