Nebula
Loading...
Searching...
No Matches
Frame::FrameServer Class Reference

#include <frameserver.h>

Inherits Core::RefCounted.

Public Member Functions

 FrameServer ()
 constructor
 
virtual ~FrameServer ()
 destructor
 
void Open ()
 open server
 
bool IsOpen () const
 returns true if open
 
void Close ()
 close server, discards all remaining scripts
 
void OnWindowResize ()
 propagate resize to all in all scripts
 
void RebuildScripts ()
 Rebuild all frame scripts.
 
Ptr< FrameScriptLoadFrameScript (const Resources::ResourceName &name, const IO::URI &path, const CoreGraphics::WindowId window)
 load frame script and save with name
 
const Ptr< FrameScript > & GetFrameScript (const Resources::ResourceName &name)
 get script by name
 
void UnloadFrameScript (const Resources::ResourceName &name)
 unload frame script
 
- Public Member Functions inherited from Core::RefCounted
 RefCounted ()
 constructor
 
int GetRefCount () const
 get the current refcount
 
void AddRef ()
 increment refcount by one
 
void Release ()
 decrement refcount and destroy object if refcount is zero
 
bool IsInstanceOf (const Rtti &rtti) const
 return true if this object is instance of given class
 
bool IsInstanceOf (const Util::String &className) const
 return true if this object is instance of given class by string
 
bool IsInstanceOf (const Util::FourCC &classFourCC) const
 return true if this object is instance of given class by fourcc
 
bool IsA (const Rtti &rtti) const
 return true if this object is instance of given class, or a derived class
 
bool IsA (const Util::String &rttiName) const
 return true if this object is instance of given class, or a derived class, by string
 
bool IsA (const Util::FourCC &rttiFourCC) const
 return true if this object is instance of given class, or a derived class, by fourcc
 
const Util::StringGetClassName () const
 get the class name
 
Util::FourCC GetClassFourCC () const
 get the class FourCC code
 

Private Member Functions

 __DeclareClass (FrameServer)
 
 __DeclareSingleton (FrameServer)
 

Private Attributes

Util::Dictionary< Resources::ResourceName, Ptr< FrameScript > > frameScripts
 
CoreGraphics::TextureId windowTexture
 
bool isOpen
 

Additional Inherited Members

- Static Public Member Functions inherited from Core::RefCounted
static void DumpRefCountingLeaks ()
 dump refcounting leaks, call at end of application (NEBULA_DEBUG builds only!)
 
- Protected Member Functions inherited from Core::RefCounted
virtual ~RefCounted ()
 destructor (called when refcount reaches zero)
 

Constructor & Destructor Documentation

◆ FrameServer()

Frame::FrameServer::FrameServer ( )

constructor

◆ ~FrameServer()

Frame::FrameServer::~FrameServer ( )
virtual

destructor

Member Function Documentation

◆ __DeclareClass()

Frame::FrameServer::__DeclareClass ( FrameServer )
private

◆ __DeclareSingleton()

Frame::FrameServer::__DeclareSingleton ( FrameServer )
private

◆ Close()

void Frame::FrameServer::Close ( )

close server, discards all remaining scripts

◆ GetFrameScript()

const Ptr< Frame::FrameScript > & Frame::FrameServer::GetFrameScript ( const Resources::ResourceName & name)
inline

get script by name

◆ IsOpen()

bool Frame::FrameServer::IsOpen ( ) const
inline

returns true if open

◆ LoadFrameScript()

Ptr< Frame::FrameScript > Frame::FrameServer::LoadFrameScript ( const Resources::ResourceName & name,
const IO::URI & path,
const CoreGraphics::WindowId window )

load frame script and save with name

◆ OnWindowResize()

void Frame::FrameServer::OnWindowResize ( )

propagate resize to all in all scripts

◆ Open()

void Frame::FrameServer::Open ( )

open server

◆ RebuildScripts()

void Frame::FrameServer::RebuildScripts ( )

Rebuild all frame scripts.

◆ UnloadFrameScript()

void Frame::FrameServer::UnloadFrameScript ( const Resources::ResourceName & name)

unload frame script

Member Data Documentation

◆ frameScripts

Util::Dictionary<Resources::ResourceName, Ptr<FrameScript> > Frame::FrameServer::frameScripts
private

◆ isOpen

bool Frame::FrameServer::isOpen
private

◆ windowTexture

CoreGraphics::TextureId Frame::FrameServer::windowTexture
private

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