cc_draw: remove virtual from position setters

This commit is contained in:
2019-10-27 16:24:47 +01:00
parent 84d3f05c63
commit 689d35db25
2 changed files with 7 additions and 7 deletions

View File

@@ -176,18 +176,18 @@ class CCDraw : public COSDFader, public CComponentsSignals, public CCTypes
void clearFbData(); void clearFbData();
///set screen x-position, parameter as int ///set screen x-position, parameter as int
virtual void setXPos(const int& xpos); void setXPos(const int& xpos);
///set screen y-position, parameter as int ///set screen y-position, parameter as int
virtual void setYPos(const int& ypos); void setYPos(const int& ypos);
///set x and y position at once ///set x and y position at once
///Note: position of bound components (items) means position related within parent form, not for screen! ///Note: position of bound components (items) means position related within parent form, not for screen!
///to set the real screen position, look at setRealPos() ///to set the real screen position, look at setRealPos()
virtual void setPos(const int& xpos, const int& ypos); void setPos(const int& xpos, const int& ypos);
///set height of component on screen ///set height of component on screen
virtual void setHeight(const int& h); void setHeight(const int& h);
///set width of component on screen ///set width of component on screen
virtual void setWidth(const int& w); void setWidth(const int& w);
///set all positions and dimensions of component at once ///set all positions and dimensions of component at once
void setDimensionsAll(const int& xpos, const int& ypos, const int& w, const int& h); void setDimensionsAll(const int& xpos, const int& ypos, const int& w, const int& h);

View File

@@ -233,14 +233,14 @@ bool CComponentsItem::isAdded()
void CComponentsItem::setXPos(const int& xpos) void CComponentsItem::setXPos(const int& xpos)
{ {
CCDraw::setXPos(xpos); x = xpos;
if (cc_parent) if (cc_parent)
cc_xr = cc_parent->getRealXPos() + x; cc_xr = cc_parent->getRealXPos() + x;
} }
void CComponentsItem::setYPos(const int& ypos) void CComponentsItem::setYPos(const int& ypos)
{ {
CCDraw::setYPos(ypos); y = ypos;
if (cc_parent) if (cc_parent)
cc_yr = cc_parent->getRealYPos() + y; cc_yr = cc_parent->getRealYPos() + y;
} }