26#ifndef TGUI_BITMAP_BUTTON_HPP
27#define TGUI_BITMAP_BUTTON_HPP
30#include <TGUI/Widgets/Button.hpp>
43 typedef std::shared_ptr<BitmapButton>
Ptr;
44 typedef std::shared_ptr<const BitmapButton>
ConstPtr;
83 virtual void setText(
const sf::String& text)
override;
122 void draw(sf::RenderTarget& target, sf::RenderStates states)
const override;
131 std::unique_ptr<DataIO::Node>
save(SavingRenderersMap& renderers)
const override;
137 void load(
const std::unique_ptr<DataIO::Node>& node,
const LoadingRenderersMap& renderers)
override;
143 void updateSize()
override;
151 return std::make_shared<BitmapButton>(*
this);
158 void recalculateGlyphSize();
166 float m_relativeGlyphHeight = 0;
Class to store the position or size of a widget.
Definition: Layout.hpp:260
Definition: Sprite.hpp:46
Definition: Texture.hpp:42
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:37