acme
Foundational cross-platform layer of the ca2 framework
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
8inline winrt::hstring as_hstring(const ::scoped_string & scopedstr)
9{
10
11 wstring wstr(scopedstr);
12
13 return wstr.c_str();
14
15}
16
17
18inline ::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
Definition aaa_want_to_remove_str_wstring.h:94