Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-browser-engine

Source of release 0.6.1

0.6.1 / src / web / layout / svg_geometry_box.lucb

#==============================================================================================
#
#   svg_geometry_box - Layout::SVGGeometryBox: the box of a basic shape or a <path>
#
#   DESCRIPTION:
#       Port of LibWeb/Layout/SVGGeometryBox.cpp (lines 1-27) and SVGGeometryBox.h: the
#       constructor, the geometry element and the SVGPathPaintable.
#
#       Copyright (c) 2020, Matthew Olsson <matthewcolsson@gmail.com>
#       Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
#       SPDX-License-Identifier: BSD-2-Clause
#
#==============================================================================================

## Ported from Libraries/LibWeb/Layout/SVGGeometryBox.cpp:17 Web::Layout::SVGGeometryBox::SVGGeometryBox.
pub func layout_svg_geometry_box_construct(this: LayoutSvgGeometryBox*, document: DomDocument*, element: SvgGeometryElement*, style: CssComputedProperties*):
    layout_svg_graphics_box_construct(this.layout_svg_graphics_box(), document, element.svg_graphics_element(), style)

## Ported from Libraries/LibWeb/Layout/SVGGeometryBox.h:23 Web::Layout::SVGGeometryBox::dom_node.
pub func layout_svg_geometry_box_dom_node(this: LayoutSvgGeometryBox*) -> SvgGeometryElement*:
    return (SvgGeometryElement*)layout_svg_graphics_box_dom_node(this.layout_svg_graphics_box())

## Ported from Libraries/LibWeb/Layout/SVGGeometryBox.h:24 Web::Layout::SVGGeometryBox::dom_node.
pub func layout_svg_geometry_box_dom_node_const(this: LayoutSvgGeometryBox*) -> SvgGeometryElement*:
    return layout_svg_geometry_box_dom_node(this)

## Ported from Libraries/LibWeb/Layout/SVGGeometryBox.cpp:22 Web::Layout::SVGGeometryBox::create_paintable (override).
pub func layout_svg_geometry_box_create_paintable_impl(base: LayoutNode*) -> PaintPaintable*?:
    return paint_svg_path_paintable_create(((LayoutSvgGeometryBox*)base).layout_svg_graphics_box()).paint_paintable()

## Ported from Libraries/LibWeb/Layout/SVGGeometryBox.h:29 Web::Layout::SVGGeometryBox::is_svg_geometry_box (override).
pub func layout_svg_geometry_box_is_svg_geometry_box_impl(base: LayoutNode*) -> bool:
    _ = base
    return true