Zappy GUI
C++ graphic client: renderer, camera, network
Loading...
Searching...
No Matches
IWidget.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <optional>
7
8#include "SelectionFinder.hpp"
9
11class IWidget {
12 public:
13 virtual ~IWidget() = default;
14
17 virtual void draw(int scaledFontSize) const = 0;
18
21 virtual bool handleInput() = 0;
22};
Interface for GUI widgets.
Definition IWidget.hpp:11
virtual void draw(int scaledFontSize) const =0
Draws the widget.
virtual bool handleInput()=0
Processes user input.
virtual ~IWidget()=default