Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WinRTUtils.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <filesystem.h>
5 #include <ppltasks.h>
6 
7 namespace cinder { namespace winrt {
8  float ConvertDipsToPixels(float dips);
9  void WinRTMessageBox(Platform::String^ message, Platform::String^ buttonText);
10  void GetPlatformWindowDimensions(Windows::UI::Core::CoreWindow^ wnd, float* width, float* height);
11  std::string PlatformStringToString(Platform::String^ path);
12  Platform::String^ toPlatformString( const std::string &utf8 );
13  bool ensureUnsnapped();
14  float getScaleFactor();
15  float getScaledDPIValue(float v);
16  int getUniqueID();
18 
19  void deleteFileAsync( const std::tr2::sys::path &path);
20  Concurrency::task<Windows::Storage::StorageFile^> copyFileToTempDirAsync(const std::tr2::sys::path &path);
21 }}
float getScaledDPIValue(float v)
Definition: WinRTUtils.cpp:137
float ConvertDipsToPixels(float dips)
Definition: WinRTUtils.cpp:54
GLsizei const GLchar ** string
Definition: GLee.h:2427
GLenum GLsizei width
Definition: GLee.h:969
std::string getUniqueIDString()
Definition: WinRTUtils.cpp:178
std::string PlatformStringToString(Platform::String^path)
Definition: WinRTUtils.cpp:96
void WinRTMessageBox(Platform::String^message, Platform::String^buttonText)
Definition: WinRTUtils.cpp:60
GLenum GLsizei GLsizei height
Definition: GLee.h:1029
Platform::String toPlatformString(const std::string &utf8)
Definition: WinRTUtils.cpp:101
const GLdouble * v
Definition: GLee.h:1384
void deleteFileAsync(const std::tr2::sys::path &path)
bool ensureUnsnapped()
Definition: WinRTUtils.cpp:120
Concurrency::task< Windows::Storage::StorageFile^> copyFileToTempDirAsync(const std::tr2::sys::path &path)
int getUniqueID()
Definition: WinRTUtils.cpp:186
void GetPlatformWindowDimensions(Windows::UI::Core::CoreWindow^wnd, float *width, float *height)
Definition: WinRTUtils.cpp:66
float getScaleFactor()
Definition: WinRTUtils.cpp:133