FifeGUI 0.2.0
A C++ GUI library designed for games.
cliprectangle.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause
2// SPDX-FileCopyrightText: 2004 - 2008 Olof Naessén and Per Larsson
3// SPDX-FileCopyrightText: 2013 - 2026 Fifengine contributors
4
5#include "fifechan/cliprectangle.hpp"
6
7#include "fifechan/rectangle.hpp"
8
9namespace fcn
10{
11 ClipRectangle::ClipRectangle(int x, int y, int width, int height, int xOffset, int yOffset) :
13 {
14 }
15
16 ClipRectangle& ClipRectangle::operator=(Rectangle const & other)
17 {
18 x = other.x;
19 y = other.y;
20 width = other.width;
21 height = other.height;
22
23 return *this;
24 }
25} // namespace fcn
int xOffset
Holds the x offset of the x coordinate.
ClipRectangle & operator=(Rectangle const &other)
Copy constructor.
int yOffset
Holds the y offset of the y coordinate.
Rectangle()
Constructor.
Definition rectangle.cpp:11
int width
Holds the width of the rectangle.
int y
Holds the x coordinate of the rectangle.
int x
Holds the x coordinate of the rectangle.
int height
Holds the height of the rectangle.