Bug 1874684 - Part 28: Return DateDuration from DifferenceISODateTime. r=mgaudet
[gecko.git] / gfx / thebes / DisplayConfigWindows.h
blob62bc03cf3da2baf5701c5df88da6c2ca1a6cc8e7
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
12 #include <wingdi.h>
13 #include "mozilla/gfx/Point.h" // for IntSize
14 #include "nsTArray.h"
16 namespace mozilla {
17 namespace gfx {
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);
31 } // namespace gfx
32 } // namespace mozilla
34 #endif // mozilla_gfx_thebes_DisplayConfigWindows_h