neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
default_skin.hpp
Go to the documentation of this file.
1// default_skin.hpp
2/*
3 neogfx C++ App/Game Engine
4 Copyright (c) 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>
24
25namespace neogfx
26{
27 class default_skin : public i_skin
28 {
29 public:
30 std::string const& name() const override;
31 bool has_fallback() const override;
32 i_skin& fallback() override;
33 public:
34 void activate() override;
35 void deactivate() override;
36 public:
37 size preferred_size(skin_element aElement, optional_size const& aDesiredSize = {}) const override;
38 public:
39 void draw_scrollbar(i_graphics_context& aGc, const i_skinnable_item& aItem, const i_scrollbar& aScrollbar) const override;
40 void draw_check_box(i_graphics_context& aGc, const i_skinnable_item& aItem, const button_checked_state& aCheckedState) const override;
41 void draw_radio_button(i_graphics_context& aGc, const i_skinnable_item& aItem, const button_checked_state& aCheckedState) const override;
42 void draw_tree_expander(i_graphics_context& aGc, const i_skinnable_item& aItem, bool aExpandedState) const override;
43 void draw_progress_bar(i_graphics_context& aGc, const i_skinnable_item& aItem, const i_progress_bar& aProgressBar) const override;
44 void draw_separators(i_graphics_context& aGc, const i_skinnable_item& aItem, const i_layout& aLayout) const override;
45 };
46}
size preferred_size(skin_element aElement, optional_size const &aDesiredSize={}) const override
void draw_separators(i_graphics_context &aGc, const i_skinnable_item &aItem, const i_layout &aLayout) const override
void draw_progress_bar(i_graphics_context &aGc, const i_skinnable_item &aItem, const i_progress_bar &aProgressBar) const override
void draw_scrollbar(i_graphics_context &aGc, const i_skinnable_item &aItem, const i_scrollbar &aScrollbar) const override
i_skin & fallback() override
void draw_check_box(i_graphics_context &aGc, const i_skinnable_item &aItem, const button_checked_state &aCheckedState) const override
void draw_radio_button(i_graphics_context &aGc, const i_skinnable_item &aItem, const button_checked_state &aCheckedState) const override
void activate() override
void deactivate() override
void draw_tree_expander(i_graphics_context &aGc, const i_skinnable_item &aItem, bool aExpandedState) const override
std::string const & name() const override
bool has_fallback() const override