/* * Copyright (c) 2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::Painting { class LabelablePaintable : public PaintableBox { public: Layout::LabelableNode const& layout_box() const; Layout::LabelableNode& layout_box(); virtual void handle_associated_label_mousedown(Badge) { } virtual void handle_associated_label_mouseup(Badge) { } virtual void handle_associated_label_mousemove(Badge, [[maybe_unused]] bool is_inside_node_or_label) { } protected: LabelablePaintable(Layout::LabelableNode const&); }; }