summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-07-31 01:21:10 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2009-07-31 01:21:10 +0200
commit955e5653053af15a7c7732558fa4a4b7dda4099d (patch)
treecb967098b3fb6d9f333f488137f3c12a18d903d1 /include
parentb220ff78a833f6dbcdb866a17c0d9ce214f3cc5e (diff)
downloadzcomp-955e5653053af15a7c7732558fa4a4b7dda4099d.tar.gz
zcomp-955e5653053af15a7c7732558fa4a4b7dda4099d.tar.bz2
Changed unsigned int to int to fix warnings
Diffstat (limited to 'include')
-rw-r--r--include/core/rect.h18
-rw-r--r--include/core/size.h16
2 files changed, 17 insertions, 17 deletions
diff --git a/include/core/rect.h b/include/core/rect.h
index b4aad63..4bca23c 100644
--- a/include/core/rect.h
+++ b/include/core/rect.h
@@ -30,15 +30,15 @@ class CompRect {
public:
CompRect ();
- CompRect (int x, int y, unsigned int width, unsigned int height);
+ CompRect (int x, int y, int width, int height);
CompRect (const CompRect&);
CompRect (const XRectangle);
int x () const;
int y () const;
- unsigned int width () const;
- unsigned int height () const;
+ int width () const;
+ int height () const;
int x1 () const;
int y1 () const;
@@ -54,17 +54,17 @@ class CompRect {
int centerY () const;
CompPoint center () const;
- unsigned int area () const;
+ int area () const;
const Region region () const;
void setGeometry (int x, int y,
- unsigned int width, unsigned int height);
+ int width, int height);
void setX (int);
void setY (int);
- void setWidth (unsigned int);
- void setHeight (unsigned int);
+ void setWidth (int);
+ void setHeight (int);
void setPos (const CompPoint&);
void setSize (const CompSize&);
@@ -110,13 +110,13 @@ CompRect::y () const
return mRegion.extents.y1;
}
-inline unsigned int
+inline int
CompRect::width () const
{
return mRegion.extents.x2 - mRegion.extents.x1;
}
-inline unsigned int
+inline int
CompRect::height () const
{
return mRegion.extents.y2 - mRegion.extents.y1;
diff --git a/include/core/size.h b/include/core/size.h
index a9bc2cb..62d6dba 100644
--- a/include/core/size.h
+++ b/include/core/size.h
@@ -33,13 +33,13 @@ class CompSize {
public:
CompSize ();
- CompSize (unsigned int, unsigned int);
+ CompSize (int, int);
- unsigned int width () const;
- unsigned int height () const;
+ int width () const;
+ int height () const;
- void setWidth (unsigned int);
- void setHeight (unsigned int);
+ void setWidth (int);
+ void setHeight (int);
typedef std::vector<CompSize> vector;
typedef std::vector<CompSize *> ptrVector;
@@ -47,16 +47,16 @@ class CompSize {
typedef std::list<CompSize *> ptrList;
private:
- unsigned int mWidth, mHeight;
+ int mWidth, mHeight;
};
-inline unsigned int
+inline int
CompSize::width () const
{
return mWidth;
}
-inline unsigned int
+inline int
CompSize::height () const
{
return mHeight;