summaryrefslogtreecommitdiff
path: root/src/windowgeometry.cpp
blob: 257a954bdf89032b619fac4fd80dd8b886e474cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <compiz-core.h>
#include <compwindow.h>
#include <privatewindow.h>


CompWindow::Geometry::Geometry () :
    mBorder (0)
{
}

CompWindow::Geometry::Geometry (int x, int y,
				unsigned int width,
				unsigned int height,
				unsigned int border) :
    mBorder (border)
{
    CompPoint::CompPoint (x,y);
    CompSize::CompSize (width, height);
}

unsigned int
CompWindow::Geometry::border ()
{
    return mBorder;
}

void
CompWindow::Geometry::setBorder (unsigned int border)
{
    mBorder = border;
}

void
CompWindow::Geometry::set (int x, int y,
			   unsigned int width,
			   unsigned int height,
			   unsigned int border)
{
    setX (x);
    setY (y);
    setWidth (width);
    setHeight (height);
    mBorder = border;
}

CompWindow::Geometry &
CompWindow::serverGeometry ()
{
    return priv->serverGeometry;
}