ViewBox.h 368 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Forward.h>
  8. #include <LibWeb/Forward.h>
  9. namespace Web::SVG {
  10. struct ViewBox {
  11. float min_x { 0 };
  12. float min_y { 0 };
  13. float width { 0 };
  14. float height { 0 };
  15. };
  16. Optional<ViewBox> try_parse_view_box(StringView);
  17. }