FifeGUI 0.2.0
A C++ GUI library designed for games.
size.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/size.hpp"
6
7namespace fcn
8{
9 Size::Size(int width, int height) : mWidth(width), mHeight(height) { }
10
11 int Size::getWidth() const
12 {
13 return mWidth;
14 }
15
16 int Size::getHeight() const
17 {
18 return mHeight;
19 }
20
21 void Size::setWidth(int width)
22 {
23 mWidth = width;
24 }
25
26 void Size::setHeight(int height)
27 {
28 mHeight = height;
29 }
30}; // namespace fcn
void setHeight(int height)
Sets the height of size.
Definition size.cpp:26
Size(int width=0, int height=0)
Constructor initializes size values.
Definition size.cpp:9
void setWidth(int width)
Sets the width of size.
Definition size.cpp:21
int getHeight() const
Definition size.cpp:16
int getWidth() const
Definition size.cpp:11