summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoel Bosveld <Joel.Bosveld@gmail.com>2009-07-03 21:19:48 +0800
committerJoel Bosveld <Joel.Bosveld@gmail.com>2009-07-04 17:27:58 +0800
commitb51c40029a9f776429cabcd745482cb5f04c9b11 (patch)
tree6091ecf38bf48ad37438bc8a6b16f73e624541ca /include
parent3b3f9ce97cf85f0bb4f973ce409c74b7b4fde871 (diff)
downloadzcomp-b51c40029a9f776429cabcd745482cb5f04c9b11.tar.gz
zcomp-b51c40029a9f776429cabcd745482cb5f04c9b11.tar.bz2
CompRect: add set{Left,Top,Right,Buttom} functions
Diffstat (limited to 'include')
-rw-r--r--include/core/rect.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/core/rect.h b/include/core/rect.h
index 0e0be56..6dd8033 100644
--- a/include/core/rect.h
+++ b/include/core/rect.h
@@ -69,6 +69,14 @@ class CompRect {
void setPos (const CompPoint&);
void setSize (const CompSize&);
+ /* Setting an edge past it's opposite edge will result in both edges
+ * being set to the new value
+ */
+ void setLeft (int);
+ void setTop (int);
+ void setRight (int);
+ void setBottom (int);
+
bool contains (const CompPoint &) const;
bool contains (const CompRect &) const;
bool intersects (const CompRect &) const;