tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

DisplayConfigWindows.h (1058B)


      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/. */
      5 
      6 #ifndef mozilla_gfx_thebes_DisplayConfigWindows_h
      7 #define mozilla_gfx_thebes_DisplayConfigWindows_h
      8 
      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"
     15 
     16 namespace mozilla {
     17 namespace gfx {
     18 
     19 struct DisplayConfig {
     20  std::vector<DISPLAYCONFIG_PATH_INFO> mPaths;
     21  std::vector<DISPLAYCONFIG_MODE_INFO> mModes;
     22 };
     23 
     24 std::optional<DisplayConfig> GetDisplayConfig();
     25 
     26 extern bool HasScaledResolution();
     27 
     28 typedef nsTArray<std::pair<IntSize, IntSize>> ScaledResolutionSet;
     29 void GetScaledResolutions(ScaledResolutionSet& aRv);
     30 
     31 }  // namespace gfx
     32 }  // namespace mozilla
     33 
     34 #endif  // mozilla_gfx_thebes_DisplayConfigWindows_h