acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
geometry2d.h
1
//
2
// Created by camilo on 2026-02-10 23:52 <3ThomasBorregaardSørensen!!
3
//
4
#pragma once
5
6
7
#include "acme/prototype/geometry2d/rectangle.h"
8
#include "acme/_operating_system.h"
9
10
11
namespace
windows
12
{
13
14
15
inline ::RECT as_RECT(const ::i32_rectangle & rectangle)
16
{
17
18
if
(rectangle.is_empty())
19
{
20
21
return
{0, 0, 0, 0};
22
23
}
24
25
::RECT r{rectangle.left, rectangle.top, rectangle.right, rectangle.bottom};
26
27
return
r;
28
29
}
30
31
32
}
// namespace windows
33
34
operating_system
windows
geometry2d.h
Generated by
1.17.0