Nebula
Loading...
Searching...
No Matches
TBUI::TBUIContext Class Reference

#include <tbuicontext.h>

Inherits Graphics::GraphicsContext.

Classes

struct  TBUIState
 

Public Member Functions

 TBUIContext ()
 constructor
 
virtual ~TBUIContext ()
 destructor
 
- Public Member Functions inherited from Graphics::GraphicsContext
 GraphicsContext ()
 constructor
 
virtual ~GraphicsContext ()
 destructor
 

Static Public Member Functions

static void Create ()
 Create context.
 
static void Discard ()
 Discard context.
 
static void FrameUpdate (const Graphics::FrameContext &ctx)
 
static TBUIViewCreateView (int32_t width, int32_t height)
 
static void DestroyView (const TBUIView *view)
 
static bool ProcessInput (const Input::InputEvent &inputEvent)
 

Static Public Attributes

static TBUIState state
 

Private Member Functions

 __DeclarePluginContext ()
 

Static Private Member Functions

static void Render (const CoreGraphics::CmdBufferId cmdBuf, const Math::rectangle< int > &viewport, const IndexT frame, const IndexT bufferIndex)
 
static void OnWindowResized (const CoreGraphics::WindowId windowId, SizeT width, SizeT height)
 called if the window size has changed
 

Static Private Attributes

static TBUIRendererrenderer = nullptr
 
static TBUIFileInterface fileInterface
 
static TBUISystemInterface systemInterface
 
static TBUIClipboardInterface clipboardInterface
 
static TBUISTBFontRendererstbFontRenderer
 
static Util::Array< TBUIView * > views
 

Additional Inherited Members

- Static Protected Member Functions inherited from Graphics::GraphicsContext
static void InternalRegisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state)
 
static void InternalDeregisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state)
 
template<class ID_ALLOCATOR>
static void InternalDefragment (ID_ALLOCATOR &allocator, Graphics::GraphicsContextState &&state)
 

Constructor & Destructor Documentation

◆ TBUIContext()

TBUI::TBUIContext::TBUIContext ( )

constructor

◆ ~TBUIContext()

TBUI::TBUIContext::~TBUIContext ( )
virtual

destructor

Member Function Documentation

◆ __DeclarePluginContext()

TBUI::TBUIContext::__DeclarePluginContext ( )
private

◆ Create()

void TBUI::TBUIContext::Create ( )
static

Create context.

◆ CreateView()

TBUIView * TBUI::TBUIContext::CreateView ( int32_t width,
int32_t height )
static

◆ DestroyView()

void TBUI::TBUIContext::DestroyView ( const TBUIView * view)
static

◆ Discard()

void TBUI::TBUIContext::Discard ( )
static

Discard context.

◆ FrameUpdate()

void TBUI::TBUIContext::FrameUpdate ( const Graphics::FrameContext & ctx)
static

◆ OnWindowResized()

void TBUI::TBUIContext::OnWindowResized ( const CoreGraphics::WindowId windowId,
SizeT width,
SizeT height )
staticprivate

called if the window size has changed

◆ ProcessInput()

bool TBUI::TBUIContext::ProcessInput ( const Input::InputEvent & inputEvent)
static

◆ Render()

void TBUI::TBUIContext::Render ( const CoreGraphics::CmdBufferId cmdBuf,
const Math::rectangle< int > & viewport,
const IndexT frame,
const IndexT bufferIndex )
staticprivate

Member Data Documentation

◆ clipboardInterface

TBUIClipboardInterface TBUI::TBUIContext::clipboardInterface
staticprivate

◆ fileInterface

TBUIFileInterface TBUI::TBUIContext::fileInterface
staticprivate

◆ renderer

TBUIRenderer * TBUI::TBUIContext::renderer = nullptr
staticprivate

◆ state

TBUIContext::TBUIState TBUI::TBUIContext::state
static

◆ stbFontRenderer

TBUISTBFontRenderer * TBUI::TBUIContext::stbFontRenderer
staticprivate

◆ systemInterface

TBUISystemInterface TBUI::TBUIContext::systemInterface
staticprivate

◆ views

Util::Array< TBUIView * > TBUI::TBUIContext::views
staticprivate

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