Skip to content

Truly independent web browser

841 B
Raw Blame
/*
 * Copyright (c) 2022, Andreas Kling <[email protected]>
 * Copyright (c) 2022, Sam Atkins <[email protected]>
 * Copyright (c) 2024, Kenneth Myhra <[email protected]>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/Bindings/DOMPointReadOnly.h>
#include <LibWeb/Bindings/RustInterface.h>
#include <LibWeb/Export.h>

namespace Web::Geometry {

// https://drafts.fxtf.org/geometry/#dompointreadonly
// The C++ side of a DOMPointReadOnly, which is implemented in Rust (Libraries/LibWeb/Bindings/Rust/src/geometry): what
// C++ creates.
class WEB_API DOMPointReadOnly final : public Bindings::RustInterfaceCell {
    WEB_RUST_INTERFACE(DOMPointReadOnly, dom_point_read_only)

public:
    static GC::Ref<DOMPointReadOnly> create(double x = 0, double y = 0, double z = 0, double w = 1);
};

}