added addManagedResource, which adds a resource to BScreen and will be destroy by BScreen

This commit is contained in:
fluxgen 2006-03-18 21:59:44 +00:00
parent bdc74e7995
commit 4b4c46559b

View file

@ -352,6 +352,10 @@ public:
void removeConfigMenu(FbTk::Menu &menu);
/// Adds a resource to managed resource list
/// This resource is now owned by Screen and will be destroyed
/// when screen dies
void addManagedResource(FbTk::Resource_base *resource);
class ScreenSubject:public FbTk::Subject {
public:
@ -445,6 +449,9 @@ private:
} resource;
/// Holds manage resources that screen destroys
FbTk::ResourceManager::ResourceList m_managed_resources;
FbTk::ResourceManager &m_resource_manager;
const std::string m_name, m_altname;