ScummVM API documentation
frect.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef TITANIC_FRECT_H
23
#define TITANIC_FRECT_H
24
25
namespace
Titanic
{
26
30
class
FRect
{
31
public
:
32
double
left, top;
33
double
right, bottom;
34
public
:
35
FRect
() : left(0), top(0), right(0), bottom(0) {}
36
FRect
(
double
x1,
double
y1,
double
x2,
double
y2) :
37
left(x1), top(y1), right(x2), bottom(y2) {}
38
42
bool
operator==
(
const
FRect
&p)
const
;
43
47
bool
operator!=
(
const
FRect
&p)
const
;
48
52
bool
empty
()
const
;
53
};
54
55
}
// End of namespace Titanic
56
57
#endif
/* TITANIC_FRECT_H */
Titanic::FRect::empty
bool empty() const
Titanic::FRect
Definition:
frect.h:30
Titanic::FRect::operator!=
bool operator!=(const FRect &p) const
Titanic::FRect::operator==
bool operator==(const FRect &p) const
Titanic
Definition:
arm.h:30
engines
titanic
star_control
frect.h
Generated on Mon Dec 23 2024 09:20:24 for ScummVM API documentation by
1.8.13