From 0fe69feb963cab9a09dd5be8eb30be57f3cac9f9 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 26 Apr 2013 21:38:37 +0200 Subject: [PATCH] CComponents: add members setPos() and getSize() --- src/gui/components/cc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/components/cc.h b/src/gui/components/cc.h index 68ff7841f..d3161d811 100644 --- a/src/gui/components/cc.h +++ b/src/gui/components/cc.h @@ -59,6 +59,7 @@ class CComponents inline virtual void setXPos(const int& xpos){x = xpos;}; inline virtual void setYPos(const int& ypos){y = ypos;}; + inline virtual void setPos(const int& xpos, const int& ypos){x = xpos; y = ypos;}; inline virtual void setHeight(const int& h){height = h;}; inline virtual void setWidth(const int& w){width = w;}; inline virtual void setDimensionsAll(const int& xpos, const int& ypos, const int& w, const int& h){x = xpos; y = ypos; width = w; height = h;}; @@ -67,6 +68,7 @@ class CComponents inline virtual int getYPos(){return y;}; inline virtual int getHeight(){return height;}; inline virtual int getWidth(){return width;}; + inline virtual void getSize(int* w, int* h){*w=width; *h=height;}; inline virtual void getDimensions(int* xpos, int* ypos, int* w, int* h){*xpos=x; *ypos=y; *w=width; *h=height;}; /// set colors: Possible color values are defined in "gui/color.h" and "gui/customcolor.h"