summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs')
-rw-r--r--vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs105
1 files changed, 88 insertions, 17 deletions
diff --git a/vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs b/vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs
index 886090b1d..335576870 100644
--- a/vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs
+++ b/vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs
@@ -1,4 +1,5 @@
#![allow(unused_imports)]
+#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
@@ -1031,23 +1032,6 @@ extern "C" {
dirty_width: f64,
dirty_height: f64,
) -> Result<(), JsValue>;
- # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = getLineDash)]
- #[doc = "The `getLineDash()` method."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getLineDash)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"]
- pub fn get_line_dash(this: &CanvasRenderingContext2d) -> ::js_sys::Array;
- # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = setLineDash)]
- #[doc = "The `setLineDash()` method."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"]
- pub fn set_line_dash(
- this: &CanvasRenderingContext2d,
- segments: &::wasm_bindgen::JsValue,
- ) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = arc)]
#[doc = "The `arc()` method."]
#[doc = ""]
@@ -1174,6 +1158,93 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"]
pub fn rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64);
+ # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = roundRect)]
+ #[doc = "The `roundRect()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"]
+ pub fn round_rect(
+ this: &CanvasRenderingContext2d,
+ x: f64,
+ y: f64,
+ w: f64,
+ h: f64,
+ ) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = roundRect)]
+ #[doc = "The `roundRect()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"]
+ pub fn round_rect_with_f64(
+ this: &CanvasRenderingContext2d,
+ x: f64,
+ y: f64,
+ w: f64,
+ h: f64,
+ radii: f64,
+ ) -> Result<(), JsValue>;
+ #[cfg(feature = "DomPointInit")]
+ # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = roundRect)]
+ #[doc = "The `roundRect()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `DomPointInit`*"]
+ pub fn round_rect_with_dom_point_init(
+ this: &CanvasRenderingContext2d,
+ x: f64,
+ y: f64,
+ w: f64,
+ h: f64,
+ radii: &DomPointInit,
+ ) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = roundRect)]
+ #[doc = "The `roundRect()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"]
+ pub fn round_rect_with_f64_sequence(
+ this: &CanvasRenderingContext2d,
+ x: f64,
+ y: f64,
+ w: f64,
+ h: f64,
+ radii: &::wasm_bindgen::JsValue,
+ ) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = roundRect)]
+ #[doc = "The `roundRect()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"]
+ pub fn round_rect_with_dom_point_init_sequence(
+ this: &CanvasRenderingContext2d,
+ x: f64,
+ y: f64,
+ w: f64,
+ h: f64,
+ radii: &::wasm_bindgen::JsValue,
+ ) -> Result<(), JsValue>;
+ # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = getLineDash)]
+ #[doc = "The `getLineDash()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getLineDash)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"]
+ pub fn get_line_dash(this: &CanvasRenderingContext2d) -> ::js_sys::Array;
+ # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = setLineDash)]
+ #[doc = "The `setLineDash()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"]
+ pub fn set_line_dash(
+ this: &CanvasRenderingContext2d,
+ segments: &::wasm_bindgen::JsValue,
+ ) -> Result<(), JsValue>;
# [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clearRect)]
#[doc = "The `clearRect()` method."]
#[doc = ""]