FifeGUI
0.3.0
A C++ GUI library designed for games.
src
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
// Corresponding header include
6
#include "fifechan/size.hpp"
7
8
namespace
fcn
9
{
10
Size::Size
(
int
width,
int
height) : mWidth(width), mHeight(height)
11
{
12
}
13
14
int
Size::getWidth
()
const
15
{
16
return
mWidth;
17
}
18
19
int
Size::getHeight
()
const
20
{
21
return
mHeight;
22
}
23
24
void
Size::setWidth
(
int
width)
25
{
26
mWidth = width;
27
}
28
29
void
Size::setHeight
(
int
height)
30
{
31
mHeight = height;
32
}
33
};
// namespace fcn
fcn::Size::setHeight
void setHeight(int height)
Sets the height of size.
Definition
size.cpp:29
fcn::Size::Size
Size(int width=0, int height=0)
Constructor initializes size values.
Definition
size.cpp:10
fcn::Size::setWidth
void setWidth(int width)
Sets the width of size.
Definition
size.cpp:24
fcn::Size::getHeight
int getHeight() const
Definition
size.cpp:19
fcn::Size::getWidth
int getWidth() const
Definition
size.cpp:14
fcn
Used replacement tokens by configure_file():
Definition
backends/opengl/graphics.hpp:17
Generated by
1.17.0