neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
i_tab.hpp
Go to the documentation of this file.
1// i_tab.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>
26
27namespace neogfx
28{
29 class i_tab_container;
30
31 class i_tab
32 {
33 public:
34 declare_event(selected)
35 declare_event(deselected)
36 public:
37 virtual ~i_tab() = default;
38 public:
39 virtual const i_tab_container& container() const = 0;
40 virtual i_tab_container& container() = 0;
41 virtual bool closable() const = 0;
42 virtual void set_closable(bool aClosable) = 0;
43 virtual bool is_selected() const = 0;
44 virtual bool is_deselected() const = 0;
45 virtual void select() = 0;
46 public:
47 virtual i_string const& text() const = 0;
48 virtual i_tab& set_text(i_string const& aText) = 0;
49 virtual i_tab& set_image(const i_texture& aTexture) = 0;
50 virtual i_tab& set_image(const i_image& aImage) = 0;
51 public:
52 virtual const i_widget& as_widget() const = 0;
53 virtual i_widget& as_widget() = 0;
54 };
55}
virtual i_widget & as_widget()=0
virtual i_tab & set_image(const i_image &aImage)=0
virtual i_string const & text() const =0
virtual const i_tab_container & container() const =0
virtual void select()=0
virtual bool closable() const =0
virtual i_tab_container & container()=0
virtual i_tab & set_text(i_string const &aText)=0
virtual i_tab & set_image(const i_texture &aTexture)=0
virtual const i_widget & as_widget() const =0
virtual void set_closable(bool aClosable)=0
virtual bool is_selected() const =0
virtual bool is_deselected() const =0
#define declare_event(declName,...)
Definition i_event.hpp:305