Loading...
Searching...
No Matches
RectangleButton.h
Go to the documentation of this file.
1#ifndef RECTANGLEBUTTON_H
2#define RECTANGLEBUTTON_H
3
4#pragma once
5
8
9namespace ml
10{
43 class RectangleButton : public Button<Rectangle, sf::Vector2f>
44 {
45 public:
46 using Button::Button;
47 };
48
56 template<typename MANIFEST>
57 class RectangleButtonWith : public RectangleButton, public Customizable<MANIFEST> {};
58
59} // namespace ml
60
61#endif // RECTANGLEBUTTON_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 rectangular button with a centered text label.
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.
RectangleButton with an attached manifest.
Definition Component.h:18