Button class final
#include <Button.hpp>

Base classes

class UiObject

Constructors, destructors, conversion operators

Button()

Public functions

void load(std::unique_ptr<LoaderParams> const& params) override
void update() override
void draw() const override
void setTitle(const std::string& title)
void setTexture(const std::string& texture_id)
void setBackgroundColor(const Color& normal_color, const Color& hovered_color = ColorName::GRAY, const Color& disabled_color = ColorName::GRAY)
void setFontColor(const Color& color)
void setBorderRadius(const int border_radius)
void onClick(const std::function<void()>& callback)
void disable()
void enable()
auto isDisabled() const -> bool
auto isHovered() const -> bool