GigaPasjans
Loading...
Searching...
No Matches
Andromenda::ComponentRegistry Class Reference

ComponentRegistry doesn't take over ownership of components. More...

#include <Component.h>

Inheritance diagram for Andromenda::ComponentRegistry:
Collaboration diagram for Andromenda::ComponentRegistry:

Public Member Functions

virtual void RegisterComponent (const String &name, Component *component)
 Registers given component to given unique name.
 
virtual void UnregisterComponent (const String &name)
 Unregister component mapped to given unique name.
 
ComponentGetComponent (const String &name)
 Finds component with given unique name.
 
virtual void Clear ()
 Deletes all components from list. It does not destroy objects.
 
void PutAtTop (const String &id)
 Move component mapped to given unique name to the top of a surface.
 

Protected Member Functions

std::vector< std::pair< String, Component * > > & getComponents ()
 Returns reference to a list of components.
 

Protected Attributes

ComponentCallback m_Callback
 Action component callback.
 

Detailed Description

ComponentRegistry doesn't take over ownership of components.

Member Function Documentation

◆ Clear()

void Andromenda::ComponentRegistry::Clear ( )
virtual

Deletes all components from list. It does not destroy objects.

Reimplemented in Andromenda::Surface.

◆ RegisterComponent()

void Andromenda::ComponentRegistry::RegisterComponent ( const String & name,
Component * component )
virtual

Registers given component to given unique name.

Reimplemented in Andromenda::Surface.

◆ UnregisterComponent()

void Andromenda::ComponentRegistry::UnregisterComponent ( const String & name)
virtual

Unregister component mapped to given unique name.

Parameters
name

Reimplemented in Andromenda::Surface.


The documentation for this class was generated from the following files: