LIDL Soundboard  1.9.0
A simple soundboard, yet better than EXP Soundboard forsenE
LIDL::OverlayController Class Reference

The OverlayController singleton. More...

#include <OverlayController.h>

Inheritance diagram for LIDL::OverlayController:
Inheritance graph
Collaboration diagram for LIDL::OverlayController:
Collaboration graph

Public Member Functions

void ResizeToWindow (HWND hwnd)
 Resize the overlay to the topmost window. Should be called whenever topmost window changes, or is resized. More...
 
void ShowGameOverlay (HWND hwnd)
 Show the smol overlay when topmost window (game) changes. More...
 
void ShowGameOverlay (Profile *profile)
 ShowGameOverlay. More...
 
void SetRadialScanCode (int sc)
 SetRadialScanCode. More...
 
void SetRadialVirtualKey (int vk)
 SetRadialVirtualKey. More...
 

Static Public Member Functions

static OverlayControllerGetInstance ()
 

Private Member Functions

 OverlayController (QWidget *parent=nullptr)
 OverlayController default constructor. More...
 

Private Attributes

QTimer * _timerFade
 
GameNameOverlay_gameOverlay
 
QGridLayout * _layout
 
int _radialScanCode
 
int _radialVirtualKey
 

Static Private Attributes

static OverlayControllerself = nullptr
 

Detailed Description

The OverlayController singleton.

smth here

Author
Devolution
Version
1.8.0
Since
1.8.0

Constructor & Destructor Documentation

◆ OverlayController()

LIDL::OverlayController::OverlayController ( QWidget *  parent = nullptr)
explicitprivate

OverlayController default constructor.

Parameters
parent

References _gameOverlay, _radialScanCode, _radialVirtualKey, and _timerFade.

Referenced by GetInstance().

Here is the caller graph for this function:

Member Function Documentation

◆ GetInstance()

OverlayController * LIDL::OverlayController::GetInstance ( )
static

References OverlayController().

Referenced by LIDL::Callback::ResizeToWindow(), and LIDL::Callback::ShowOverlay().

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

◆ ResizeToWindow()

void LIDL::OverlayController::ResizeToWindow ( HWND  hwnd)

Resize the overlay to the topmost window. Should be called whenever topmost window changes, or is resized.

Parameters
hwnda handler to a window

References _gameOverlay.

Referenced by LIDL::Callback::ResizeToWindow(), and LIDL::Callback::ShowOverlay().

Here is the caller graph for this function:

◆ SetRadialScanCode()

void LIDL::OverlayController::SetRadialScanCode ( int  sc)

SetRadialScanCode.

Parameters
sc

References _radialScanCode.

◆ SetRadialVirtualKey()

void LIDL::OverlayController::SetRadialVirtualKey ( int  vk)

SetRadialVirtualKey.

Parameters
vk

References _radialVirtualKey.

◆ ShowGameOverlay() [1/2]

void LIDL::OverlayController::ShowGameOverlay ( HWND  hwnd)

Show the smol overlay when topmost window (game) changes.

Parameters
hwnda handler to a window Will get the name of the window from hwnd.
Deprecated:

References _gameOverlay, _timerFade, GameNameOverlay::FadeOut(), and GameNameOverlay::SetText().

Referenced by LIDL::Callback::ShowOverlay().

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

◆ ShowGameOverlay() [2/2]

void LIDL::OverlayController::ShowGameOverlay ( Profile profile)

ShowGameOverlay.

Show the smol overlay when topmost window (game) changes.

Parameters
profileWill display profile->name();

References _gameOverlay, _timerFade, GameNameOverlay::FadeOut(), Profile::GetName(), and GameNameOverlay::SetText().

Here is the call graph for this function:

Member Data Documentation

◆ _gameOverlay

GameNameOverlay* LIDL::OverlayController::_gameOverlay
private

Main overlay

Referenced by OverlayController(), ResizeToWindow(), and ShowGameOverlay().

◆ _layout

QGridLayout* LIDL::OverlayController::_layout
private

The layout

◆ _radialScanCode

int LIDL::OverlayController::_radialScanCode
private

◆ _radialVirtualKey

int LIDL::OverlayController::_radialVirtualKey
private

◆ _timerFade

QTimer* LIDL::OverlayController::_timerFade
private

Timer that controls the fade in/out

Referenced by OverlayController(), and ShowGameOverlay().

◆ self

OverlayController * LIDL::OverlayController::self = nullptr
staticprivate

A pointer to the only existing OverlayController.


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