malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Graphics
Controls
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
10
namespace
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
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::ConvexButton
A convex polygon button with a centered text label.
Definition
ConvexButton.h:41
ml::ConvexButtonWith
ConvexButton with an attached manifest.
Definition
ConvexButton.h:53
ml::Customizable< ConvexButton, MANIFEST >::Customizable
Customizable()=default
ml
Definition
Component.h:18
Generated by
1.16.1