mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponentsPicture: add explicit methodes to set image position
This commit is contained in:
@@ -148,6 +148,24 @@ void CComponentsPicture::setHeight(const int& h, bool keep_aspect)
|
||||
initCCItem();
|
||||
}
|
||||
|
||||
void CComponentsPicture::setXPos(const int& xpos)
|
||||
{
|
||||
CComponentsItem::setXPos(xpos);
|
||||
if (xpos == x)
|
||||
return;
|
||||
need_init = true;
|
||||
initCCItem();
|
||||
}
|
||||
|
||||
void CComponentsPicture::setYPos(const int& ypos)
|
||||
{
|
||||
CComponentsItem::setYPos(ypos);
|
||||
if (ypos == y)
|
||||
return;
|
||||
need_init = true;
|
||||
initCCItem();
|
||||
}
|
||||
|
||||
void CComponentsPicture::initCCItem()
|
||||
{
|
||||
if (pic_name.empty() || !need_init){
|
||||
|
Reference in New Issue
Block a user