acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
_winrt_foundation.h
1
// Created by camilo on 2022-09-23 01:15 <3ThomasBorregaardSorensen!!
2
#pragma once
3
4
5
6
#include <winrt/Windows.Foundation.h>
7
8
inline
winrt::hstring as_hstring(const ::scoped_string & scopedstr)
9
{
10
11
wstring
wstr(scopedstr);
12
13
return
wstr.c_str();
14
15
}
16
17
18
inline ::winrt::Windows::Foundation::Rect ScaleRect(::winrt::Windows::Foundation::Rect rectangle, ::f64 scale)
19
{
20
21
rectangle.X = (::f32)(rectangle.X * scale);
22
rectangle.Y = (::f32)(rectangle.Y * scale);
23
rectangle.Width = (::f32)(rectangle.Width * scale);
24
rectangle.Height = (::f32)(rectangle.Height * scale);
25
26
return
rectangle;
27
28
}
29
wstring
Definition
aaa_want_to_remove_str_wstring.h:94
operating_system
universal_windows
_winrt_foundation.h
Generated by
1.17.0