1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 11:47:35 +00:00
serenity/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h

27 lines
737 B
C++

/*
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Layout/LabelableNode.h>
#include <LibWeb/Painting/PaintableBox.h>
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<Layout::Label>) { }
virtual void handle_associated_label_mouseup(Badge<Layout::Label>) { }
virtual void handle_associated_label_mousemove(Badge<Layout::Label>, [[maybe_unused]] bool is_inside_node_or_label) { }
protected:
LabelablePaintable(Layout::LabelableNode const&);
};
}