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
// Copyright (c) 2025 Dave R. Smith. All rights reserved.
2
// Malena Framework — Proprietary Software. See LICENSE for terms.
3
4
#ifndef MALENA_RECTANGLEBUTTON_H
5
#define MALENA_RECTANGLEBUTTON_H
6
7
#pragma once
8
9
#include <
Malena/Core/malena_export.h
>
10
#include <
Malena/Graphics/Base/Button.h
>
11
#include <
Malena/Graphics/Primitives/Rectangle.h
>
12
13
namespace
ml
14
{
47
class
MALENA_API
RectangleButton
:
public
Button
<Rectangle, sf::Vector2f>
48
{
49
public
:
50
using
Button::Button
;
51
#ifdef _WIN32
52
~RectangleButton
()
override
;
53
#endif
54
};
55
63
template
<
typename
MANIFEST>
64
class
RectangleButtonWith
:
public
RectangleButton
,
public
Customizable
<MANIFEST> {};
65
66
}
// namespace ml
67
68
#endif
// MALENA_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:48
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:64
malena_export.h
MALENA_API
#define MALENA_API
Definition
malena_export.h:18
ml
Definition
Component.h:22