mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-07 13:48:28 +02:00
cc_draw.cpp/h: move more methodes into cpp file
clean up
Origin commit data
------------------
Commit: c8716f5b39
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-12-10 (Mon, 10 Dec 2018)
This commit is contained in:
@@ -904,3 +904,26 @@ int CCDraw::getWidth()
|
||||
{
|
||||
return width;
|
||||
}
|
||||
|
||||
void CCDraw::setDimensionsAll(const int& xpos, const int& ypos, const int& w, const int& h)
|
||||
{
|
||||
setPos(xpos, ypos); setWidth(w); setHeight(h);
|
||||
}
|
||||
|
||||
void CCDraw::setPos(const int& xpos, const int& ypos)
|
||||
{
|
||||
setXPos(xpos); setYPos(ypos);
|
||||
}
|
||||
|
||||
void CCDraw::allowPaint(bool allow)
|
||||
{
|
||||
if (allow != cc_allow_paint)
|
||||
cc_allow_paint = allow;
|
||||
if (cc_allow_paint)
|
||||
is_painted = false;
|
||||
}
|
||||
|
||||
bool CCDraw::paintAllowed()
|
||||
{
|
||||
return cc_allow_paint;
|
||||
}
|
||||
|
Reference in New Issue
Block a user