FifeGUI 0.2.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#include "fifechan/platform.hpp"
9#include "fifechan/rectangle.hpp"
10
11namespace fcn
12{
22 class FIFEGUI_API ClipRectangle : public Rectangle
23 {
24 public:
25 ClipRectangle() = default;
26
41 ClipRectangle(int x, int y, int width, int height, int xOffset, int yOffset);
42
50 ClipRectangle& operator=(Rectangle const & other);
51
55 int xOffset{0};
56
60 int yOffset{0};
61 };
62} // namespace fcn
63
64#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: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.