ProgressPaintable.h 757 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Layout/Progress.h>
  8. #include <LibWeb/Painting/PaintableBox.h>
  9. namespace Web::Painting {
  10. // FIXME: ProgressPaintable should inherit from LabelablePaintable, as it is a LabelableNode.
  11. // LabelablePaintable should be split into FormAssociatedLabelablePaintable once this
  12. // happens.
  13. class ProgressPaintable final : public PaintableBox {
  14. public:
  15. static NonnullRefPtr<ProgressPaintable> create(Layout::Progress const&);
  16. virtual void paint(PaintContext&, PaintPhase) const override;
  17. Layout::Progress const& layout_box() const;
  18. private:
  19. ProgressPaintable(Layout::Progress const&);
  20. };
  21. }