SVGSVGElement.h 568 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2020, Matthew Olsson <matthewcolsson@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibGfx/Bitmap.h>
  8. #include <LibWeb/SVG/SVGGraphicsElement.h>
  9. namespace Web::SVG {
  10. class SVGSVGElement final : public SVGGraphicsElement {
  11. public:
  12. using WrapperType = Bindings::SVGSVGElementWrapper;
  13. SVGSVGElement(DOM::Document&, QualifiedName);
  14. virtual RefPtr<Layout::Node> create_layout_node() override;
  15. unsigned width() const;
  16. unsigned height() const;
  17. private:
  18. RefPtr<Gfx::Bitmap> m_bitmap;
  19. };
  20. }