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

The renderer of component registry. More...

#include <Surface.h>

Inheritance diagram for Andromenda::Surface:
Collaboration diagram for Andromenda::Surface:

Public Member Functions

 Surface (const ComponentCallback &callback, const Callback &renderCallback)
 
void SetTitle (const WideString &title)
 Sets a title of window to render.
 
void HandleKey (const int32 &key)
 Handles given key and passes it to ActionRegistry.
 
void HandleMouse (MouseButton button, const Int2 &position)
 Handles given mouse action and passes it to ActionRegistry.
 
void Draw ()
 Sets m_ShouldRedraw to true.
 
void Clear () override
 Deletes all components from list. It does not destroy objects.
 
void RegisterComponent (const String &name, Component *component) override
 Registers given component to given unique name.
 
void UnregisterComponent (const String &name) override
 
void LockForWrite ()
 Locks a surface rendering locker.
 
void UnlockForWrite ()
 Unlocks a surface rendering locker.
 
void FinalizeThread ()
 Sets m_ShouldExit to true and waits until thread is finalized.
 
void OnComponentDestroy (Component *component)
 Safely deletes given component.
 
void SetRaycastMethod (RaycastMethod method)
 Sets the raycast method.
 
- Public Member Functions inherited from Andromenda::ComponentRegistry
ComponentGetComponent (const String &name)
 Finds component with given unique name.
 
void PutAtTop (const String &id)
 Move component mapped to given unique name to the top of a surface.
 

Additional Inherited Members

- Protected Member Functions inherited from Andromenda::ComponentRegistry
std::vector< std::pair< String, Component * > > & getComponents ()
 Returns reference to a list of components.
 
- Protected Attributes inherited from Andromenda::ComponentRegistry
ComponentCallback m_Callback
 Action component callback.
 

Detailed Description

The renderer of component registry.

Member Function Documentation

◆ Clear()

void Andromenda::Surface::Clear ( )
overridevirtual

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

Reimplemented from Andromenda::ComponentRegistry.

◆ HandleKey()

void Andromenda::Surface::HandleKey ( const int32 & key)

Handles given key and passes it to ActionRegistry.

Parameters
key

◆ RegisterComponent()

void Andromenda::Surface::RegisterComponent ( const String & name,
Component * component )
overridevirtual

Registers given component to given unique name.

Reimplemented from Andromenda::ComponentRegistry.

◆ SetRaycastMethod()

void Andromenda::Surface::SetRaycastMethod ( RaycastMethod method)

Sets the raycast method.

Parameters
method

◆ SetTitle()

void Andromenda::Surface::SetTitle ( const WideString & title)

Sets a title of window to render.

Parameters
title

◆ UnregisterComponent()

void Andromenda::Surface::UnregisterComponent ( const String & name)
overridevirtual

Reimplemented from Andromenda::ComponentRegistry.


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