21 void save(ImGuiTextBuffer& buf)
override;
28 void setDefaultIcons();
30 void paintConfigureIcons();
37 bool iconsHideTitle =
true;
38 bool iconsAllowMove =
false;
39 int iconsHorizontal = 1;
40 float iconsFadeDuration = 5.0f;
41 float iconsFadeDelay = 5.0f;
45 IconInfo(
TclObject expr_, std::string on_, std::string off_,
bool fade_)
46 : expr(expr_), on(std::move(on_)), off(std::move(off_)), fade(fade_) {}
57 bool lastState =
true;
61 std::vector<IconInfo> iconInfo;
64 int iconsNumEnabled = 0;
65 bool iconInfoDirty =
true;
69 static constexpr auto persistentElements = std::tuple{
72 PersistentElement{
"allowMove", &ImGuiOsdIcons::iconsAllowMove},
73 PersistentElementMax{
"layout", &ImGuiOsdIcons::iconsHorizontal, 2},
Most basic/generic texture: only contains a texture ID.