neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
i_tab_page.hpp
Go to the documentation of this file.
1// i_tab_page.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>
23#include <neogfx/core/event.hpp>
24#include "i_widget.hpp"
25
26namespace neogfx
27{
28 class i_tab;
29
31 {
32 public:
34 public:
35 declare_event(selected)
36 declare_event(deselected)
37 public:
38 virtual ~i_tab_page() = default;
39 public:
40 virtual const i_tab& tab() const = 0;
41 virtual i_tab& tab() = 0;
42 virtual const i_widget& as_widget() const = 0;
43 virtual i_widget& as_widget() = 0;
44 };
45}
virtual const i_tab & tab() const =0
virtual const i_widget & as_widget() const =0
i_tab_page abstract_type
virtual i_tab & tab()=0
virtual i_widget & as_widget()=0
#define declare_event(declName,...)
Definition i_event.hpp:305