2#include "base_controller.hpp"
3#include <widgets/container_widget.hpp>
16 if (!p.get_bool())
return;
19 if (d.empty())
return;
24 if (!(*it)->handle_Delete())
26 recursive_child_Delete(*it);
46 using base_controller::base_controller;
53 if (p->handle_child_Delete())
56 recursive_child_Delete(p);
62template <has_Delete T>
64{
using base_controller::base_controller; };
Ensures that buttons labeled Delete triggers the delete funcitonlaity on the widget tree,...
Definition ctrlr_deleter.hpp:12
void on_Delete(button_presser &p)
Handles presses on buttons labeled Delete.
Definition ctrlr_deleter.hpp:14