neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
display.hpp
Go to the documentation of this file.
1// display.hpp
2/*
3 neogfx C++ App/Game Engine
4 Copyright (c) 2015, 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#include <neogfx/gfx/color.hpp>
27
28namespace neogfx
29{
30 class display : public i_display, public i_device_metrics
31 {
32 public:
33 display(uint32_t aIndex, const neogfx::rect& aRect, const neogfx::rect& aDesktopRect);
35 public:
36 bool device_metrics_available() const override;
37 const i_device_metrics& device_metrics() const override;
38 public:
39 uint32_t index() const override;
40 public:
41 const i_device_metrics& metrics() const override;
42 public:
43 neogfx::rect rect() const override;
44 neogfx::rect desktop_rect() const override;
45 window_placement default_window_placement() const override;
46 public:
48 public:
49 bool metrics_available() const override;
50 size extents() const override;
51 dimension horizontal_dpi() const override;
52 dimension vertical_dpi() const override;
53 dimension ppi() const override;
54 dimension em_size() const override;
55 private:
56 uint32_t iIndex;
57 mutable neogfx::rect iRect;
58 mutable neogfx::rect iDesktopRect;
59 protected:
62 };
63}
const i_device_metrics & device_metrics() const override
dimension em_size() const override
dimension horizontal_dpi() const override
dimension vertical_dpi() const override
neogfx::rect desktop_rect() const override
neogfx::size iPixelDensityDpi
Definition display.hpp:60
neogfx::subpixel_format subpixel_format() const override
window_placement default_window_placement() const override
neogfx::subpixel_format iSubpixelFormat
Definition display.hpp:61
bool device_metrics_available() const override
size extents() const override
display(uint32_t aIndex, const neogfx::rect &aRect, const neogfx::rect &aDesktopRect)
bool metrics_available() const override
uint32_t index() const override
dimension ppi() const override
const i_device_metrics & metrics() const override
neogfx::rect rect() const override
default_geometry_value_type dimension
subpixel_format
Definition i_display.hpp:33