Rise
The Vieneo Province
Loading...
Searching...
No Matches
KeyboardChart Class Reference

#include <KeyboardChart.h>

Collaboration diagram for KeyboardChart:
[legend]

Classes

struct  TextLayout

Public Member Functions

HRESULT OnCreateDevice (Rendering::RenderDevice *device)
void OnLostDevice ()
void OnResetDevice ()
void OnDestroyDevice ()
void Update (bool visible, float elapsedSeconds)
void Draw (Rendering::RenderSprite *sprite, const Keychart::Labels &labels, const std::wstring &title, int displayWidth, int displayHeight)

Private Attributes

Rendering::RenderTexture * blankKeyboard = nullptr
Rendering::RenderFont * font = nullptr
bool wasVisible = false
double visibleSeconds = 0.0
Keychart::Labels previousLabels {}
std::wstring previousTitle
std::map< std::tuple< std::wstring, std::wstring, LONG >, TextLayout > textLayouts

Detailed Description

Definition at line 93 of file KeyboardChart.h.

Member Function Documentation

◆ Draw()

void KeyboardChart::Draw ( Rendering::RenderSprite * sprite,
const Keychart::Labels & labels,
const std::wstring & title,
int displayWidth,
int displayHeight )

Definition at line 202 of file KeyboardChart.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCreateDevice()

HRESULT KeyboardChart::OnCreateDevice ( Rendering::RenderDevice * device)

Definition at line 125 of file KeyboardChart.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnDestroyDevice()

void KeyboardChart::OnDestroyDevice ( )

Definition at line 184 of file KeyboardChart.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnLostDevice()

void KeyboardChart::OnLostDevice ( )

Definition at line 174 of file KeyboardChart.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnResetDevice()

void KeyboardChart::OnResetDevice ( )

Definition at line 179 of file KeyboardChart.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Update()

void KeyboardChart::Update ( bool visible,
float elapsedSeconds )

Definition at line 193 of file KeyboardChart.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ blankKeyboard

Rendering::RenderTexture* KeyboardChart::blankKeyboard = nullptr
private

Definition at line 105 of file KeyboardChart.h.

◆ font

Rendering::RenderFont* KeyboardChart::font = nullptr
private

Definition at line 106 of file KeyboardChart.h.

◆ previousLabels

Keychart::Labels KeyboardChart::previousLabels {}
private

Definition at line 109 of file KeyboardChart.h.

◆ previousTitle

std::wstring KeyboardChart::previousTitle
private

Definition at line 110 of file KeyboardChart.h.

◆ textLayouts

std::map<std::tuple<std::wstring, std::wstring, LONG>, TextLayout> KeyboardChart::textLayouts
private

Definition at line 117 of file KeyboardChart.h.

◆ visibleSeconds

double KeyboardChart::visibleSeconds = 0.0
private

Definition at line 108 of file KeyboardChart.h.

◆ wasVisible

bool KeyboardChart::wasVisible = false
private

Definition at line 107 of file KeyboardChart.h.


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