Loading...
Searching...
No Matches
ConvexButton.h
Go to the documentation of this file.
1#ifndef CONVEXBUTTON_H
2#define CONVEXBUTTON_H
3
4#pragma once
5
6#include <Malena/Graphics/Button.h>
7#include <Malena/Graphics/Convex.h>
8#include <Malena/Traits/Customizable.h>
9
10namespace ml
11{
40 class ConvexButton : public Button<Convex, std::size_t>
41 {
42 using Button::Button;
43 };
44
52 template<typename MANIFEST>
53 class ConvexButtonWith : public virtual Customizable<ConvexButton, MANIFEST> {};
54
55} // namespace ml
56
57#endif // CONVEXBUTTON_H
Button(const sf::Font &font=FontManager<>::getDefault(), std::optional< S > buttonSize=std::nullopt, const std::string &text="", unsigned int charSize=30)
Construct a button with an optional size, label, and font.
A convex polygon button with a centered text label.
ConvexButton with an attached manifest.
Definition Component.h:18