CComponentsItem: add members to set item position via percent value

Origin commit data
------------------
Branch: ni/coolstream
Commit: 38dffb8456
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-26 (Wed, 26 Feb 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2014-02-26 22:34:14 +01:00
parent 0cfa98486a
commit d00ab87de8
3 changed files with 45 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
Copyright (C) 2001 by Steffen Hehn 'McClean'
Classes for generic GUI-related components.
Copyright (C) 2012, 2013, Thilo Graf 'dbt'
Copyright (C) 2012-2014, Thilo Graf 'dbt'
Copyright (C) 2012, Michael Liebmann 'micha-bbg'
License: GPL
@@ -235,10 +235,20 @@ void CComponents::kill()
}
//clean old screen buffer
inline void CComponents::clearFbData()
void CComponents::clearFbData()
{
for(size_t i =0; i< v_fbdata.size() ;i++)
if (v_fbdata[i].pixbuf)
delete[] v_fbdata[i].pixbuf;
v_fbdata.clear();
}
inline void CComponents::setXPos(const int& xpos)
{
x = xpos;
}
inline void CComponents::setYPos(const int& ypos)
{
y = ypos;
}