liblcf
Loading...
Searching...
No Matches
rpg_rect.h
Go to the documentation of this file.
1/* !!!! GENERATED FILE - DO NOT EDIT !!!!
2 * --------------------------------------
3 *
4 * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
5 * https://github.com/EasyRPG/liblcf - https://easyrpg.org
6 *
7 * liblcf is Free/Libre Open Source Software, released under the MIT License.
8 * For the full copyright and license information, please view the COPYING
9 * file that was distributed with this source code.
10 */
11
12#ifndef LCF_RPG_RECT_H
13#define LCF_RPG_RECT_H
14
15// Headers
16#include <stdint.h>
17
21namespace RPG {
22 class Rect {
23 public:
24 uint32_t l = 0;
25 uint32_t t = 0;
26 uint32_t r = 0;
27 uint32_t b = 0;
28 };
29
30 inline bool operator==(const Rect& l, const Rect& r) {
31 return l.l == r.l
32 && l.t == r.t
33 && l.r == r.r
34 && l.b == r.b;
35 }
36
37 inline bool operator!=(const Rect& l, const Rect& r) {
38 return !(l == r);
39 }
40}
41
42#endif
uint32_t r
Definition: rpg_rect.h:26
uint32_t b
Definition: rpg_rect.h:27
uint32_t t
Definition: rpg_rect.h:25
uint32_t l
Definition: rpg_rect.h:24
Definition: rpg_actor.h:26
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98