neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
i_tab_page_container.hpp
Go to the documentation of this file.
1// i_tab_container.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>
27
28namespace neogfx
29{
31 {
32 public:
33 declare_event(tab_page_added, i_tab_page&)
34 declare_event(tab_page_removed, i_tab_page&)
35 declare_event(selected_tab_page_changed, i_tab_page&)
36 public:
37 typedef uint32_t tab_index;
38 public:
39 struct tab_page_not_found : std::logic_error { tab_page_not_found() : std::logic_error("neogfx::i_tab_page_container::tab_page_not_found") {} };
40 public:
41 virtual i_tab_container& tab_bar() = 0;
42 public:
43 virtual i_layout& page_layout() = 0;
44 public:
45 virtual const i_tab_page& tab_page(tab_index aTabIndex) const = 0;
46 virtual i_tab_page& tab_page(tab_index aTabIndex) = 0;
47 virtual const i_tab_page& selected_tab_page() const = 0;
49 virtual i_tab_page& add_tab_page(i_string const& aTabText) = 0;
50 virtual i_tab_page& insert_tab_page(tab_index aTabIndex, i_string const& aTabText) = 0;
51 virtual i_tab_page& add_tab_page(i_tab& aTab) = 0;
52 virtual i_tab_page& add_tab_page(i_tab& aTab, i_tab_page& aWidget) = 0;
53 virtual i_tab_page& add_tab_page(i_tab& aTab, i_ref_ptr<i_tab_page> const& aWidget) = 0;
54 virtual void remove_tab_page(i_tab_page& aPage) = 0;
55 };
56}
virtual i_tab_container & tab_bar()=0
virtual i_tab_page & add_tab_page(i_tab &aTab)=0
virtual i_layout & page_layout()=0
virtual i_tab_page & add_tab_page(i_tab &aTab, i_tab_page &aWidget)=0
virtual i_tab_page & selected_tab_page()=0
virtual void remove_tab_page(i_tab_page &aPage)=0
virtual const i_tab_page & tab_page(tab_index aTabIndex) const =0
virtual const i_tab_page & selected_tab_page() const =0
virtual i_tab_page & tab_page(tab_index aTabIndex)=0
virtual i_tab_page & add_tab_page(i_string const &aTabText)=0
virtual i_tab_page & insert_tab_page(tab_index aTabIndex, i_string const &aTabText)=0
virtual i_tab_page & add_tab_page(i_tab &aTab, i_ref_ptr< i_tab_page > const &aWidget)=0
declare_event(tab_page_added, i_tab_page &) declare_event(tab_page_removed
#define declare_event(declName,...)
Definition i_event.hpp:305