liblcf
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 
21 namespace 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
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG::Rect::r
uint32_t r
Definition: rpg_rect.h:26
RPG
Definition: rpg_actor.h:26
RPG::Rect
Definition: rpg_rect.h:22
RPG::Rect::l
uint32_t l
Definition: rpg_rect.h:24
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::Rect::b
uint32_t b
Definition: rpg_rect.h:27
RPG::Rect::t
uint32_t t
Definition: rpg_rect.h:25