52 typedef ButtonInterface button_interface;
76 using base_type::as_widget;
77 neogfx::size_policy size_policy()
const override;
82 bool is_pressed()
const override;
85 bool is_checked()
const override;
86 bool is_unchecked()
const override;
87 bool is_indeterminate()
const override;
88 void check()
override;
89 void uncheck()
override;
90 void set_indeterminate()
override;
91 void set_checked(
bool aChecked)
override;
92 void toggle()
override;
96 void set_text(
i_string const& aText);
98 void set_image(
i_string const& aImageUri);
100 void set_image(
const texture& aImage);
102 const neogfx::label& label()
const;
103 neogfx::label& label();
112 void mouse_button_released(
mouse_button aButton,
const point& aPosition)
override;
117 virtual void handle_clicked();
119 virtual bool can_toggle()
const;
120 virtual const std::optional<bool>& checked_state()
const;
121 virtual bool set_checked_state(
const std::optional<bool>& aCheckedState);
123 std::string
mnemonic()
const override;
124 void mnemonic_execute()
override;
125 i_widget& mnemonic_widget()
override;
132 button_checked_state iCheckedState;