persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
UIScreenLayout.hpp
Go to the documentation of this file.
1
6
7#pragma once
8
9#include "core/geometry.hpp"
10
15{
16 static constexpr int width()
17 {
18 return 256;
19 }
20
21 static constexpr int height()
22 {
23 return 192;
24 }
25
26 static constexpr int centerX()
27 {
28 return 128;
29 }
30
31 static constexpr int centerY()
32 {
33 return 96;
34 }
35
36 static constexpr int rightEdge(int w)
37 {
38 return 256 - w;
39 }
40
41 static constexpr int bottomEdge(int h)
42 {
43 return 192 - h;
44 }
45
47 {
48 return {0, 0};
49 }
50
52 {
53 return {256, 0};
54 }
55
57 {
58 return {0, 192};
59 }
60
62 {
63 return {256, 192};
64 }
65
67 {
68 return {128, 96};
69 }
70};
Static helpers for common on-screen coordinates.
static constexpr int height()
static Point2D< int > topRight()
static constexpr int width()
static constexpr int centerX()
static Point2D< int > bottomLeft()
static Point2D< int > topLeft()
static constexpr int centerY()
static constexpr int bottomEdge(int h)
static Point2D< int > center()
static Point2D< int > bottomRight()
static constexpr int rightEdge(int w)