mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Let SurfaceCollection::add make a copy of an existing surface
This allows the SurfaceCollection to claim ownership of the surface, while ownership was undefined before.
This commit is contained in:
@@ -45,7 +45,12 @@ public:
|
||||
bool defaultAlpha = true;
|
||||
void debug();
|
||||
|
||||
Surface *add(Surface *s, const std::string &path);
|
||||
/**
|
||||
* Adds a copy of the given surface to this collection under the given
|
||||
* path. Returns the copy.
|
||||
*/
|
||||
Surface *add(Surface const& s, std::string const& path);
|
||||
|
||||
Surface *add(const std::string &path);
|
||||
Surface *addSkinRes(const std::string &path, bool useDefault = true);
|
||||
void del(const std::string &path);
|
||||
|
||||
Reference in New Issue
Block a user