aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/dimension.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/dimension.cpp')
-rw-r--r--src/utils/dimension.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/utils/dimension.cpp b/src/utils/dimension.cpp
index 11a1feb3..f83636ff 100644
--- a/src/utils/dimension.cpp
+++ b/src/utils/dimension.cpp
@@ -28,7 +28,7 @@
namespace usdx
{
- Dimension::Dimension(float width, float height) :
+ Dimension::Dimension(unsigned int width, unsigned int height) :
width(width), height(height)
{
}
@@ -38,13 +38,23 @@ namespace usdx
{
}
- float Dimension::get_width(void) const
+ unsigned int Dimension::get_width(void) const
{
return width;
}
- float Dimension::get_height(void) const
+ void Dimension::set_width(unsigned int width)
+ {
+ this->width = width;
+ }
+
+ unsigned int Dimension::get_height(void) const
{
return height;
}
+
+ void Dimension::set_height(unsigned int height)
+ {
+ this->height = height;
+ }
};