maxcountryman_web_sys/features/
gen_TextMetrics.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextMetrics , typescript_type = "TextMetrics")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `TextMetrics` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"]
13 pub type TextMetrics;
14 # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = width)]
15 #[doc = "Getter for the `width` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/width)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"]
20 pub fn width(this: &TextMetrics) -> f64;
21 # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxLeft)]
22 #[doc = "Getter for the `actualBoundingBoxLeft` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxLeft)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"]
27 pub fn actual_bounding_box_left(this: &TextMetrics) -> f64;
28 # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxRight)]
29 #[doc = "Getter for the `actualBoundingBoxRight` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxRight)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"]
34 pub fn actual_bounding_box_right(this: &TextMetrics) -> f64;
35 # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = fontBoundingBoxAscent)]
36 #[doc = "Getter for the `fontBoundingBoxAscent` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/fontBoundingBoxAscent)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"]
41 pub fn font_bounding_box_ascent(this: &TextMetrics) -> f64;
42 # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = fontBoundingBoxDescent)]
43 #[doc = "Getter for the `fontBoundingBoxDescent` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/fontBoundingBoxDescent)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"]
48 pub fn font_bounding_box_descent(this: &TextMetrics) -> f64;
49 # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxAscent)]
50 #[doc = "Getter for the `actualBoundingBoxAscent` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxAscent)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"]
55 pub fn actual_bounding_box_ascent(this: &TextMetrics) -> f64;
56 # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxDescent)]
57 #[doc = "Getter for the `actualBoundingBoxDescent` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxDescent)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"]
62 pub fn actual_bounding_box_descent(this: &TextMetrics) -> f64;
63}