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);
154 std::unique_ptr<DataIO::Node>
save(SavingRenderersMap& renderers)
const override;
160 void load(
const std::unique_ptr<DataIO::Node>& node,
const LoadingRenderersMap& renderers)
override;
166 void updateSize()
override;
172 void initComponentsBitmapButton();
178 void updateComponentPositions();
193 void recalculateGlyphSize();
199 priv::dev::StyleProperty<Texture> icon;
202 std::shared_ptr<priv::dev::ImageComponent> m_imageComponent;
204 float m_relativeGlyphHeight = 0;
206 std::uint64_t m_textStyleChangedCallbackId = 0;
Class to store the position or size of a widget.
Definition: Layout.hpp:284
Wrapper class to store strings.
Definition: String.hpp:79
Definition: Texture.hpp:52
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36