malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Graphics
Controls
RectangleButton.h
Go to the documentation of this file.
1
#ifndef RECTANGLEBUTTON_H
2
#define RECTANGLEBUTTON_H
3
4
#pragma once
5
6
#include <
Malena/Graphics/Base/Button.h
>
7
#include <
Malena/Graphics/Primitives/Rectangle.h
>
8
9
namespace
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.h
Rectangle.h
ml::Button::Button
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.
ml::Customizable< MANIFEST >::Customizable
Customizable()=default
ml::RectangleButton
A rectangular button with a centered text label.
Definition
RectangleButton.h:44
ml::RectangleButton::Button
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.
ml::RectangleButtonWith
RectangleButton with an attached manifest.
Definition
RectangleButton.h:57
ml
Definition
Component.h:18
Generated by
1.16.1