malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Graphics
Controls
CircleButton.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_CIRCLEBUTTON_H
5
#define MALENA_CIRCLEBUTTON_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/Circle.h
>
12
13
namespace
ml
14
{
40
class
MALENA_API
CircleButton
:
public
Button
<Circle, float>
41
{
42
public
:
43
using
Button::Button
;
44
#ifdef _WIN32
45
~CircleButton
()
override
;
46
#endif
47
};
48
56
template
<
typename
MANIFEST>
57
class
CircleButtonWith
:
public
CircleButton
,
public
virtual
Customizable
<MANIFEST> {};
58
59
}
// namespace ml
60
61
#endif
// MALENA_CIRCLEBUTTON_H
Button.h
Circle.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::CircleButton
A circular button with a centered text label.
Definition
CircleButton.h:41
ml::CircleButton::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::CircleButtonWith
CircleButton with an attached manifest.
Definition
CircleButton.h:57
ml::Customizable< MANIFEST >::Customizable
Customizable()=default
malena_export.h
MALENA_API
#define MALENA_API
Definition
malena_export.h:18
ml
Definition
Component.h:22