40 template<
typename Icon,
typename Color = hi::color>
44 this->icon = std::forward<Icon>(
icon);
45 this->color = std::forward<Color>(
color);
49 widget_constraints
const &set_constraints() noexcept override;
50 void set_layout(widget_layout const &layout) noexcept override;
51 void draw(draw_context const &context) noexcept override;
54 enum class icon_type { no, glyph, pixmap };
58 paged_image _pixmap_backing;
59 decltype(icon)::token_type _icon_cbt;
63 aarectangle _icon_rectangle;
65 icon_widget(gui_window &window, widget *parent)
noexcept;