41 template<
typename Icon,
typename Color = hi::theme_color>
45 this->icon = std::forward<Icon>(
icon);
46 this->color = std::forward<Color>(
color);
50 widget_constraints
const &set_constraints() noexcept override;
51 void set_layout(widget_layout const &layout) noexcept override;
52 void draw(draw_context const &context) noexcept override;
55 enum class icon_type { no, glyph, pixmap };
59 paged_image _pixmap_backing;
60 decltype(icon)::token_type _icon_cbt;
64 aarectangle _icon_rectangle;
66 icon_widget(gui_window &window, widget *parent)
noexcept;