| 4 | #include "../Window.h" |
| 5 | |
| 6 | SwitchComponent::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 | |
| 14 | bool SwitchComponent::input(InputConfig* config, Input input) |
| 15 | { |
nothing calls this directly
no test coverage detected