comparison system/System.h @ 1883:e5d0ea9ac8f1

OK I give in, we are going to have to put this in a separate DLL so we can deploy a version on Win7 that doesn't have the WinRT dependency
author Chris Cannam
date Tue, 21 Jul 2020 13:59:14 +0100
parents fc18ce2d99d7
children
comparison
equal deleted inserted replaced
1880:5671836cdac7 1883:e5d0ea9ac8f1
161 // Return a vague approximation to the number of free megabytes of 161 // Return a vague approximation to the number of free megabytes of
162 // disc space on the partition containing the given path. Return -1 162 // disc space on the partition containing the given path. Return -1
163 // if unknown. (Hence signed return type) 163 // if unknown. (Hence signed return type)
164 extern ssize_t GetDiscSpaceMBAvailable(const char *path); 164 extern ssize_t GetDiscSpaceMBAvailable(const char *path);
165 165
166 extern "C" {
167
166 // Return true if the OS desktop is set to use a dark mode 168 // Return true if the OS desktop is set to use a dark mode
167 // theme. Return false if it is set to a light theme or if the theme 169 // theme. Return false if it is set to a light theme or if the theme
168 // is unknown. 170 // is unknown.
169 extern bool OSReportsDarkThemeActive(); 171 extern bool OSReportsDarkThemeActive();
170 172
171 // Return true if the OS desktop reports an accent colour to go with 173 // Return true if the OS desktop reports an accent colour to go with
172 // the current theme; if so, also return by reference the r, g, and b 174 // the current theme; if so, also return by reference the r, g, and b
173 // components of the colour (range 0-255). Return false if we can't 175 // components of the colour (range 0-255). Return false if we can't
174 // query such a thing. 176 // query such a thing.
175 extern bool OSQueryAccentColour(int &r, int &g, int &b); 177 extern bool OSQueryAccentColour(int *r, int *g, int *b);
178
179 }
176 180
177 extern void StoreStartupLocale(); 181 extern void StoreStartupLocale();
178 extern void RestoreStartupLocale(); 182 extern void RestoreStartupLocale();
179 183
180 #include <cmath> 184 #include <cmath>