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;
54 BitmapButton(
const char* typeName =
"BitmapButton",
bool initRenderer =
true);
106 using Widget::setSize;
161 std::unique_ptr<DataIO::Node>
save(SavingRenderersMap& renderers)
const override;
167 void load(
const std::unique_ptr<DataIO::Node>& node,
const LoadingRenderersMap& renderers)
override;
173 void updateSize()
override;
179 void initComponentsBitmapButton();
185 void updateComponentPositions();
193 return std::make_shared<BitmapButton>(*
this);
203 void recalculateGlyphSize();
209 priv::dev::StyleProperty<Texture> icon;
212 std::shared_ptr<priv::dev::ImageComponent> m_imageComponent;
214 float m_relativeGlyphHeight = 0;
216 std::uint64_t m_textStyleChangedCallbackId = 0;
Class to store the position or size of a widget.
Definition Layout.hpp:262
Wrapper class to store strings.
Definition String.hpp:79
Definition Texture.hpp:49
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:36