MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / SwitchComponent

Method SwitchComponent

src/components/SwitchComponent.cpp:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "../Window.h"
5
6SwitchComponent::SwitchComponent(Window* window, bool state) : GuiComponent(window), mState(state)
7{
8 //mSize = Vector2u((unsigned int)(Renderer::getScreenWidth() * 0.05),
9 // (unsigned int)(Renderer::getScreenHeight() * 0.05));
10
11 mSize = Font::get(*mWindow->getResourceManager(), Font::getDefaultPath(), FONT_SIZE_MEDIUM)->sizeText("OFF");
12}
13
14bool SwitchComponent::input(InputConfig* config, Input input)
15{

Callers

nothing calls this directly

Calls 2

sizeTextMethod · 0.80
getResourceManagerMethod · 0.80

Tested by

no test coverage detected