7#include "abstract_button_widget.hpp"
8#include "default_button_delegate.hpp"
10namespace hi::inline v1 {
17 template<
typename Label>
23 template<
typename Label>
31 void set_layout(
widget_layout const &layout)
noexcept override;
32 void draw(
draw_context const &context)
noexcept override;
33 [[nodiscard]]
bool accepts_keyboard_focus(keyboard_focus_group group)
const noexcept override;
36 template<
typename Label>
42 set_label(std::forward<Label>(
label));
45 void draw_toolbar_button(
draw_context const &context)
noexcept;
Definition alignment.hpp:64
Draw context for drawing using the HikoGUI shaders.
Definition draw_context.hpp:52
Definition gui_window.hpp:39
A label consisting of localizable text and an icon.
Definition label.hpp:27
Class that hold either a weak_ptr or a unique_ptr This class is to hold a weak_ptr,...
Definition weak_or_unique_ptr.hpp:25
Definition abstract_button_widget.hpp:23
Definition button_delegate.hpp:14
Definition toolbar_button_widget.hpp:12
An interactive graphical object as part of the user-interface.
Definition widget.hpp:39
Definition widget_constraints.hpp:13
Definition widget_layout.hpp:18