neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
tab_page.hpp
Go to the documentation of this file.
1// tab_page.hpp
2/*
3neogfx C++ App/Game Engine
4Copyright (c) 2019, 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#include <neogfx/core/event.hpp>
30
31namespace neogfx
32{
33 class tab_page : public framed_scrollable_widget, public reference_counted<i_tab_page>
34 {
36 public:
38 define_declared_event(Deselected, deselected)
39 public:
40 tab_page(i_tab_page_container& aContainer, std::string const& aTabText = {});
41 tab_page(i_tab_page_container& aContainer, i_tab& aTab);
42 tab_page(i_widget& aParent, i_tab& aTab);
43 tab_page(i_layout& aLayout, i_tab& aTab);
44 public:
45 neogfx::size_policy size_policy() const override;
46 size minimum_size(optional_size const& aAvailableSpace = optional_size{}) const override;
47 size maximum_size(optional_size const& aAvailableSpace = optional_size{}) const override;
48 public:
49 void paint_non_client_after(i_graphics_context& aGc) const override;
50 public:
51 color palette_color(color_role aColorRole) const override;
52 color frame_color() const override;
53 color inner_frame_color() const override;
54 public:
55 const i_tab& tab() const override;
56 i_tab& tab() override;
57 const widget<>& as_widget() const override;
58 widget<>& as_widget() override;
59 private:
60 void init();
61 private:
62 i_tab& iTab;
63 sink iSink;
64 };
65}
color palette_color(color_role aColorRole) const override
const widget & as_widget() const override
color inner_frame_color() const override
void paint_non_client_after(i_graphics_context &aGc) const override
color frame_color() const override
size maximum_size(optional_size const &aAvailableSpace=optional_size{}) const override
size minimum_size(optional_size const &aAvailableSpace=optional_size{}) const override
const i_tab & tab() const override
widget & as_widget() override
neogfx::size_policy size_policy() const override
i_tab & tab() override
#define meta_object(...)
Definition i_object.hpp:28
#define define_declared_event(name, declName,...)
Definition event.hpp:195