Loading...
Searching...
No Matches
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
12
13namespace 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(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.
#define MALENA_API
Definition Component.h:22