DDNet documentation
Loading...
Searching...
No Matches
CFontTyper Class Reference

#include <font_typer.h>

Inheritance diagram for CFontTyper:
[legend]
Collaboration diagram for CFontTyper:
[legend]

Classes

class  CState

Public Member Functions

void OnInit (CEditor *pEditor) override
bool OnInput (const IInput::CEvent &Event) override
void Render ()
bool IsActive () const
Public Member Functions inherited from CEditorComponent
virtual void OnReset ()
virtual void OnMapLoad ()
virtual void OnUpdate ()
void InitSubComponents ()
void RegisterSubComponent (CEditorComponent &Component)
Public Member Functions inherited from CEditorObject
virtual ~CEditorObject ()=default
CEditor * Editor ()
const CEditor * Editor () const
CEditorMap * Map ()
const CEditorMap * Map () const
IInput * Input ()
const IInput * Input () const
IClient * Client ()
const IClient * Client () const
CConfig * Config ()
const CConfig * Config () const
IEngine * Engine ()
const IEngine * Engine () const
IGraphics * Graphics ()
const IGraphics * Graphics () const
ISound * Sound ()
const ISound * Sound () const
ITextRender * TextRender ()
const ITextRender * TextRender () const
IStorage * Storage ()
const IStorage * Storage () const
CUi * Ui ()
const CUi * Ui () const
CRenderMap * RenderMap ()
const CRenderMap * RenderMap () const

Private Types

enum  { LETTER_OFFSET = 1 , NUMBER_OFFSET = 54 }

Private Member Functions

void SetCursor ()
void TextModeOff ()
void TextModeOn ()
void SetTile (ivec2 Pos, unsigned char Index, const std::shared_ptr< CLayerTiles > &pLayer)
void PlaceTile (unsigned char Index, const std::shared_ptr< CLayerTiles > &pLayer)

Private Attributes

std::chrono::nanoseconds m_CursorRenderTime
IGraphics::CTextureHandle m_CursorTextTexture
CUi::SConfirmPopupContext m_ConfirmActivatePopupContext

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
LETTER_OFFSET 
NUMBER_OFFSET 

Member Function Documentation

◆ IsActive()

bool CFontTyper::IsActive ( ) const

◆ OnInit()

void CFontTyper::OnInit ( CEditor * pEditor)
overridevirtual

Initialize the component and interface pointers. Needs to be the first function that is called. The default implementation also resets the component.

Reimplemented from CEditorComponent.

◆ OnInput()

bool CFontTyper::OnInput ( const IInput::CEvent & Event)
overridevirtual

Should return true if the event was consumed.

Reimplemented from CEditorComponent.

◆ PlaceTile()

void CFontTyper::PlaceTile ( unsigned char Index,
const std::shared_ptr< CLayerTiles > & pLayer )
private

◆ Render()

void CFontTyper::Render ( )

◆ SetCursor()

void CFontTyper::SetCursor ( )
private

◆ SetTile()

void CFontTyper::SetTile ( ivec2 Pos,
unsigned char Index,
const std::shared_ptr< CLayerTiles > & pLayer )
private

◆ TextModeOff()

void CFontTyper::TextModeOff ( )
private

◆ TextModeOn()

void CFontTyper::TextModeOn ( )
private

Member Data Documentation

◆ m_ConfirmActivatePopupContext

CUi::SConfirmPopupContext CFontTyper::m_ConfirmActivatePopupContext
private

◆ m_CursorRenderTime

std::chrono::nanoseconds CFontTyper::m_CursorRenderTime
private

◆ m_CursorTextTexture

IGraphics::CTextureHandle CFontTyper::m_CursorTextTexture
private

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