forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdpi_aware.h
More file actions
27 lines (21 loc) · 751 Bytes
/
dpi_aware.h
File metadata and controls
27 lines (21 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
// License: New BSD License.
// Website: http://code.google.com/p/cefpython/
// Windows only
#pragma once
#include <windows.h>
#include "include/cef_app.h"
#include "util.h"
// Duplicated from Win8.1 SDK ShellScalingApi.h
typedef enum PROCESS_DPI_AWARENESS {
PROCESS_DPI_UNAWARE = 0,
PROCESS_SYSTEM_DPI_AWARE = 1,
PROCESS_PER_MONITOR_DPI_AWARE = 2
} PROCESS_DPI_AWARENESS;
bool IsProcessDpiAware();
PROCESS_DPI_AWARENESS GetProcessDpiAwareness();
void SetProcessDpiAware();
void GetSystemDpi(int* outx, int* outy);
void GetDpiAwareWindowSize(int* width, int* height);
void SetBrowserDpiSettings(CefRefPtr<CefBrowser> cefBrowser,
CefString autoZooming);