1pub mod element {
2 #[doc(alias = "rp")]
6 #[non_exhaustive]
7 #[derive(PartialEq, Clone, Default)]
8 pub struct RubyFallbackParenthesis {
9 sys: html_sys::text::RubyFallbackParenthesis,
10 }
11 impl RubyFallbackParenthesis {
12 pub fn builder() -> super::builder::RubyFallbackParenthesisBuilder {
14 super::builder::RubyFallbackParenthesisBuilder::new(Default::default())
15 }
16 }
17 impl RubyFallbackParenthesis {
18 pub fn data_map(&self) -> &html_sys::DataMap {
20 &self.sys.data_map
21 }
22 pub fn data_map_mut(&mut self) -> &mut html_sys::DataMap {
24 &mut self.sys.data_map
25 }
26 }
27 impl RubyFallbackParenthesis {
28 pub fn role(&self) -> std::option::Option<&str> {
30 self.sys.role.as_deref()
31 }
32 pub fn set_role(
34 &mut self,
35 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
36 ) {
37 self.sys.role = value.map(|v| v.into());
38 }
39 pub fn aria_active_descendant_element(&self) -> std::option::Option<&str> {
41 self.sys.aria_active_descendant_element.as_deref()
42 }
43 pub fn set_aria_active_descendant_element(
45 &mut self,
46 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
47 ) {
48 self.sys.aria_active_descendant_element = value.map(|v| v.into());
49 }
50 pub fn aria_atomic(&self) -> bool {
52 self.sys.aria_atomic
53 }
54 pub fn set_aria_atomic(&mut self, value: bool) {
56 self.sys.aria_atomic = value;
57 }
58 pub fn aria_auto_complete(&self) -> std::option::Option<&str> {
60 self.sys.aria_auto_complete.as_deref()
61 }
62 pub fn set_aria_auto_complete(
64 &mut self,
65 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
66 ) {
67 self.sys.aria_auto_complete = value.map(|v| v.into());
68 }
69 pub fn aria_braille_role_description(&self) -> std::option::Option<&str> {
71 self.sys.aria_braille_role_description.as_deref()
72 }
73 pub fn set_aria_braille_role_description(
75 &mut self,
76 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
77 ) {
78 self.sys.aria_braille_role_description = value.map(|v| v.into());
79 }
80 pub fn aria_busy(&self) -> bool {
82 self.sys.aria_busy
83 }
84 pub fn set_aria_busy(&mut self, value: bool) {
86 self.sys.aria_busy = value;
87 }
88 pub fn aria_checked(&self) -> std::option::Option<&str> {
90 self.sys.aria_checked.as_deref()
91 }
92 pub fn set_aria_checked(
94 &mut self,
95 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
96 ) {
97 self.sys.aria_checked = value.map(|v| v.into());
98 }
99 pub fn aria_col_count(&self) -> std::option::Option<i64> {
101 self.sys.aria_col_count
102 }
103 pub fn set_aria_col_count(&mut self, value: std::option::Option<i64>) {
105 self.sys.aria_col_count = value;
106 }
107 pub fn aria_col_index(&self) -> std::option::Option<i64> {
109 self.sys.aria_col_index
110 }
111 pub fn set_aria_col_index(&mut self, value: std::option::Option<i64>) {
113 self.sys.aria_col_index = value;
114 }
115 pub fn aria_col_index_text(&self) -> std::option::Option<&str> {
117 self.sys.aria_col_index_text.as_deref()
118 }
119 pub fn set_aria_col_index_text(
121 &mut self,
122 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
123 ) {
124 self.sys.aria_col_index_text = value.map(|v| v.into());
125 }
126 pub fn aria_col_span(&self) -> std::option::Option<i64> {
128 self.sys.aria_col_span
129 }
130 pub fn set_aria_col_span(&mut self, value: std::option::Option<i64>) {
132 self.sys.aria_col_span = value;
133 }
134 pub fn aria_controls_elements(&self) -> std::option::Option<&str> {
136 self.sys.aria_controls_elements.as_deref()
137 }
138 pub fn set_aria_controls_elements(
140 &mut self,
141 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
142 ) {
143 self.sys.aria_controls_elements = value.map(|v| v.into());
144 }
145 pub fn aria_current(&self) -> std::option::Option<&str> {
147 self.sys.aria_current.as_deref()
148 }
149 pub fn set_aria_current(
151 &mut self,
152 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
153 ) {
154 self.sys.aria_current = value.map(|v| v.into());
155 }
156 pub fn aria_described_by_elements(&self) -> std::option::Option<&str> {
158 self.sys.aria_described_by_elements.as_deref()
159 }
160 pub fn set_aria_described_by_elements(
162 &mut self,
163 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
164 ) {
165 self.sys.aria_described_by_elements = value.map(|v| v.into());
166 }
167 pub fn aria_description(&self) -> std::option::Option<&str> {
169 self.sys.aria_description.as_deref()
170 }
171 pub fn set_aria_description(
173 &mut self,
174 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
175 ) {
176 self.sys.aria_description = value.map(|v| v.into());
177 }
178 pub fn aria_details_elements(&self) -> std::option::Option<&str> {
180 self.sys.aria_details_elements.as_deref()
181 }
182 pub fn set_aria_details_elements(
184 &mut self,
185 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
186 ) {
187 self.sys.aria_details_elements = value.map(|v| v.into());
188 }
189 pub fn aria_disabled(&self) -> bool {
191 self.sys.aria_disabled
192 }
193 pub fn set_aria_disabled(&mut self, value: bool) {
195 self.sys.aria_disabled = value;
196 }
197 pub fn aria_drop_effect(&self) -> std::option::Option<&str> {
199 self.sys.aria_drop_effect.as_deref()
200 }
201 pub fn set_aria_drop_effect(
203 &mut self,
204 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
205 ) {
206 self.sys.aria_drop_effect = value.map(|v| v.into());
207 }
208 pub fn aria_error_message_elements(&self) -> std::option::Option<&str> {
210 self.sys.aria_error_message_elements.as_deref()
211 }
212 pub fn set_aria_error_message_elements(
214 &mut self,
215 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
216 ) {
217 self.sys.aria_error_message_elements = value.map(|v| v.into());
218 }
219 pub fn aria_expanded(&self) -> bool {
221 self.sys.aria_expanded
222 }
223 pub fn set_aria_expanded(&mut self, value: bool) {
225 self.sys.aria_expanded = value;
226 }
227 pub fn aria_flow_to_elements(&self) -> std::option::Option<&str> {
229 self.sys.aria_flow_to_elements.as_deref()
230 }
231 pub fn set_aria_flow_to_elements(
233 &mut self,
234 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
235 ) {
236 self.sys.aria_flow_to_elements = value.map(|v| v.into());
237 }
238 pub fn aria_grabbed(&self) -> bool {
240 self.sys.aria_grabbed
241 }
242 pub fn set_aria_grabbed(&mut self, value: bool) {
244 self.sys.aria_grabbed = value;
245 }
246 pub fn aria_has_popup(&self) -> std::option::Option<&str> {
248 self.sys.aria_has_popup.as_deref()
249 }
250 pub fn set_aria_has_popup(
252 &mut self,
253 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
254 ) {
255 self.sys.aria_has_popup = value.map(|v| v.into());
256 }
257 pub fn aria_hidden(&self) -> bool {
259 self.sys.aria_hidden
260 }
261 pub fn set_aria_hidden(&mut self, value: bool) {
263 self.sys.aria_hidden = value;
264 }
265 pub fn aria_invalid(&self) -> std::option::Option<&str> {
267 self.sys.aria_invalid.as_deref()
268 }
269 pub fn set_aria_invalid(
271 &mut self,
272 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
273 ) {
274 self.sys.aria_invalid = value.map(|v| v.into());
275 }
276 pub fn aria_key_shortcuts(&self) -> std::option::Option<&str> {
278 self.sys.aria_key_shortcuts.as_deref()
279 }
280 pub fn set_aria_key_shortcuts(
282 &mut self,
283 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
284 ) {
285 self.sys.aria_key_shortcuts = value.map(|v| v.into());
286 }
287 pub fn aria_level(&self) -> std::option::Option<i64> {
289 self.sys.aria_level
290 }
291 pub fn set_aria_level(&mut self, value: std::option::Option<i64>) {
293 self.sys.aria_level = value;
294 }
295 pub fn aria_live(&self) -> std::option::Option<&str> {
297 self.sys.aria_live.as_deref()
298 }
299 pub fn set_aria_live(
301 &mut self,
302 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
303 ) {
304 self.sys.aria_live = value.map(|v| v.into());
305 }
306 pub fn aria_modal(&self) -> bool {
308 self.sys.aria_modal
309 }
310 pub fn set_aria_modal(&mut self, value: bool) {
312 self.sys.aria_modal = value;
313 }
314 pub fn aria_multi_line(&self) -> bool {
316 self.sys.aria_multi_line
317 }
318 pub fn set_aria_multi_line(&mut self, value: bool) {
320 self.sys.aria_multi_line = value;
321 }
322 pub fn aria_multi_selectable(&self) -> bool {
324 self.sys.aria_multi_selectable
325 }
326 pub fn set_aria_multi_selectable(&mut self, value: bool) {
328 self.sys.aria_multi_selectable = value;
329 }
330 pub fn aria_orientation(&self) -> std::option::Option<&str> {
332 self.sys.aria_orientation.as_deref()
333 }
334 pub fn set_aria_orientation(
336 &mut self,
337 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
338 ) {
339 self.sys.aria_orientation = value.map(|v| v.into());
340 }
341 pub fn aria_owns_elements(&self) -> std::option::Option<&str> {
343 self.sys.aria_owns_elements.as_deref()
344 }
345 pub fn set_aria_owns_elements(
347 &mut self,
348 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
349 ) {
350 self.sys.aria_owns_elements = value.map(|v| v.into());
351 }
352 pub fn aria_placeholder(&self) -> std::option::Option<&str> {
354 self.sys.aria_placeholder.as_deref()
355 }
356 pub fn set_aria_placeholder(
358 &mut self,
359 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
360 ) {
361 self.sys.aria_placeholder = value.map(|v| v.into());
362 }
363 pub fn aria_pos_in_set(&self) -> std::option::Option<i64> {
365 self.sys.aria_pos_in_set
366 }
367 pub fn set_aria_pos_in_set(&mut self, value: std::option::Option<i64>) {
369 self.sys.aria_pos_in_set = value;
370 }
371 pub fn aria_pressed(&self) -> std::option::Option<&str> {
373 self.sys.aria_pressed.as_deref()
374 }
375 pub fn set_aria_pressed(
377 &mut self,
378 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
379 ) {
380 self.sys.aria_pressed = value.map(|v| v.into());
381 }
382 pub fn aria_read_only(&self) -> bool {
384 self.sys.aria_read_only
385 }
386 pub fn set_aria_read_only(&mut self, value: bool) {
388 self.sys.aria_read_only = value;
389 }
390 pub fn aria_relevant(&self) -> std::option::Option<&str> {
392 self.sys.aria_relevant.as_deref()
393 }
394 pub fn set_aria_relevant(
396 &mut self,
397 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
398 ) {
399 self.sys.aria_relevant = value.map(|v| v.into());
400 }
401 pub fn aria_required(&self) -> bool {
403 self.sys.aria_required
404 }
405 pub fn set_aria_required(&mut self, value: bool) {
407 self.sys.aria_required = value;
408 }
409 pub fn aria_role_description(&self) -> std::option::Option<&str> {
411 self.sys.aria_role_description.as_deref()
412 }
413 pub fn set_aria_role_description(
415 &mut self,
416 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
417 ) {
418 self.sys.aria_role_description = value.map(|v| v.into());
419 }
420 pub fn aria_row_count(&self) -> std::option::Option<i64> {
422 self.sys.aria_row_count
423 }
424 pub fn set_aria_row_count(&mut self, value: std::option::Option<i64>) {
426 self.sys.aria_row_count = value;
427 }
428 pub fn aria_row_index(&self) -> std::option::Option<i64> {
430 self.sys.aria_row_index
431 }
432 pub fn set_aria_row_index(&mut self, value: std::option::Option<i64>) {
434 self.sys.aria_row_index = value;
435 }
436 pub fn aria_row_index_text(&self) -> std::option::Option<&str> {
438 self.sys.aria_row_index_text.as_deref()
439 }
440 pub fn set_aria_row_index_text(
442 &mut self,
443 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
444 ) {
445 self.sys.aria_row_index_text = value.map(|v| v.into());
446 }
447 pub fn aria_row_span(&self) -> std::option::Option<i64> {
449 self.sys.aria_row_span
450 }
451 pub fn set_aria_row_span(&mut self, value: std::option::Option<i64>) {
453 self.sys.aria_row_span = value;
454 }
455 pub fn aria_selected(&self) -> bool {
457 self.sys.aria_selected
458 }
459 pub fn set_aria_selected(&mut self, value: bool) {
461 self.sys.aria_selected = value;
462 }
463 pub fn aria_set_size(&self) -> std::option::Option<i64> {
465 self.sys.aria_set_size
466 }
467 pub fn set_aria_set_size(&mut self, value: std::option::Option<i64>) {
469 self.sys.aria_set_size = value;
470 }
471 pub fn aria_sort(&self) -> std::option::Option<&str> {
473 self.sys.aria_sort.as_deref()
474 }
475 pub fn set_aria_sort(
477 &mut self,
478 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
479 ) {
480 self.sys.aria_sort = value.map(|v| v.into());
481 }
482 pub fn aria_value_max(&self) -> std::option::Option<f64> {
484 self.sys.aria_value_max
485 }
486 pub fn set_aria_value_max(&mut self, value: std::option::Option<f64>) {
488 self.sys.aria_value_max = value;
489 }
490 pub fn aria_value_min(&self) -> std::option::Option<f64> {
492 self.sys.aria_value_min
493 }
494 pub fn set_aria_value_min(&mut self, value: std::option::Option<f64>) {
496 self.sys.aria_value_min = value;
497 }
498 pub fn aria_value_now(&self) -> std::option::Option<f64> {
500 self.sys.aria_value_now
501 }
502 pub fn set_aria_value_now(&mut self, value: std::option::Option<f64>) {
504 self.sys.aria_value_now = value;
505 }
506 pub fn aria_value_text(&self) -> std::option::Option<&str> {
508 self.sys.aria_value_text.as_deref()
509 }
510 pub fn set_aria_value_text(
512 &mut self,
513 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
514 ) {
515 self.sys.aria_value_text = value.map(|v| v.into());
516 }
517 pub fn access_key(&self) -> std::option::Option<&str> {
519 self.sys.access_key.as_deref()
520 }
521 pub fn set_access_key(
523 &mut self,
524 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
525 ) {
526 self.sys.access_key = value.map(|v| v.into());
527 }
528 pub fn auto_capitalize(&self) -> std::option::Option<&str> {
530 self.sys.auto_capitalize.as_deref()
531 }
532 pub fn set_auto_capitalize(
534 &mut self,
535 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
536 ) {
537 self.sys.auto_capitalize = value.map(|v| v.into());
538 }
539 pub fn autofocus(&self) -> bool {
541 self.sys.autofocus
542 }
543 pub fn set_autofocus(&mut self, value: bool) {
545 self.sys.autofocus = value;
546 }
547 pub fn class(&self) -> std::option::Option<&str> {
549 self.sys.class.as_deref()
550 }
551 pub fn set_class(
553 &mut self,
554 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
555 ) {
556 self.sys.class = value.map(|v| v.into());
557 }
558 pub fn content_editable(&self) -> std::option::Option<&str> {
560 self.sys.content_editable.as_deref()
561 }
562 pub fn set_content_editable(
564 &mut self,
565 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
566 ) {
567 self.sys.content_editable = value.map(|v| v.into());
568 }
569 pub fn direction(&self) -> std::option::Option<&str> {
571 self.sys.direction.as_deref()
572 }
573 pub fn set_direction(
575 &mut self,
576 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
577 ) {
578 self.sys.direction = value.map(|v| v.into());
579 }
580 pub fn draggable(&self) -> bool {
582 self.sys.draggable
583 }
584 pub fn set_draggable(&mut self, value: bool) {
586 self.sys.draggable = value;
587 }
588 pub fn enter_key_hint(&self) -> std::option::Option<&str> {
590 self.sys.enter_key_hint.as_deref()
591 }
592 pub fn set_enter_key_hint(
594 &mut self,
595 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
596 ) {
597 self.sys.enter_key_hint = value.map(|v| v.into());
598 }
599 pub fn export_parts(&self) -> std::option::Option<&str> {
601 self.sys.export_parts.as_deref()
602 }
603 pub fn set_export_parts(
605 &mut self,
606 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
607 ) {
608 self.sys.export_parts = value.map(|v| v.into());
609 }
610 pub fn hidden(&self) -> std::option::Option<&str> {
612 self.sys.hidden.as_deref()
613 }
614 pub fn set_hidden(
616 &mut self,
617 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
618 ) {
619 self.sys.hidden = value.map(|v| v.into());
620 }
621 pub fn id(&self) -> std::option::Option<&str> {
623 self.sys.id.as_deref()
624 }
625 pub fn set_id(
627 &mut self,
628 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
629 ) {
630 self.sys.id = value.map(|v| v.into());
631 }
632 pub fn inert(&self) -> bool {
634 self.sys.inert
635 }
636 pub fn set_inert(&mut self, value: bool) {
638 self.sys.inert = value;
639 }
640 pub fn input_mode(&self) -> std::option::Option<&str> {
642 self.sys.input_mode.as_deref()
643 }
644 pub fn set_input_mode(
646 &mut self,
647 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
648 ) {
649 self.sys.input_mode = value.map(|v| v.into());
650 }
651 pub fn is_(&self) -> std::option::Option<&str> {
653 self.sys.is_.as_deref()
654 }
655 pub fn set_is_(
657 &mut self,
658 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
659 ) {
660 self.sys.is_ = value.map(|v| v.into());
661 }
662 pub fn item_id(&self) -> std::option::Option<&str> {
664 self.sys.item_id.as_deref()
665 }
666 pub fn set_item_id(
668 &mut self,
669 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
670 ) {
671 self.sys.item_id = value.map(|v| v.into());
672 }
673 pub fn item_prop(&self) -> std::option::Option<&str> {
675 self.sys.item_prop.as_deref()
676 }
677 pub fn set_item_prop(
679 &mut self,
680 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
681 ) {
682 self.sys.item_prop = value.map(|v| v.into());
683 }
684 pub fn item_ref(&self) -> std::option::Option<&str> {
686 self.sys.item_ref.as_deref()
687 }
688 pub fn set_item_ref(
690 &mut self,
691 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
692 ) {
693 self.sys.item_ref = value.map(|v| v.into());
694 }
695 pub fn item_scope(&self) -> std::option::Option<&str> {
697 self.sys.item_scope.as_deref()
698 }
699 pub fn set_item_scope(
701 &mut self,
702 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
703 ) {
704 self.sys.item_scope = value.map(|v| v.into());
705 }
706 pub fn item_type(&self) -> std::option::Option<&str> {
708 self.sys.item_type.as_deref()
709 }
710 pub fn set_item_type(
712 &mut self,
713 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
714 ) {
715 self.sys.item_type = value.map(|v| v.into());
716 }
717 pub fn lang(&self) -> std::option::Option<&str> {
719 self.sys.lang.as_deref()
720 }
721 pub fn set_lang(
723 &mut self,
724 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
725 ) {
726 self.sys.lang = value.map(|v| v.into());
727 }
728 pub fn nonce(&self) -> std::option::Option<&str> {
730 self.sys.nonce.as_deref()
731 }
732 pub fn set_nonce(
734 &mut self,
735 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
736 ) {
737 self.sys.nonce = value.map(|v| v.into());
738 }
739 pub fn part(&self) -> std::option::Option<&str> {
741 self.sys.part.as_deref()
742 }
743 pub fn set_part(
745 &mut self,
746 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
747 ) {
748 self.sys.part = value.map(|v| v.into());
749 }
750 pub fn slot(&self) -> std::option::Option<&str> {
752 self.sys.slot.as_deref()
753 }
754 pub fn set_slot(
756 &mut self,
757 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
758 ) {
759 self.sys.slot = value.map(|v| v.into());
760 }
761 pub fn spellcheck(&self) -> std::option::Option<&str> {
763 self.sys.spellcheck.as_deref()
764 }
765 pub fn set_spellcheck(
767 &mut self,
768 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
769 ) {
770 self.sys.spellcheck = value.map(|v| v.into());
771 }
772 pub fn style(&self) -> std::option::Option<&str> {
774 self.sys.style.as_deref()
775 }
776 pub fn set_style(
778 &mut self,
779 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
780 ) {
781 self.sys.style = value.map(|v| v.into());
782 }
783 pub fn tab_index(&self) -> std::option::Option<i64> {
785 self.sys.tab_index
786 }
787 pub fn set_tab_index(&mut self, value: std::option::Option<i64>) {
789 self.sys.tab_index = value;
790 }
791 pub fn title(&self) -> std::option::Option<&str> {
793 self.sys.title.as_deref()
794 }
795 pub fn set_title(
797 &mut self,
798 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
799 ) {
800 self.sys.title = value.map(|v| v.into());
801 }
802 pub fn translate(&self) -> bool {
804 self.sys.translate
805 }
806 pub fn set_translate(&mut self, value: bool) {
808 self.sys.translate = value;
809 }
810 }
811 impl crate::Render for RubyFallbackParenthesis {
812 fn render(
813 &self,
814 f: &mut std::fmt::Formatter<'_>,
815 depth: usize,
816 ) -> std::fmt::Result {
817 write!(f, "{:level$}", "", level = depth * 4)?;
818 html_sys::RenderElement::write_opening_tag(&self.sys, f)?;
819 write!(f, "{:level$}", "", level = depth * 4)?;
820 html_sys::RenderElement::write_closing_tag(&self.sys, f)?;
821 Ok(())
822 }
823 }
824 impl std::fmt::Debug for RubyFallbackParenthesis {
825 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
826 crate::Render::render(self, f, 0)?;
827 Ok(())
828 }
829 }
830 impl std::fmt::Display for RubyFallbackParenthesis {
831 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
832 html_sys::RenderElement::write_opening_tag(&self.sys, f)?;
833 html_sys::RenderElement::write_closing_tag(&self.sys, f)?;
834 Ok(())
835 }
836 }
837 impl crate::HtmlElement for RubyFallbackParenthesis {}
838 impl std::convert::Into<html_sys::text::RubyFallbackParenthesis>
839 for RubyFallbackParenthesis {
840 fn into(self) -> html_sys::text::RubyFallbackParenthesis {
841 self.sys
842 }
843 }
844 impl From<html_sys::text::RubyFallbackParenthesis> for RubyFallbackParenthesis {
845 fn from(sys: html_sys::text::RubyFallbackParenthesis) -> Self {
846 Self { sys }
847 }
848 }
849}
850pub mod child {}
851pub mod builder {
852 pub struct RubyFallbackParenthesisBuilder {
854 element: super::element::RubyFallbackParenthesis,
855 }
856 impl RubyFallbackParenthesisBuilder {
857 pub(crate) fn new(element: super::element::RubyFallbackParenthesis) -> Self {
858 Self { element }
859 }
860 pub fn build(&mut self) -> super::element::RubyFallbackParenthesis {
862 self.element.clone()
863 }
864 pub fn data(
866 &mut self,
867 data_key: impl Into<std::borrow::Cow<'static, str>>,
868 value: impl Into<std::borrow::Cow<'static, str>>,
869 ) -> &mut RubyFallbackParenthesisBuilder {
870 self.element.data_map_mut().insert(data_key.into(), value.into());
871 self
872 }
873 pub fn role(
875 &mut self,
876 value: impl Into<std::borrow::Cow<'static, str>>,
877 ) -> &mut Self {
878 self.element.set_role(Some(value.into()));
879 self
880 }
881 pub fn aria_active_descendant_element(
883 &mut self,
884 value: impl Into<std::borrow::Cow<'static, str>>,
885 ) -> &mut Self {
886 self.element.set_aria_active_descendant_element(Some(value.into()));
887 self
888 }
889 pub fn aria_atomic(&mut self, value: bool) -> &mut Self {
891 self.element.set_aria_atomic(value);
892 self
893 }
894 pub fn aria_auto_complete(
896 &mut self,
897 value: impl Into<std::borrow::Cow<'static, str>>,
898 ) -> &mut Self {
899 self.element.set_aria_auto_complete(Some(value.into()));
900 self
901 }
902 pub fn aria_braille_role_description(
904 &mut self,
905 value: impl Into<std::borrow::Cow<'static, str>>,
906 ) -> &mut Self {
907 self.element.set_aria_braille_role_description(Some(value.into()));
908 self
909 }
910 pub fn aria_busy(&mut self, value: bool) -> &mut Self {
912 self.element.set_aria_busy(value);
913 self
914 }
915 pub fn aria_checked(
917 &mut self,
918 value: impl Into<std::borrow::Cow<'static, str>>,
919 ) -> &mut Self {
920 self.element.set_aria_checked(Some(value.into()));
921 self
922 }
923 pub fn aria_col_count(&mut self, value: i64) -> &mut Self {
925 self.element.set_aria_col_count(Some(value));
926 self
927 }
928 pub fn aria_col_index(&mut self, value: i64) -> &mut Self {
930 self.element.set_aria_col_index(Some(value));
931 self
932 }
933 pub fn aria_col_index_text(
935 &mut self,
936 value: impl Into<std::borrow::Cow<'static, str>>,
937 ) -> &mut Self {
938 self.element.set_aria_col_index_text(Some(value.into()));
939 self
940 }
941 pub fn aria_col_span(&mut self, value: i64) -> &mut Self {
943 self.element.set_aria_col_span(Some(value));
944 self
945 }
946 pub fn aria_controls_elements(
948 &mut self,
949 value: impl Into<std::borrow::Cow<'static, str>>,
950 ) -> &mut Self {
951 self.element.set_aria_controls_elements(Some(value.into()));
952 self
953 }
954 pub fn aria_current(
956 &mut self,
957 value: impl Into<std::borrow::Cow<'static, str>>,
958 ) -> &mut Self {
959 self.element.set_aria_current(Some(value.into()));
960 self
961 }
962 pub fn aria_described_by_elements(
964 &mut self,
965 value: impl Into<std::borrow::Cow<'static, str>>,
966 ) -> &mut Self {
967 self.element.set_aria_described_by_elements(Some(value.into()));
968 self
969 }
970 pub fn aria_description(
972 &mut self,
973 value: impl Into<std::borrow::Cow<'static, str>>,
974 ) -> &mut Self {
975 self.element.set_aria_description(Some(value.into()));
976 self
977 }
978 pub fn aria_details_elements(
980 &mut self,
981 value: impl Into<std::borrow::Cow<'static, str>>,
982 ) -> &mut Self {
983 self.element.set_aria_details_elements(Some(value.into()));
984 self
985 }
986 pub fn aria_disabled(&mut self, value: bool) -> &mut Self {
988 self.element.set_aria_disabled(value);
989 self
990 }
991 pub fn aria_drop_effect(
993 &mut self,
994 value: impl Into<std::borrow::Cow<'static, str>>,
995 ) -> &mut Self {
996 self.element.set_aria_drop_effect(Some(value.into()));
997 self
998 }
999 pub fn aria_error_message_elements(
1001 &mut self,
1002 value: impl Into<std::borrow::Cow<'static, str>>,
1003 ) -> &mut Self {
1004 self.element.set_aria_error_message_elements(Some(value.into()));
1005 self
1006 }
1007 pub fn aria_expanded(&mut self, value: bool) -> &mut Self {
1009 self.element.set_aria_expanded(value);
1010 self
1011 }
1012 pub fn aria_flow_to_elements(
1014 &mut self,
1015 value: impl Into<std::borrow::Cow<'static, str>>,
1016 ) -> &mut Self {
1017 self.element.set_aria_flow_to_elements(Some(value.into()));
1018 self
1019 }
1020 pub fn aria_grabbed(&mut self, value: bool) -> &mut Self {
1022 self.element.set_aria_grabbed(value);
1023 self
1024 }
1025 pub fn aria_has_popup(
1027 &mut self,
1028 value: impl Into<std::borrow::Cow<'static, str>>,
1029 ) -> &mut Self {
1030 self.element.set_aria_has_popup(Some(value.into()));
1031 self
1032 }
1033 pub fn aria_hidden(&mut self, value: bool) -> &mut Self {
1035 self.element.set_aria_hidden(value);
1036 self
1037 }
1038 pub fn aria_invalid(
1040 &mut self,
1041 value: impl Into<std::borrow::Cow<'static, str>>,
1042 ) -> &mut Self {
1043 self.element.set_aria_invalid(Some(value.into()));
1044 self
1045 }
1046 pub fn aria_key_shortcuts(
1048 &mut self,
1049 value: impl Into<std::borrow::Cow<'static, str>>,
1050 ) -> &mut Self {
1051 self.element.set_aria_key_shortcuts(Some(value.into()));
1052 self
1053 }
1054 pub fn aria_level(&mut self, value: i64) -> &mut Self {
1056 self.element.set_aria_level(Some(value));
1057 self
1058 }
1059 pub fn aria_live(
1061 &mut self,
1062 value: impl Into<std::borrow::Cow<'static, str>>,
1063 ) -> &mut Self {
1064 self.element.set_aria_live(Some(value.into()));
1065 self
1066 }
1067 pub fn aria_modal(&mut self, value: bool) -> &mut Self {
1069 self.element.set_aria_modal(value);
1070 self
1071 }
1072 pub fn aria_multi_line(&mut self, value: bool) -> &mut Self {
1074 self.element.set_aria_multi_line(value);
1075 self
1076 }
1077 pub fn aria_multi_selectable(&mut self, value: bool) -> &mut Self {
1079 self.element.set_aria_multi_selectable(value);
1080 self
1081 }
1082 pub fn aria_orientation(
1084 &mut self,
1085 value: impl Into<std::borrow::Cow<'static, str>>,
1086 ) -> &mut Self {
1087 self.element.set_aria_orientation(Some(value.into()));
1088 self
1089 }
1090 pub fn aria_owns_elements(
1092 &mut self,
1093 value: impl Into<std::borrow::Cow<'static, str>>,
1094 ) -> &mut Self {
1095 self.element.set_aria_owns_elements(Some(value.into()));
1096 self
1097 }
1098 pub fn aria_placeholder(
1100 &mut self,
1101 value: impl Into<std::borrow::Cow<'static, str>>,
1102 ) -> &mut Self {
1103 self.element.set_aria_placeholder(Some(value.into()));
1104 self
1105 }
1106 pub fn aria_pos_in_set(&mut self, value: i64) -> &mut Self {
1108 self.element.set_aria_pos_in_set(Some(value));
1109 self
1110 }
1111 pub fn aria_pressed(
1113 &mut self,
1114 value: impl Into<std::borrow::Cow<'static, str>>,
1115 ) -> &mut Self {
1116 self.element.set_aria_pressed(Some(value.into()));
1117 self
1118 }
1119 pub fn aria_read_only(&mut self, value: bool) -> &mut Self {
1121 self.element.set_aria_read_only(value);
1122 self
1123 }
1124 pub fn aria_relevant(
1126 &mut self,
1127 value: impl Into<std::borrow::Cow<'static, str>>,
1128 ) -> &mut Self {
1129 self.element.set_aria_relevant(Some(value.into()));
1130 self
1131 }
1132 pub fn aria_required(&mut self, value: bool) -> &mut Self {
1134 self.element.set_aria_required(value);
1135 self
1136 }
1137 pub fn aria_role_description(
1139 &mut self,
1140 value: impl Into<std::borrow::Cow<'static, str>>,
1141 ) -> &mut Self {
1142 self.element.set_aria_role_description(Some(value.into()));
1143 self
1144 }
1145 pub fn aria_row_count(&mut self, value: i64) -> &mut Self {
1147 self.element.set_aria_row_count(Some(value));
1148 self
1149 }
1150 pub fn aria_row_index(&mut self, value: i64) -> &mut Self {
1152 self.element.set_aria_row_index(Some(value));
1153 self
1154 }
1155 pub fn aria_row_index_text(
1157 &mut self,
1158 value: impl Into<std::borrow::Cow<'static, str>>,
1159 ) -> &mut Self {
1160 self.element.set_aria_row_index_text(Some(value.into()));
1161 self
1162 }
1163 pub fn aria_row_span(&mut self, value: i64) -> &mut Self {
1165 self.element.set_aria_row_span(Some(value));
1166 self
1167 }
1168 pub fn aria_selected(&mut self, value: bool) -> &mut Self {
1170 self.element.set_aria_selected(value);
1171 self
1172 }
1173 pub fn aria_set_size(&mut self, value: i64) -> &mut Self {
1175 self.element.set_aria_set_size(Some(value));
1176 self
1177 }
1178 pub fn aria_sort(
1180 &mut self,
1181 value: impl Into<std::borrow::Cow<'static, str>>,
1182 ) -> &mut Self {
1183 self.element.set_aria_sort(Some(value.into()));
1184 self
1185 }
1186 pub fn aria_value_max(&mut self, value: f64) -> &mut Self {
1188 self.element.set_aria_value_max(Some(value));
1189 self
1190 }
1191 pub fn aria_value_min(&mut self, value: f64) -> &mut Self {
1193 self.element.set_aria_value_min(Some(value));
1194 self
1195 }
1196 pub fn aria_value_now(&mut self, value: f64) -> &mut Self {
1198 self.element.set_aria_value_now(Some(value));
1199 self
1200 }
1201 pub fn aria_value_text(
1203 &mut self,
1204 value: impl Into<std::borrow::Cow<'static, str>>,
1205 ) -> &mut Self {
1206 self.element.set_aria_value_text(Some(value.into()));
1207 self
1208 }
1209 pub fn access_key(
1211 &mut self,
1212 value: impl Into<std::borrow::Cow<'static, str>>,
1213 ) -> &mut Self {
1214 self.element.set_access_key(Some(value.into()));
1215 self
1216 }
1217 pub fn auto_capitalize(
1219 &mut self,
1220 value: impl Into<std::borrow::Cow<'static, str>>,
1221 ) -> &mut Self {
1222 self.element.set_auto_capitalize(Some(value.into()));
1223 self
1224 }
1225 pub fn autofocus(&mut self, value: bool) -> &mut Self {
1227 self.element.set_autofocus(value);
1228 self
1229 }
1230 pub fn class(
1232 &mut self,
1233 value: impl Into<std::borrow::Cow<'static, str>>,
1234 ) -> &mut Self {
1235 self.element.set_class(Some(value.into()));
1236 self
1237 }
1238 pub fn content_editable(
1240 &mut self,
1241 value: impl Into<std::borrow::Cow<'static, str>>,
1242 ) -> &mut Self {
1243 self.element.set_content_editable(Some(value.into()));
1244 self
1245 }
1246 pub fn direction(
1248 &mut self,
1249 value: impl Into<std::borrow::Cow<'static, str>>,
1250 ) -> &mut Self {
1251 self.element.set_direction(Some(value.into()));
1252 self
1253 }
1254 pub fn draggable(&mut self, value: bool) -> &mut Self {
1256 self.element.set_draggable(value);
1257 self
1258 }
1259 pub fn enter_key_hint(
1261 &mut self,
1262 value: impl Into<std::borrow::Cow<'static, str>>,
1263 ) -> &mut Self {
1264 self.element.set_enter_key_hint(Some(value.into()));
1265 self
1266 }
1267 pub fn export_parts(
1269 &mut self,
1270 value: impl Into<std::borrow::Cow<'static, str>>,
1271 ) -> &mut Self {
1272 self.element.set_export_parts(Some(value.into()));
1273 self
1274 }
1275 pub fn hidden(
1277 &mut self,
1278 value: impl Into<std::borrow::Cow<'static, str>>,
1279 ) -> &mut Self {
1280 self.element.set_hidden(Some(value.into()));
1281 self
1282 }
1283 pub fn id(
1285 &mut self,
1286 value: impl Into<std::borrow::Cow<'static, str>>,
1287 ) -> &mut Self {
1288 self.element.set_id(Some(value.into()));
1289 self
1290 }
1291 pub fn inert(&mut self, value: bool) -> &mut Self {
1293 self.element.set_inert(value);
1294 self
1295 }
1296 pub fn input_mode(
1298 &mut self,
1299 value: impl Into<std::borrow::Cow<'static, str>>,
1300 ) -> &mut Self {
1301 self.element.set_input_mode(Some(value.into()));
1302 self
1303 }
1304 pub fn is_(
1306 &mut self,
1307 value: impl Into<std::borrow::Cow<'static, str>>,
1308 ) -> &mut Self {
1309 self.element.set_is_(Some(value.into()));
1310 self
1311 }
1312 pub fn item_id(
1314 &mut self,
1315 value: impl Into<std::borrow::Cow<'static, str>>,
1316 ) -> &mut Self {
1317 self.element.set_item_id(Some(value.into()));
1318 self
1319 }
1320 pub fn item_prop(
1322 &mut self,
1323 value: impl Into<std::borrow::Cow<'static, str>>,
1324 ) -> &mut Self {
1325 self.element.set_item_prop(Some(value.into()));
1326 self
1327 }
1328 pub fn item_ref(
1330 &mut self,
1331 value: impl Into<std::borrow::Cow<'static, str>>,
1332 ) -> &mut Self {
1333 self.element.set_item_ref(Some(value.into()));
1334 self
1335 }
1336 pub fn item_scope(
1338 &mut self,
1339 value: impl Into<std::borrow::Cow<'static, str>>,
1340 ) -> &mut Self {
1341 self.element.set_item_scope(Some(value.into()));
1342 self
1343 }
1344 pub fn item_type(
1346 &mut self,
1347 value: impl Into<std::borrow::Cow<'static, str>>,
1348 ) -> &mut Self {
1349 self.element.set_item_type(Some(value.into()));
1350 self
1351 }
1352 pub fn lang(
1354 &mut self,
1355 value: impl Into<std::borrow::Cow<'static, str>>,
1356 ) -> &mut Self {
1357 self.element.set_lang(Some(value.into()));
1358 self
1359 }
1360 pub fn nonce(
1362 &mut self,
1363 value: impl Into<std::borrow::Cow<'static, str>>,
1364 ) -> &mut Self {
1365 self.element.set_nonce(Some(value.into()));
1366 self
1367 }
1368 pub fn part(
1370 &mut self,
1371 value: impl Into<std::borrow::Cow<'static, str>>,
1372 ) -> &mut Self {
1373 self.element.set_part(Some(value.into()));
1374 self
1375 }
1376 pub fn slot(
1378 &mut self,
1379 value: impl Into<std::borrow::Cow<'static, str>>,
1380 ) -> &mut Self {
1381 self.element.set_slot(Some(value.into()));
1382 self
1383 }
1384 pub fn spellcheck(
1386 &mut self,
1387 value: impl Into<std::borrow::Cow<'static, str>>,
1388 ) -> &mut Self {
1389 self.element.set_spellcheck(Some(value.into()));
1390 self
1391 }
1392 pub fn style(
1394 &mut self,
1395 value: impl Into<std::borrow::Cow<'static, str>>,
1396 ) -> &mut Self {
1397 self.element.set_style(Some(value.into()));
1398 self
1399 }
1400 pub fn tab_index(&mut self, value: i64) -> &mut Self {
1402 self.element.set_tab_index(Some(value));
1403 self
1404 }
1405 pub fn title(
1407 &mut self,
1408 value: impl Into<std::borrow::Cow<'static, str>>,
1409 ) -> &mut Self {
1410 self.element.set_title(Some(value.into()));
1411 self
1412 }
1413 pub fn translate(&mut self, value: bool) -> &mut Self {
1415 self.element.set_translate(value);
1416 self
1417 }
1418 }
1419}