FifeGUI 0.3.0
A C++ GUI library designed for games.
cliprectangle.hpp
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#ifndef INCLUDE_FIFECHAN_CLIPRECTANGLE_HPP_
6#define INCLUDE_FIFECHAN_CLIPRECTANGLE_HPP_
7
8// Platform config include
9#include "fifechan/platform.hpp"
10
11// Project headers (subdirs before local)
12#include "fifechan/rectangle.hpp"
13
14namespace fcn
15{
25 class FIFEGUI_API ClipRectangle : public Rectangle
26 {
27 public:
28 ClipRectangle() = default;
29
44 ClipRectangle(int x, int y, int width, int height, int xOffset, int yOffset);
45
54 ClipRectangle& operator=(Rectangle const & other);
55
59 int xOffset{0};
60
64 int yOffset{0};
65 };
66} // namespace fcn
67
68#endif // INCLUDE_FIFECHAN_CLIPRECTANGLE_HPP_
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:14
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.
Used replacement tokens by configure_file():