1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_gfx_thebes_DisplayConfigWindows_h
7 #define mozilla_gfx_thebes_DisplayConfigWindows_h
9 #include <optional> // for std::optional
10 #include <utility> // for std::pair
11 #include <vector> // for std::vector
13 #include "mozilla/gfx/Point.h" // for IntSize
19 struct DisplayConfig
{
20 std::vector
<DISPLAYCONFIG_PATH_INFO
> mPaths
;
21 std::vector
<DISPLAYCONFIG_MODE_INFO
> mModes
;
24 std::optional
<DisplayConfig
> GetDisplayConfig();
26 extern bool HasScaledResolution();
28 typedef nsTArray
<std::pair
<IntSize
, IntSize
>> ScaledResolutionSet
;
29 void GetScaledResolutions(ScaledResolutionSet
& aRv
);
32 } // namespace mozilla
34 #endif // mozilla_gfx_thebes_DisplayConfigWindows_h