1 // This file was generated by gir (https://github.com/gtk-rs/gir)
2 // from gir-files (https://github.com/gtk-rs/gir-files)
3 // DO NOT EDIT
4 
5 use gdk;
6 use gdk_sys;
7 use glib;
8 use glib::object::Cast;
9 use glib::object::IsA;
10 use glib::signal::connect_raw;
11 use glib::signal::SignalHandlerId;
12 use glib::translate::*;
13 use glib::GString;
14 use glib::StaticType;
15 use glib::ToValue;
16 use glib::Value;
17 use glib_sys;
18 use gobject_sys;
19 use gtk_sys;
20 use pango;
21 use std::boxed::Box as Box_;
22 use std::fmt;
23 use std::mem::transmute;
24 use Justification;
25 use TextDirection;
26 use TextIter;
27 use WrapMode;
28 
29 glib_wrapper! {
30     pub struct TextTag(Object<gtk_sys::GtkTextTag, gtk_sys::GtkTextTagClass, TextTagClass>);
31 
32     match fn {
33         get_type => || gtk_sys::gtk_text_tag_get_type(),
34     }
35 }
36 
37 impl TextTag {
new(name: Option<&str>) -> TextTag38     pub fn new(name: Option<&str>) -> TextTag {
39         assert_initialized_main_thread!();
40         unsafe { from_glib_full(gtk_sys::gtk_text_tag_new(name.to_glib_none().0)) }
41     }
42 }
43 
44 #[derive(Clone, Default)]
45 pub struct TextTagBuilder {
46     accumulative_margin: Option<bool>,
47     background: Option<String>,
48     background_full_height: Option<bool>,
49     background_full_height_set: Option<bool>,
50     background_rgba: Option<gdk::RGBA>,
51     background_set: Option<bool>,
52     direction: Option<TextDirection>,
53     editable: Option<bool>,
54     editable_set: Option<bool>,
55     #[cfg(any(feature = "v3_16", feature = "dox"))]
56     fallback: Option<bool>,
57     fallback_set: Option<bool>,
58     family: Option<String>,
59     family_set: Option<bool>,
60     font: Option<String>,
61     font_desc: Option<pango::FontDescription>,
62     #[cfg(any(feature = "v3_18", feature = "dox"))]
63     font_features: Option<String>,
64     font_features_set: Option<bool>,
65     foreground: Option<String>,
66     foreground_rgba: Option<gdk::RGBA>,
67     foreground_set: Option<bool>,
68     indent: Option<i32>,
69     indent_set: Option<bool>,
70     invisible: Option<bool>,
71     invisible_set: Option<bool>,
72     justification: Option<Justification>,
73     justification_set: Option<bool>,
74     language: Option<String>,
75     language_set: Option<bool>,
76     left_margin: Option<i32>,
77     left_margin_set: Option<bool>,
78     #[cfg(any(feature = "v3_16", feature = "dox"))]
79     letter_spacing: Option<i32>,
80     letter_spacing_set: Option<bool>,
81     name: Option<String>,
82     paragraph_background: Option<String>,
83     paragraph_background_rgba: Option<gdk::RGBA>,
84     paragraph_background_set: Option<bool>,
85     pixels_above_lines: Option<i32>,
86     pixels_above_lines_set: Option<bool>,
87     pixels_below_lines: Option<i32>,
88     pixels_below_lines_set: Option<bool>,
89     pixels_inside_wrap: Option<i32>,
90     pixels_inside_wrap_set: Option<bool>,
91     right_margin: Option<i32>,
92     right_margin_set: Option<bool>,
93     rise: Option<i32>,
94     rise_set: Option<bool>,
95     scale: Option<f64>,
96     scale_set: Option<bool>,
97     size: Option<i32>,
98     size_points: Option<f64>,
99     size_set: Option<bool>,
100     stretch: Option<pango::Stretch>,
101     stretch_set: Option<bool>,
102     strikethrough: Option<bool>,
103     #[cfg(any(feature = "v3_16", feature = "dox"))]
104     strikethrough_rgba: Option<gdk::RGBA>,
105     #[cfg(any(feature = "v3_16", feature = "dox"))]
106     strikethrough_rgba_set: Option<bool>,
107     strikethrough_set: Option<bool>,
108     style: Option<pango::Style>,
109     style_set: Option<bool>,
110     tabs: Option<pango::TabArray>,
111     tabs_set: Option<bool>,
112     underline: Option<pango::Underline>,
113     #[cfg(any(feature = "v3_16", feature = "dox"))]
114     underline_rgba: Option<gdk::RGBA>,
115     #[cfg(any(feature = "v3_16", feature = "dox"))]
116     underline_rgba_set: Option<bool>,
117     underline_set: Option<bool>,
118     variant: Option<pango::Variant>,
119     variant_set: Option<bool>,
120     weight: Option<i32>,
121     weight_set: Option<bool>,
122     wrap_mode: Option<WrapMode>,
123     wrap_mode_set: Option<bool>,
124 }
125 
126 impl TextTagBuilder {
new() -> Self127     pub fn new() -> Self {
128         Self::default()
129     }
130 
build(self) -> TextTag131     pub fn build(self) -> TextTag {
132         let mut properties: Vec<(&str, &dyn ToValue)> = vec![];
133         if let Some(ref accumulative_margin) = self.accumulative_margin {
134             properties.push(("accumulative-margin", accumulative_margin));
135         }
136         if let Some(ref background) = self.background {
137             properties.push(("background", background));
138         }
139         if let Some(ref background_full_height) = self.background_full_height {
140             properties.push(("background-full-height", background_full_height));
141         }
142         if let Some(ref background_full_height_set) = self.background_full_height_set {
143             properties.push(("background-full-height-set", background_full_height_set));
144         }
145         if let Some(ref background_rgba) = self.background_rgba {
146             properties.push(("background-rgba", background_rgba));
147         }
148         if let Some(ref background_set) = self.background_set {
149             properties.push(("background-set", background_set));
150         }
151         if let Some(ref direction) = self.direction {
152             properties.push(("direction", direction));
153         }
154         if let Some(ref editable) = self.editable {
155             properties.push(("editable", editable));
156         }
157         if let Some(ref editable_set) = self.editable_set {
158             properties.push(("editable-set", editable_set));
159         }
160         #[cfg(any(feature = "v3_16", feature = "dox"))]
161         {
162             if let Some(ref fallback) = self.fallback {
163                 properties.push(("fallback", fallback));
164             }
165         }
166         if let Some(ref fallback_set) = self.fallback_set {
167             properties.push(("fallback-set", fallback_set));
168         }
169         if let Some(ref family) = self.family {
170             properties.push(("family", family));
171         }
172         if let Some(ref family_set) = self.family_set {
173             properties.push(("family-set", family_set));
174         }
175         if let Some(ref font) = self.font {
176             properties.push(("font", font));
177         }
178         if let Some(ref font_desc) = self.font_desc {
179             properties.push(("font-desc", font_desc));
180         }
181         #[cfg(any(feature = "v3_18", feature = "dox"))]
182         {
183             if let Some(ref font_features) = self.font_features {
184                 properties.push(("font-features", font_features));
185             }
186         }
187         if let Some(ref font_features_set) = self.font_features_set {
188             properties.push(("font-features-set", font_features_set));
189         }
190         if let Some(ref foreground) = self.foreground {
191             properties.push(("foreground", foreground));
192         }
193         if let Some(ref foreground_rgba) = self.foreground_rgba {
194             properties.push(("foreground-rgba", foreground_rgba));
195         }
196         if let Some(ref foreground_set) = self.foreground_set {
197             properties.push(("foreground-set", foreground_set));
198         }
199         if let Some(ref indent) = self.indent {
200             properties.push(("indent", indent));
201         }
202         if let Some(ref indent_set) = self.indent_set {
203             properties.push(("indent-set", indent_set));
204         }
205         if let Some(ref invisible) = self.invisible {
206             properties.push(("invisible", invisible));
207         }
208         if let Some(ref invisible_set) = self.invisible_set {
209             properties.push(("invisible-set", invisible_set));
210         }
211         if let Some(ref justification) = self.justification {
212             properties.push(("justification", justification));
213         }
214         if let Some(ref justification_set) = self.justification_set {
215             properties.push(("justification-set", justification_set));
216         }
217         if let Some(ref language) = self.language {
218             properties.push(("language", language));
219         }
220         if let Some(ref language_set) = self.language_set {
221             properties.push(("language-set", language_set));
222         }
223         if let Some(ref left_margin) = self.left_margin {
224             properties.push(("left-margin", left_margin));
225         }
226         if let Some(ref left_margin_set) = self.left_margin_set {
227             properties.push(("left-margin-set", left_margin_set));
228         }
229         #[cfg(any(feature = "v3_16", feature = "dox"))]
230         {
231             if let Some(ref letter_spacing) = self.letter_spacing {
232                 properties.push(("letter-spacing", letter_spacing));
233             }
234         }
235         if let Some(ref letter_spacing_set) = self.letter_spacing_set {
236             properties.push(("letter-spacing-set", letter_spacing_set));
237         }
238         if let Some(ref name) = self.name {
239             properties.push(("name", name));
240         }
241         if let Some(ref paragraph_background) = self.paragraph_background {
242             properties.push(("paragraph-background", paragraph_background));
243         }
244         if let Some(ref paragraph_background_rgba) = self.paragraph_background_rgba {
245             properties.push(("paragraph-background-rgba", paragraph_background_rgba));
246         }
247         if let Some(ref paragraph_background_set) = self.paragraph_background_set {
248             properties.push(("paragraph-background-set", paragraph_background_set));
249         }
250         if let Some(ref pixels_above_lines) = self.pixels_above_lines {
251             properties.push(("pixels-above-lines", pixels_above_lines));
252         }
253         if let Some(ref pixels_above_lines_set) = self.pixels_above_lines_set {
254             properties.push(("pixels-above-lines-set", pixels_above_lines_set));
255         }
256         if let Some(ref pixels_below_lines) = self.pixels_below_lines {
257             properties.push(("pixels-below-lines", pixels_below_lines));
258         }
259         if let Some(ref pixels_below_lines_set) = self.pixels_below_lines_set {
260             properties.push(("pixels-below-lines-set", pixels_below_lines_set));
261         }
262         if let Some(ref pixels_inside_wrap) = self.pixels_inside_wrap {
263             properties.push(("pixels-inside-wrap", pixels_inside_wrap));
264         }
265         if let Some(ref pixels_inside_wrap_set) = self.pixels_inside_wrap_set {
266             properties.push(("pixels-inside-wrap-set", pixels_inside_wrap_set));
267         }
268         if let Some(ref right_margin) = self.right_margin {
269             properties.push(("right-margin", right_margin));
270         }
271         if let Some(ref right_margin_set) = self.right_margin_set {
272             properties.push(("right-margin-set", right_margin_set));
273         }
274         if let Some(ref rise) = self.rise {
275             properties.push(("rise", rise));
276         }
277         if let Some(ref rise_set) = self.rise_set {
278             properties.push(("rise-set", rise_set));
279         }
280         if let Some(ref scale) = self.scale {
281             properties.push(("scale", scale));
282         }
283         if let Some(ref scale_set) = self.scale_set {
284             properties.push(("scale-set", scale_set));
285         }
286         if let Some(ref size) = self.size {
287             properties.push(("size", size));
288         }
289         if let Some(ref size_points) = self.size_points {
290             properties.push(("size-points", size_points));
291         }
292         if let Some(ref size_set) = self.size_set {
293             properties.push(("size-set", size_set));
294         }
295         if let Some(ref stretch) = self.stretch {
296             properties.push(("stretch", stretch));
297         }
298         if let Some(ref stretch_set) = self.stretch_set {
299             properties.push(("stretch-set", stretch_set));
300         }
301         if let Some(ref strikethrough) = self.strikethrough {
302             properties.push(("strikethrough", strikethrough));
303         }
304         #[cfg(any(feature = "v3_16", feature = "dox"))]
305         {
306             if let Some(ref strikethrough_rgba) = self.strikethrough_rgba {
307                 properties.push(("strikethrough-rgba", strikethrough_rgba));
308             }
309         }
310         #[cfg(any(feature = "v3_16", feature = "dox"))]
311         {
312             if let Some(ref strikethrough_rgba_set) = self.strikethrough_rgba_set {
313                 properties.push(("strikethrough-rgba-set", strikethrough_rgba_set));
314             }
315         }
316         if let Some(ref strikethrough_set) = self.strikethrough_set {
317             properties.push(("strikethrough-set", strikethrough_set));
318         }
319         if let Some(ref style) = self.style {
320             properties.push(("style", style));
321         }
322         if let Some(ref style_set) = self.style_set {
323             properties.push(("style-set", style_set));
324         }
325         if let Some(ref tabs) = self.tabs {
326             properties.push(("tabs", tabs));
327         }
328         if let Some(ref tabs_set) = self.tabs_set {
329             properties.push(("tabs-set", tabs_set));
330         }
331         if let Some(ref underline) = self.underline {
332             properties.push(("underline", underline));
333         }
334         #[cfg(any(feature = "v3_16", feature = "dox"))]
335         {
336             if let Some(ref underline_rgba) = self.underline_rgba {
337                 properties.push(("underline-rgba", underline_rgba));
338             }
339         }
340         #[cfg(any(feature = "v3_16", feature = "dox"))]
341         {
342             if let Some(ref underline_rgba_set) = self.underline_rgba_set {
343                 properties.push(("underline-rgba-set", underline_rgba_set));
344             }
345         }
346         if let Some(ref underline_set) = self.underline_set {
347             properties.push(("underline-set", underline_set));
348         }
349         if let Some(ref variant) = self.variant {
350             properties.push(("variant", variant));
351         }
352         if let Some(ref variant_set) = self.variant_set {
353             properties.push(("variant-set", variant_set));
354         }
355         if let Some(ref weight) = self.weight {
356             properties.push(("weight", weight));
357         }
358         if let Some(ref weight_set) = self.weight_set {
359             properties.push(("weight-set", weight_set));
360         }
361         if let Some(ref wrap_mode) = self.wrap_mode {
362             properties.push(("wrap-mode", wrap_mode));
363         }
364         if let Some(ref wrap_mode_set) = self.wrap_mode_set {
365             properties.push(("wrap-mode-set", wrap_mode_set));
366         }
367         glib::Object::new(TextTag::static_type(), &properties)
368             .expect("object new")
369             .downcast()
370             .expect("downcast")
371     }
372 
accumulative_margin(mut self, accumulative_margin: bool) -> Self373     pub fn accumulative_margin(mut self, accumulative_margin: bool) -> Self {
374         self.accumulative_margin = Some(accumulative_margin);
375         self
376     }
377 
background(mut self, background: &str) -> Self378     pub fn background(mut self, background: &str) -> Self {
379         self.background = Some(background.to_string());
380         self
381     }
382 
background_full_height(mut self, background_full_height: bool) -> Self383     pub fn background_full_height(mut self, background_full_height: bool) -> Self {
384         self.background_full_height = Some(background_full_height);
385         self
386     }
387 
background_full_height_set(mut self, background_full_height_set: bool) -> Self388     pub fn background_full_height_set(mut self, background_full_height_set: bool) -> Self {
389         self.background_full_height_set = Some(background_full_height_set);
390         self
391     }
392 
background_rgba(mut self, background_rgba: &gdk::RGBA) -> Self393     pub fn background_rgba(mut self, background_rgba: &gdk::RGBA) -> Self {
394         self.background_rgba = Some(background_rgba.clone());
395         self
396     }
397 
background_set(mut self, background_set: bool) -> Self398     pub fn background_set(mut self, background_set: bool) -> Self {
399         self.background_set = Some(background_set);
400         self
401     }
402 
direction(mut self, direction: TextDirection) -> Self403     pub fn direction(mut self, direction: TextDirection) -> Self {
404         self.direction = Some(direction);
405         self
406     }
407 
editable(mut self, editable: bool) -> Self408     pub fn editable(mut self, editable: bool) -> Self {
409         self.editable = Some(editable);
410         self
411     }
412 
editable_set(mut self, editable_set: bool) -> Self413     pub fn editable_set(mut self, editable_set: bool) -> Self {
414         self.editable_set = Some(editable_set);
415         self
416     }
417 
418     #[cfg(any(feature = "v3_16", feature = "dox"))]
fallback(mut self, fallback: bool) -> Self419     pub fn fallback(mut self, fallback: bool) -> Self {
420         self.fallback = Some(fallback);
421         self
422     }
423 
fallback_set(mut self, fallback_set: bool) -> Self424     pub fn fallback_set(mut self, fallback_set: bool) -> Self {
425         self.fallback_set = Some(fallback_set);
426         self
427     }
428 
family(mut self, family: &str) -> Self429     pub fn family(mut self, family: &str) -> Self {
430         self.family = Some(family.to_string());
431         self
432     }
433 
family_set(mut self, family_set: bool) -> Self434     pub fn family_set(mut self, family_set: bool) -> Self {
435         self.family_set = Some(family_set);
436         self
437     }
438 
font(mut self, font: &str) -> Self439     pub fn font(mut self, font: &str) -> Self {
440         self.font = Some(font.to_string());
441         self
442     }
443 
font_desc(mut self, font_desc: &pango::FontDescription) -> Self444     pub fn font_desc(mut self, font_desc: &pango::FontDescription) -> Self {
445         self.font_desc = Some(font_desc.clone());
446         self
447     }
448 
449     #[cfg(any(feature = "v3_18", feature = "dox"))]
font_features(mut self, font_features: &str) -> Self450     pub fn font_features(mut self, font_features: &str) -> Self {
451         self.font_features = Some(font_features.to_string());
452         self
453     }
454 
font_features_set(mut self, font_features_set: bool) -> Self455     pub fn font_features_set(mut self, font_features_set: bool) -> Self {
456         self.font_features_set = Some(font_features_set);
457         self
458     }
459 
foreground(mut self, foreground: &str) -> Self460     pub fn foreground(mut self, foreground: &str) -> Self {
461         self.foreground = Some(foreground.to_string());
462         self
463     }
464 
foreground_rgba(mut self, foreground_rgba: &gdk::RGBA) -> Self465     pub fn foreground_rgba(mut self, foreground_rgba: &gdk::RGBA) -> Self {
466         self.foreground_rgba = Some(foreground_rgba.clone());
467         self
468     }
469 
foreground_set(mut self, foreground_set: bool) -> Self470     pub fn foreground_set(mut self, foreground_set: bool) -> Self {
471         self.foreground_set = Some(foreground_set);
472         self
473     }
474 
indent(mut self, indent: i32) -> Self475     pub fn indent(mut self, indent: i32) -> Self {
476         self.indent = Some(indent);
477         self
478     }
479 
indent_set(mut self, indent_set: bool) -> Self480     pub fn indent_set(mut self, indent_set: bool) -> Self {
481         self.indent_set = Some(indent_set);
482         self
483     }
484 
invisible(mut self, invisible: bool) -> Self485     pub fn invisible(mut self, invisible: bool) -> Self {
486         self.invisible = Some(invisible);
487         self
488     }
489 
invisible_set(mut self, invisible_set: bool) -> Self490     pub fn invisible_set(mut self, invisible_set: bool) -> Self {
491         self.invisible_set = Some(invisible_set);
492         self
493     }
494 
justification(mut self, justification: Justification) -> Self495     pub fn justification(mut self, justification: Justification) -> Self {
496         self.justification = Some(justification);
497         self
498     }
499 
justification_set(mut self, justification_set: bool) -> Self500     pub fn justification_set(mut self, justification_set: bool) -> Self {
501         self.justification_set = Some(justification_set);
502         self
503     }
504 
language(mut self, language: &str) -> Self505     pub fn language(mut self, language: &str) -> Self {
506         self.language = Some(language.to_string());
507         self
508     }
509 
language_set(mut self, language_set: bool) -> Self510     pub fn language_set(mut self, language_set: bool) -> Self {
511         self.language_set = Some(language_set);
512         self
513     }
514 
left_margin(mut self, left_margin: i32) -> Self515     pub fn left_margin(mut self, left_margin: i32) -> Self {
516         self.left_margin = Some(left_margin);
517         self
518     }
519 
left_margin_set(mut self, left_margin_set: bool) -> Self520     pub fn left_margin_set(mut self, left_margin_set: bool) -> Self {
521         self.left_margin_set = Some(left_margin_set);
522         self
523     }
524 
525     #[cfg(any(feature = "v3_16", feature = "dox"))]
letter_spacing(mut self, letter_spacing: i32) -> Self526     pub fn letter_spacing(mut self, letter_spacing: i32) -> Self {
527         self.letter_spacing = Some(letter_spacing);
528         self
529     }
530 
letter_spacing_set(mut self, letter_spacing_set: bool) -> Self531     pub fn letter_spacing_set(mut self, letter_spacing_set: bool) -> Self {
532         self.letter_spacing_set = Some(letter_spacing_set);
533         self
534     }
535 
name(mut self, name: &str) -> Self536     pub fn name(mut self, name: &str) -> Self {
537         self.name = Some(name.to_string());
538         self
539     }
540 
paragraph_background(mut self, paragraph_background: &str) -> Self541     pub fn paragraph_background(mut self, paragraph_background: &str) -> Self {
542         self.paragraph_background = Some(paragraph_background.to_string());
543         self
544     }
545 
paragraph_background_rgba(mut self, paragraph_background_rgba: &gdk::RGBA) -> Self546     pub fn paragraph_background_rgba(mut self, paragraph_background_rgba: &gdk::RGBA) -> Self {
547         self.paragraph_background_rgba = Some(paragraph_background_rgba.clone());
548         self
549     }
550 
paragraph_background_set(mut self, paragraph_background_set: bool) -> Self551     pub fn paragraph_background_set(mut self, paragraph_background_set: bool) -> Self {
552         self.paragraph_background_set = Some(paragraph_background_set);
553         self
554     }
555 
pixels_above_lines(mut self, pixels_above_lines: i32) -> Self556     pub fn pixels_above_lines(mut self, pixels_above_lines: i32) -> Self {
557         self.pixels_above_lines = Some(pixels_above_lines);
558         self
559     }
560 
pixels_above_lines_set(mut self, pixels_above_lines_set: bool) -> Self561     pub fn pixels_above_lines_set(mut self, pixels_above_lines_set: bool) -> Self {
562         self.pixels_above_lines_set = Some(pixels_above_lines_set);
563         self
564     }
565 
pixels_below_lines(mut self, pixels_below_lines: i32) -> Self566     pub fn pixels_below_lines(mut self, pixels_below_lines: i32) -> Self {
567         self.pixels_below_lines = Some(pixels_below_lines);
568         self
569     }
570 
pixels_below_lines_set(mut self, pixels_below_lines_set: bool) -> Self571     pub fn pixels_below_lines_set(mut self, pixels_below_lines_set: bool) -> Self {
572         self.pixels_below_lines_set = Some(pixels_below_lines_set);
573         self
574     }
575 
pixels_inside_wrap(mut self, pixels_inside_wrap: i32) -> Self576     pub fn pixels_inside_wrap(mut self, pixels_inside_wrap: i32) -> Self {
577         self.pixels_inside_wrap = Some(pixels_inside_wrap);
578         self
579     }
580 
pixels_inside_wrap_set(mut self, pixels_inside_wrap_set: bool) -> Self581     pub fn pixels_inside_wrap_set(mut self, pixels_inside_wrap_set: bool) -> Self {
582         self.pixels_inside_wrap_set = Some(pixels_inside_wrap_set);
583         self
584     }
585 
right_margin(mut self, right_margin: i32) -> Self586     pub fn right_margin(mut self, right_margin: i32) -> Self {
587         self.right_margin = Some(right_margin);
588         self
589     }
590 
right_margin_set(mut self, right_margin_set: bool) -> Self591     pub fn right_margin_set(mut self, right_margin_set: bool) -> Self {
592         self.right_margin_set = Some(right_margin_set);
593         self
594     }
595 
rise(mut self, rise: i32) -> Self596     pub fn rise(mut self, rise: i32) -> Self {
597         self.rise = Some(rise);
598         self
599     }
600 
rise_set(mut self, rise_set: bool) -> Self601     pub fn rise_set(mut self, rise_set: bool) -> Self {
602         self.rise_set = Some(rise_set);
603         self
604     }
605 
scale(mut self, scale: f64) -> Self606     pub fn scale(mut self, scale: f64) -> Self {
607         self.scale = Some(scale);
608         self
609     }
610 
scale_set(mut self, scale_set: bool) -> Self611     pub fn scale_set(mut self, scale_set: bool) -> Self {
612         self.scale_set = Some(scale_set);
613         self
614     }
615 
size(mut self, size: i32) -> Self616     pub fn size(mut self, size: i32) -> Self {
617         self.size = Some(size);
618         self
619     }
620 
size_points(mut self, size_points: f64) -> Self621     pub fn size_points(mut self, size_points: f64) -> Self {
622         self.size_points = Some(size_points);
623         self
624     }
625 
size_set(mut self, size_set: bool) -> Self626     pub fn size_set(mut self, size_set: bool) -> Self {
627         self.size_set = Some(size_set);
628         self
629     }
630 
stretch(mut self, stretch: pango::Stretch) -> Self631     pub fn stretch(mut self, stretch: pango::Stretch) -> Self {
632         self.stretch = Some(stretch);
633         self
634     }
635 
stretch_set(mut self, stretch_set: bool) -> Self636     pub fn stretch_set(mut self, stretch_set: bool) -> Self {
637         self.stretch_set = Some(stretch_set);
638         self
639     }
640 
strikethrough(mut self, strikethrough: bool) -> Self641     pub fn strikethrough(mut self, strikethrough: bool) -> Self {
642         self.strikethrough = Some(strikethrough);
643         self
644     }
645 
646     #[cfg(any(feature = "v3_16", feature = "dox"))]
strikethrough_rgba(mut self, strikethrough_rgba: &gdk::RGBA) -> Self647     pub fn strikethrough_rgba(mut self, strikethrough_rgba: &gdk::RGBA) -> Self {
648         self.strikethrough_rgba = Some(strikethrough_rgba.clone());
649         self
650     }
651 
652     #[cfg(any(feature = "v3_16", feature = "dox"))]
strikethrough_rgba_set(mut self, strikethrough_rgba_set: bool) -> Self653     pub fn strikethrough_rgba_set(mut self, strikethrough_rgba_set: bool) -> Self {
654         self.strikethrough_rgba_set = Some(strikethrough_rgba_set);
655         self
656     }
657 
strikethrough_set(mut self, strikethrough_set: bool) -> Self658     pub fn strikethrough_set(mut self, strikethrough_set: bool) -> Self {
659         self.strikethrough_set = Some(strikethrough_set);
660         self
661     }
662 
style(mut self, style: pango::Style) -> Self663     pub fn style(mut self, style: pango::Style) -> Self {
664         self.style = Some(style);
665         self
666     }
667 
style_set(mut self, style_set: bool) -> Self668     pub fn style_set(mut self, style_set: bool) -> Self {
669         self.style_set = Some(style_set);
670         self
671     }
672 
tabs(mut self, tabs: &pango::TabArray) -> Self673     pub fn tabs(mut self, tabs: &pango::TabArray) -> Self {
674         self.tabs = Some(tabs.clone());
675         self
676     }
677 
tabs_set(mut self, tabs_set: bool) -> Self678     pub fn tabs_set(mut self, tabs_set: bool) -> Self {
679         self.tabs_set = Some(tabs_set);
680         self
681     }
682 
underline(mut self, underline: pango::Underline) -> Self683     pub fn underline(mut self, underline: pango::Underline) -> Self {
684         self.underline = Some(underline);
685         self
686     }
687 
688     #[cfg(any(feature = "v3_16", feature = "dox"))]
underline_rgba(mut self, underline_rgba: &gdk::RGBA) -> Self689     pub fn underline_rgba(mut self, underline_rgba: &gdk::RGBA) -> Self {
690         self.underline_rgba = Some(underline_rgba.clone());
691         self
692     }
693 
694     #[cfg(any(feature = "v3_16", feature = "dox"))]
underline_rgba_set(mut self, underline_rgba_set: bool) -> Self695     pub fn underline_rgba_set(mut self, underline_rgba_set: bool) -> Self {
696         self.underline_rgba_set = Some(underline_rgba_set);
697         self
698     }
699 
underline_set(mut self, underline_set: bool) -> Self700     pub fn underline_set(mut self, underline_set: bool) -> Self {
701         self.underline_set = Some(underline_set);
702         self
703     }
704 
variant(mut self, variant: pango::Variant) -> Self705     pub fn variant(mut self, variant: pango::Variant) -> Self {
706         self.variant = Some(variant);
707         self
708     }
709 
variant_set(mut self, variant_set: bool) -> Self710     pub fn variant_set(mut self, variant_set: bool) -> Self {
711         self.variant_set = Some(variant_set);
712         self
713     }
714 
weight(mut self, weight: i32) -> Self715     pub fn weight(mut self, weight: i32) -> Self {
716         self.weight = Some(weight);
717         self
718     }
719 
weight_set(mut self, weight_set: bool) -> Self720     pub fn weight_set(mut self, weight_set: bool) -> Self {
721         self.weight_set = Some(weight_set);
722         self
723     }
724 
wrap_mode(mut self, wrap_mode: WrapMode) -> Self725     pub fn wrap_mode(mut self, wrap_mode: WrapMode) -> Self {
726         self.wrap_mode = Some(wrap_mode);
727         self
728     }
729 
wrap_mode_set(mut self, wrap_mode_set: bool) -> Self730     pub fn wrap_mode_set(mut self, wrap_mode_set: bool) -> Self {
731         self.wrap_mode_set = Some(wrap_mode_set);
732         self
733     }
734 }
735 
736 pub const NONE_TEXT_TAG: Option<&TextTag> = None;
737 
738 pub trait TextTagExt: 'static {
739     #[cfg(any(feature = "v3_20", feature = "dox"))]
changed(&self, size_changed: bool)740     fn changed(&self, size_changed: bool);
741 
event<P: IsA<glib::Object>>( &self, event_object: &P, event: &gdk::Event, iter: &TextIter, ) -> bool742     fn event<P: IsA<glib::Object>>(
743         &self,
744         event_object: &P,
745         event: &gdk::Event,
746         iter: &TextIter,
747     ) -> bool;
748 
get_priority(&self) -> i32749     fn get_priority(&self) -> i32;
750 
set_priority(&self, priority: i32)751     fn set_priority(&self, priority: i32);
752 
get_property_accumulative_margin(&self) -> bool753     fn get_property_accumulative_margin(&self) -> bool;
754 
set_property_accumulative_margin(&self, accumulative_margin: bool)755     fn set_property_accumulative_margin(&self, accumulative_margin: bool);
756 
set_property_background(&self, background: Option<&str>)757     fn set_property_background(&self, background: Option<&str>);
758 
get_property_background_full_height(&self) -> bool759     fn get_property_background_full_height(&self) -> bool;
760 
set_property_background_full_height(&self, background_full_height: bool)761     fn set_property_background_full_height(&self, background_full_height: bool);
762 
get_property_background_full_height_set(&self) -> bool763     fn get_property_background_full_height_set(&self) -> bool;
764 
set_property_background_full_height_set(&self, background_full_height_set: bool)765     fn set_property_background_full_height_set(&self, background_full_height_set: bool);
766 
get_property_background_rgba(&self) -> Option<gdk::RGBA>767     fn get_property_background_rgba(&self) -> Option<gdk::RGBA>;
768 
set_property_background_rgba(&self, background_rgba: Option<&gdk::RGBA>)769     fn set_property_background_rgba(&self, background_rgba: Option<&gdk::RGBA>);
770 
get_property_background_set(&self) -> bool771     fn get_property_background_set(&self) -> bool;
772 
set_property_background_set(&self, background_set: bool)773     fn set_property_background_set(&self, background_set: bool);
774 
get_property_direction(&self) -> TextDirection775     fn get_property_direction(&self) -> TextDirection;
776 
set_property_direction(&self, direction: TextDirection)777     fn set_property_direction(&self, direction: TextDirection);
778 
get_property_editable(&self) -> bool779     fn get_property_editable(&self) -> bool;
780 
set_property_editable(&self, editable: bool)781     fn set_property_editable(&self, editable: bool);
782 
get_property_editable_set(&self) -> bool783     fn get_property_editable_set(&self) -> bool;
784 
set_property_editable_set(&self, editable_set: bool)785     fn set_property_editable_set(&self, editable_set: bool);
786 
787     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_fallback(&self) -> bool788     fn get_property_fallback(&self) -> bool;
789 
790     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_fallback(&self, fallback: bool)791     fn set_property_fallback(&self, fallback: bool);
792 
get_property_fallback_set(&self) -> bool793     fn get_property_fallback_set(&self) -> bool;
794 
set_property_fallback_set(&self, fallback_set: bool)795     fn set_property_fallback_set(&self, fallback_set: bool);
796 
get_property_family(&self) -> Option<GString>797     fn get_property_family(&self) -> Option<GString>;
798 
set_property_family(&self, family: Option<&str>)799     fn set_property_family(&self, family: Option<&str>);
800 
get_property_family_set(&self) -> bool801     fn get_property_family_set(&self) -> bool;
802 
set_property_family_set(&self, family_set: bool)803     fn set_property_family_set(&self, family_set: bool);
804 
get_property_font(&self) -> Option<GString>805     fn get_property_font(&self) -> Option<GString>;
806 
set_property_font(&self, font: Option<&str>)807     fn set_property_font(&self, font: Option<&str>);
808 
get_property_font_desc(&self) -> Option<pango::FontDescription>809     fn get_property_font_desc(&self) -> Option<pango::FontDescription>;
810 
set_property_font_desc(&self, font_desc: Option<&pango::FontDescription>)811     fn set_property_font_desc(&self, font_desc: Option<&pango::FontDescription>);
812 
813     #[cfg(any(feature = "v3_18", feature = "dox"))]
get_property_font_features(&self) -> Option<GString>814     fn get_property_font_features(&self) -> Option<GString>;
815 
816     #[cfg(any(feature = "v3_18", feature = "dox"))]
set_property_font_features(&self, font_features: Option<&str>)817     fn set_property_font_features(&self, font_features: Option<&str>);
818 
get_property_font_features_set(&self) -> bool819     fn get_property_font_features_set(&self) -> bool;
820 
set_property_font_features_set(&self, font_features_set: bool)821     fn set_property_font_features_set(&self, font_features_set: bool);
822 
set_property_foreground(&self, foreground: Option<&str>)823     fn set_property_foreground(&self, foreground: Option<&str>);
824 
get_property_foreground_rgba(&self) -> Option<gdk::RGBA>825     fn get_property_foreground_rgba(&self) -> Option<gdk::RGBA>;
826 
set_property_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>)827     fn set_property_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>);
828 
get_property_foreground_set(&self) -> bool829     fn get_property_foreground_set(&self) -> bool;
830 
set_property_foreground_set(&self, foreground_set: bool)831     fn set_property_foreground_set(&self, foreground_set: bool);
832 
get_property_indent(&self) -> i32833     fn get_property_indent(&self) -> i32;
834 
set_property_indent(&self, indent: i32)835     fn set_property_indent(&self, indent: i32);
836 
get_property_indent_set(&self) -> bool837     fn get_property_indent_set(&self) -> bool;
838 
set_property_indent_set(&self, indent_set: bool)839     fn set_property_indent_set(&self, indent_set: bool);
840 
get_property_invisible(&self) -> bool841     fn get_property_invisible(&self) -> bool;
842 
set_property_invisible(&self, invisible: bool)843     fn set_property_invisible(&self, invisible: bool);
844 
get_property_invisible_set(&self) -> bool845     fn get_property_invisible_set(&self) -> bool;
846 
set_property_invisible_set(&self, invisible_set: bool)847     fn set_property_invisible_set(&self, invisible_set: bool);
848 
get_property_justification(&self) -> Justification849     fn get_property_justification(&self) -> Justification;
850 
set_property_justification(&self, justification: Justification)851     fn set_property_justification(&self, justification: Justification);
852 
get_property_justification_set(&self) -> bool853     fn get_property_justification_set(&self) -> bool;
854 
set_property_justification_set(&self, justification_set: bool)855     fn set_property_justification_set(&self, justification_set: bool);
856 
get_property_language(&self) -> Option<GString>857     fn get_property_language(&self) -> Option<GString>;
858 
set_property_language(&self, language: Option<&str>)859     fn set_property_language(&self, language: Option<&str>);
860 
get_property_language_set(&self) -> bool861     fn get_property_language_set(&self) -> bool;
862 
set_property_language_set(&self, language_set: bool)863     fn set_property_language_set(&self, language_set: bool);
864 
get_property_left_margin(&self) -> i32865     fn get_property_left_margin(&self) -> i32;
866 
set_property_left_margin(&self, left_margin: i32)867     fn set_property_left_margin(&self, left_margin: i32);
868 
get_property_left_margin_set(&self) -> bool869     fn get_property_left_margin_set(&self) -> bool;
870 
set_property_left_margin_set(&self, left_margin_set: bool)871     fn set_property_left_margin_set(&self, left_margin_set: bool);
872 
873     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_letter_spacing(&self) -> i32874     fn get_property_letter_spacing(&self) -> i32;
875 
876     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_letter_spacing(&self, letter_spacing: i32)877     fn set_property_letter_spacing(&self, letter_spacing: i32);
878 
get_property_letter_spacing_set(&self) -> bool879     fn get_property_letter_spacing_set(&self) -> bool;
880 
set_property_letter_spacing_set(&self, letter_spacing_set: bool)881     fn set_property_letter_spacing_set(&self, letter_spacing_set: bool);
882 
get_property_name(&self) -> Option<GString>883     fn get_property_name(&self) -> Option<GString>;
884 
set_property_paragraph_background(&self, paragraph_background: Option<&str>)885     fn set_property_paragraph_background(&self, paragraph_background: Option<&str>);
886 
get_property_paragraph_background_rgba(&self) -> Option<gdk::RGBA>887     fn get_property_paragraph_background_rgba(&self) -> Option<gdk::RGBA>;
888 
set_property_paragraph_background_rgba(&self, paragraph_background_rgba: Option<&gdk::RGBA>)889     fn set_property_paragraph_background_rgba(&self, paragraph_background_rgba: Option<&gdk::RGBA>);
890 
get_property_paragraph_background_set(&self) -> bool891     fn get_property_paragraph_background_set(&self) -> bool;
892 
set_property_paragraph_background_set(&self, paragraph_background_set: bool)893     fn set_property_paragraph_background_set(&self, paragraph_background_set: bool);
894 
get_property_pixels_above_lines(&self) -> i32895     fn get_property_pixels_above_lines(&self) -> i32;
896 
set_property_pixels_above_lines(&self, pixels_above_lines: i32)897     fn set_property_pixels_above_lines(&self, pixels_above_lines: i32);
898 
get_property_pixels_above_lines_set(&self) -> bool899     fn get_property_pixels_above_lines_set(&self) -> bool;
900 
set_property_pixels_above_lines_set(&self, pixels_above_lines_set: bool)901     fn set_property_pixels_above_lines_set(&self, pixels_above_lines_set: bool);
902 
get_property_pixels_below_lines(&self) -> i32903     fn get_property_pixels_below_lines(&self) -> i32;
904 
set_property_pixels_below_lines(&self, pixels_below_lines: i32)905     fn set_property_pixels_below_lines(&self, pixels_below_lines: i32);
906 
get_property_pixels_below_lines_set(&self) -> bool907     fn get_property_pixels_below_lines_set(&self) -> bool;
908 
set_property_pixels_below_lines_set(&self, pixels_below_lines_set: bool)909     fn set_property_pixels_below_lines_set(&self, pixels_below_lines_set: bool);
910 
get_property_pixels_inside_wrap(&self) -> i32911     fn get_property_pixels_inside_wrap(&self) -> i32;
912 
set_property_pixels_inside_wrap(&self, pixels_inside_wrap: i32)913     fn set_property_pixels_inside_wrap(&self, pixels_inside_wrap: i32);
914 
get_property_pixels_inside_wrap_set(&self) -> bool915     fn get_property_pixels_inside_wrap_set(&self) -> bool;
916 
set_property_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool)917     fn set_property_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool);
918 
get_property_right_margin(&self) -> i32919     fn get_property_right_margin(&self) -> i32;
920 
set_property_right_margin(&self, right_margin: i32)921     fn set_property_right_margin(&self, right_margin: i32);
922 
get_property_right_margin_set(&self) -> bool923     fn get_property_right_margin_set(&self) -> bool;
924 
set_property_right_margin_set(&self, right_margin_set: bool)925     fn set_property_right_margin_set(&self, right_margin_set: bool);
926 
get_property_rise(&self) -> i32927     fn get_property_rise(&self) -> i32;
928 
set_property_rise(&self, rise: i32)929     fn set_property_rise(&self, rise: i32);
930 
get_property_rise_set(&self) -> bool931     fn get_property_rise_set(&self) -> bool;
932 
set_property_rise_set(&self, rise_set: bool)933     fn set_property_rise_set(&self, rise_set: bool);
934 
get_property_scale(&self) -> f64935     fn get_property_scale(&self) -> f64;
936 
set_property_scale(&self, scale: f64)937     fn set_property_scale(&self, scale: f64);
938 
get_property_scale_set(&self) -> bool939     fn get_property_scale_set(&self) -> bool;
940 
set_property_scale_set(&self, scale_set: bool)941     fn set_property_scale_set(&self, scale_set: bool);
942 
get_property_size(&self) -> i32943     fn get_property_size(&self) -> i32;
944 
set_property_size(&self, size: i32)945     fn set_property_size(&self, size: i32);
946 
get_property_size_points(&self) -> f64947     fn get_property_size_points(&self) -> f64;
948 
set_property_size_points(&self, size_points: f64)949     fn set_property_size_points(&self, size_points: f64);
950 
get_property_size_set(&self) -> bool951     fn get_property_size_set(&self) -> bool;
952 
set_property_size_set(&self, size_set: bool)953     fn set_property_size_set(&self, size_set: bool);
954 
get_property_stretch(&self) -> pango::Stretch955     fn get_property_stretch(&self) -> pango::Stretch;
956 
set_property_stretch(&self, stretch: pango::Stretch)957     fn set_property_stretch(&self, stretch: pango::Stretch);
958 
get_property_stretch_set(&self) -> bool959     fn get_property_stretch_set(&self) -> bool;
960 
set_property_stretch_set(&self, stretch_set: bool)961     fn set_property_stretch_set(&self, stretch_set: bool);
962 
get_property_strikethrough(&self) -> bool963     fn get_property_strikethrough(&self) -> bool;
964 
set_property_strikethrough(&self, strikethrough: bool)965     fn set_property_strikethrough(&self, strikethrough: bool);
966 
967     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_strikethrough_rgba(&self) -> Option<gdk::RGBA>968     fn get_property_strikethrough_rgba(&self) -> Option<gdk::RGBA>;
969 
970     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_strikethrough_rgba(&self, strikethrough_rgba: Option<&gdk::RGBA>)971     fn set_property_strikethrough_rgba(&self, strikethrough_rgba: Option<&gdk::RGBA>);
972 
973     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_strikethrough_rgba_set(&self) -> bool974     fn get_property_strikethrough_rgba_set(&self) -> bool;
975 
976     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool)977     fn set_property_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool);
978 
get_property_strikethrough_set(&self) -> bool979     fn get_property_strikethrough_set(&self) -> bool;
980 
set_property_strikethrough_set(&self, strikethrough_set: bool)981     fn set_property_strikethrough_set(&self, strikethrough_set: bool);
982 
get_property_style(&self) -> pango::Style983     fn get_property_style(&self) -> pango::Style;
984 
set_property_style(&self, style: pango::Style)985     fn set_property_style(&self, style: pango::Style);
986 
get_property_style_set(&self) -> bool987     fn get_property_style_set(&self) -> bool;
988 
set_property_style_set(&self, style_set: bool)989     fn set_property_style_set(&self, style_set: bool);
990 
get_property_tabs(&self) -> Option<pango::TabArray>991     fn get_property_tabs(&self) -> Option<pango::TabArray>;
992 
set_property_tabs(&self, tabs: Option<&pango::TabArray>)993     fn set_property_tabs(&self, tabs: Option<&pango::TabArray>);
994 
get_property_tabs_set(&self) -> bool995     fn get_property_tabs_set(&self) -> bool;
996 
set_property_tabs_set(&self, tabs_set: bool)997     fn set_property_tabs_set(&self, tabs_set: bool);
998 
get_property_underline(&self) -> pango::Underline999     fn get_property_underline(&self) -> pango::Underline;
1000 
set_property_underline(&self, underline: pango::Underline)1001     fn set_property_underline(&self, underline: pango::Underline);
1002 
1003     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_underline_rgba(&self) -> Option<gdk::RGBA>1004     fn get_property_underline_rgba(&self) -> Option<gdk::RGBA>;
1005 
1006     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_underline_rgba(&self, underline_rgba: Option<&gdk::RGBA>)1007     fn set_property_underline_rgba(&self, underline_rgba: Option<&gdk::RGBA>);
1008 
1009     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_underline_rgba_set(&self) -> bool1010     fn get_property_underline_rgba_set(&self) -> bool;
1011 
1012     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_underline_rgba_set(&self, underline_rgba_set: bool)1013     fn set_property_underline_rgba_set(&self, underline_rgba_set: bool);
1014 
get_property_underline_set(&self) -> bool1015     fn get_property_underline_set(&self) -> bool;
1016 
set_property_underline_set(&self, underline_set: bool)1017     fn set_property_underline_set(&self, underline_set: bool);
1018 
get_property_variant(&self) -> pango::Variant1019     fn get_property_variant(&self) -> pango::Variant;
1020 
set_property_variant(&self, variant: pango::Variant)1021     fn set_property_variant(&self, variant: pango::Variant);
1022 
get_property_variant_set(&self) -> bool1023     fn get_property_variant_set(&self) -> bool;
1024 
set_property_variant_set(&self, variant_set: bool)1025     fn set_property_variant_set(&self, variant_set: bool);
1026 
get_property_weight(&self) -> i321027     fn get_property_weight(&self) -> i32;
1028 
set_property_weight(&self, weight: i32)1029     fn set_property_weight(&self, weight: i32);
1030 
get_property_weight_set(&self) -> bool1031     fn get_property_weight_set(&self) -> bool;
1032 
set_property_weight_set(&self, weight_set: bool)1033     fn set_property_weight_set(&self, weight_set: bool);
1034 
get_property_wrap_mode(&self) -> WrapMode1035     fn get_property_wrap_mode(&self) -> WrapMode;
1036 
set_property_wrap_mode(&self, wrap_mode: WrapMode)1037     fn set_property_wrap_mode(&self, wrap_mode: WrapMode);
1038 
get_property_wrap_mode_set(&self) -> bool1039     fn get_property_wrap_mode_set(&self) -> bool;
1040 
set_property_wrap_mode_set(&self, wrap_mode_set: bool)1041     fn set_property_wrap_mode_set(&self, wrap_mode_set: bool);
1042 
connect_event< F: Fn(&Self, &glib::Object, &gdk::Event, &TextIter) -> glib::signal::Inhibit + 'static, >( &self, f: F, ) -> SignalHandlerId1043     fn connect_event<
1044         F: Fn(&Self, &glib::Object, &gdk::Event, &TextIter) -> glib::signal::Inhibit + 'static,
1045     >(
1046         &self,
1047         f: F,
1048     ) -> SignalHandlerId;
1049 
connect_property_accumulative_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1050     fn connect_property_accumulative_margin_notify<F: Fn(&Self) + 'static>(
1051         &self,
1052         f: F,
1053     ) -> SignalHandlerId;
1054 
connect_property_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1055     fn connect_property_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1056 
connect_property_background_full_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1057     fn connect_property_background_full_height_notify<F: Fn(&Self) + 'static>(
1058         &self,
1059         f: F,
1060     ) -> SignalHandlerId;
1061 
connect_property_background_full_height_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1062     fn connect_property_background_full_height_set_notify<F: Fn(&Self) + 'static>(
1063         &self,
1064         f: F,
1065     ) -> SignalHandlerId;
1066 
connect_property_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1067     fn connect_property_background_rgba_notify<F: Fn(&Self) + 'static>(
1068         &self,
1069         f: F,
1070     ) -> SignalHandlerId;
1071 
connect_property_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1072     fn connect_property_background_set_notify<F: Fn(&Self) + 'static>(
1073         &self,
1074         f: F,
1075     ) -> SignalHandlerId;
1076 
connect_property_direction_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1077     fn connect_property_direction_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1078 
connect_property_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1079     fn connect_property_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1080 
connect_property_editable_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1081     fn connect_property_editable_set_notify<F: Fn(&Self) + 'static>(&self, f: F)
1082         -> SignalHandlerId;
1083 
1084     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_fallback_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1085     fn connect_property_fallback_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1086 
connect_property_fallback_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1087     fn connect_property_fallback_set_notify<F: Fn(&Self) + 'static>(&self, f: F)
1088         -> SignalHandlerId;
1089 
connect_property_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1090     fn connect_property_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1091 
connect_property_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1092     fn connect_property_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1093 
connect_property_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1094     fn connect_property_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1095 
connect_property_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1096     fn connect_property_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1097 
1098     #[cfg(any(feature = "v3_18", feature = "dox"))]
connect_property_font_features_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1099     fn connect_property_font_features_notify<F: Fn(&Self) + 'static>(
1100         &self,
1101         f: F,
1102     ) -> SignalHandlerId;
1103 
connect_property_font_features_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1104     fn connect_property_font_features_set_notify<F: Fn(&Self) + 'static>(
1105         &self,
1106         f: F,
1107     ) -> SignalHandlerId;
1108 
connect_property_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1109     fn connect_property_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1110 
connect_property_foreground_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1111     fn connect_property_foreground_rgba_notify<F: Fn(&Self) + 'static>(
1112         &self,
1113         f: F,
1114     ) -> SignalHandlerId;
1115 
connect_property_foreground_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1116     fn connect_property_foreground_set_notify<F: Fn(&Self) + 'static>(
1117         &self,
1118         f: F,
1119     ) -> SignalHandlerId;
1120 
connect_property_indent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1121     fn connect_property_indent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1122 
connect_property_indent_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1123     fn connect_property_indent_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1124 
connect_property_invisible_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1125     fn connect_property_invisible_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1126 
connect_property_invisible_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1127     fn connect_property_invisible_set_notify<F: Fn(&Self) + 'static>(
1128         &self,
1129         f: F,
1130     ) -> SignalHandlerId;
1131 
connect_property_justification_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1132     fn connect_property_justification_notify<F: Fn(&Self) + 'static>(
1133         &self,
1134         f: F,
1135     ) -> SignalHandlerId;
1136 
connect_property_justification_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1137     fn connect_property_justification_set_notify<F: Fn(&Self) + 'static>(
1138         &self,
1139         f: F,
1140     ) -> SignalHandlerId;
1141 
connect_property_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1142     fn connect_property_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1143 
connect_property_language_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1144     fn connect_property_language_set_notify<F: Fn(&Self) + 'static>(&self, f: F)
1145         -> SignalHandlerId;
1146 
connect_property_left_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1147     fn connect_property_left_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1148 
connect_property_left_margin_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1149     fn connect_property_left_margin_set_notify<F: Fn(&Self) + 'static>(
1150         &self,
1151         f: F,
1152     ) -> SignalHandlerId;
1153 
1154     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_letter_spacing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1155     fn connect_property_letter_spacing_notify<F: Fn(&Self) + 'static>(
1156         &self,
1157         f: F,
1158     ) -> SignalHandlerId;
1159 
connect_property_letter_spacing_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1160     fn connect_property_letter_spacing_set_notify<F: Fn(&Self) + 'static>(
1161         &self,
1162         f: F,
1163     ) -> SignalHandlerId;
1164 
connect_property_paragraph_background_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1165     fn connect_property_paragraph_background_notify<F: Fn(&Self) + 'static>(
1166         &self,
1167         f: F,
1168     ) -> SignalHandlerId;
1169 
connect_property_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1170     fn connect_property_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>(
1171         &self,
1172         f: F,
1173     ) -> SignalHandlerId;
1174 
connect_property_paragraph_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1175     fn connect_property_paragraph_background_set_notify<F: Fn(&Self) + 'static>(
1176         &self,
1177         f: F,
1178     ) -> SignalHandlerId;
1179 
connect_property_pixels_above_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1180     fn connect_property_pixels_above_lines_notify<F: Fn(&Self) + 'static>(
1181         &self,
1182         f: F,
1183     ) -> SignalHandlerId;
1184 
connect_property_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1185     fn connect_property_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>(
1186         &self,
1187         f: F,
1188     ) -> SignalHandlerId;
1189 
connect_property_pixels_below_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1190     fn connect_property_pixels_below_lines_notify<F: Fn(&Self) + 'static>(
1191         &self,
1192         f: F,
1193     ) -> SignalHandlerId;
1194 
connect_property_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1195     fn connect_property_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>(
1196         &self,
1197         f: F,
1198     ) -> SignalHandlerId;
1199 
connect_property_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1200     fn connect_property_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>(
1201         &self,
1202         f: F,
1203     ) -> SignalHandlerId;
1204 
connect_property_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1205     fn connect_property_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>(
1206         &self,
1207         f: F,
1208     ) -> SignalHandlerId;
1209 
connect_property_right_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1210     fn connect_property_right_margin_notify<F: Fn(&Self) + 'static>(&self, f: F)
1211         -> SignalHandlerId;
1212 
connect_property_right_margin_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1213     fn connect_property_right_margin_set_notify<F: Fn(&Self) + 'static>(
1214         &self,
1215         f: F,
1216     ) -> SignalHandlerId;
1217 
connect_property_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1218     fn connect_property_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1219 
connect_property_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1220     fn connect_property_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1221 
connect_property_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1222     fn connect_property_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1223 
connect_property_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1224     fn connect_property_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1225 
connect_property_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1226     fn connect_property_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1227 
connect_property_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1228     fn connect_property_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1229 
connect_property_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1230     fn connect_property_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1231 
connect_property_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1232     fn connect_property_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1233 
connect_property_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1234     fn connect_property_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1235 
connect_property_strikethrough_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1236     fn connect_property_strikethrough_notify<F: Fn(&Self) + 'static>(
1237         &self,
1238         f: F,
1239     ) -> SignalHandlerId;
1240 
1241     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_strikethrough_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1242     fn connect_property_strikethrough_rgba_notify<F: Fn(&Self) + 'static>(
1243         &self,
1244         f: F,
1245     ) -> SignalHandlerId;
1246 
1247     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1248     fn connect_property_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>(
1249         &self,
1250         f: F,
1251     ) -> SignalHandlerId;
1252 
connect_property_strikethrough_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1253     fn connect_property_strikethrough_set_notify<F: Fn(&Self) + 'static>(
1254         &self,
1255         f: F,
1256     ) -> SignalHandlerId;
1257 
connect_property_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1258     fn connect_property_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1259 
connect_property_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1260     fn connect_property_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1261 
connect_property_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1262     fn connect_property_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1263 
connect_property_tabs_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1264     fn connect_property_tabs_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1265 
connect_property_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1266     fn connect_property_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1267 
1268     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_underline_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1269     fn connect_property_underline_rgba_notify<F: Fn(&Self) + 'static>(
1270         &self,
1271         f: F,
1272     ) -> SignalHandlerId;
1273 
1274     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_underline_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1275     fn connect_property_underline_rgba_set_notify<F: Fn(&Self) + 'static>(
1276         &self,
1277         f: F,
1278     ) -> SignalHandlerId;
1279 
connect_property_underline_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1280     fn connect_property_underline_set_notify<F: Fn(&Self) + 'static>(
1281         &self,
1282         f: F,
1283     ) -> SignalHandlerId;
1284 
connect_property_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1285     fn connect_property_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1286 
connect_property_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1287     fn connect_property_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1288 
connect_property_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1289     fn connect_property_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1290 
connect_property_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1291     fn connect_property_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1292 
connect_property_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1293     fn connect_property_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
1294 
connect_property_wrap_mode_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1295     fn connect_property_wrap_mode_set_notify<F: Fn(&Self) + 'static>(
1296         &self,
1297         f: F,
1298     ) -> SignalHandlerId;
1299 }
1300 
1301 impl<O: IsA<TextTag>> TextTagExt for O {
1302     #[cfg(any(feature = "v3_20", feature = "dox"))]
changed(&self, size_changed: bool)1303     fn changed(&self, size_changed: bool) {
1304         unsafe {
1305             gtk_sys::gtk_text_tag_changed(self.as_ref().to_glib_none().0, size_changed.to_glib());
1306         }
1307     }
1308 
event<P: IsA<glib::Object>>( &self, event_object: &P, event: &gdk::Event, iter: &TextIter, ) -> bool1309     fn event<P: IsA<glib::Object>>(
1310         &self,
1311         event_object: &P,
1312         event: &gdk::Event,
1313         iter: &TextIter,
1314     ) -> bool {
1315         unsafe {
1316             from_glib(gtk_sys::gtk_text_tag_event(
1317                 self.as_ref().to_glib_none().0,
1318                 event_object.as_ref().to_glib_none().0,
1319                 mut_override(event.to_glib_none().0),
1320                 iter.to_glib_none().0,
1321             ))
1322         }
1323     }
1324 
get_priority(&self) -> i321325     fn get_priority(&self) -> i32 {
1326         unsafe { gtk_sys::gtk_text_tag_get_priority(self.as_ref().to_glib_none().0) }
1327     }
1328 
set_priority(&self, priority: i32)1329     fn set_priority(&self, priority: i32) {
1330         unsafe {
1331             gtk_sys::gtk_text_tag_set_priority(self.as_ref().to_glib_none().0, priority);
1332         }
1333     }
1334 
get_property_accumulative_margin(&self) -> bool1335     fn get_property_accumulative_margin(&self) -> bool {
1336         unsafe {
1337             let mut value = Value::from_type(<bool as StaticType>::static_type());
1338             gobject_sys::g_object_get_property(
1339                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1340                 b"accumulative-margin\0".as_ptr() as *const _,
1341                 value.to_glib_none_mut().0,
1342             );
1343             value
1344                 .get()
1345                 .expect("Return Value for property `accumulative-margin` getter")
1346                 .unwrap()
1347         }
1348     }
1349 
set_property_accumulative_margin(&self, accumulative_margin: bool)1350     fn set_property_accumulative_margin(&self, accumulative_margin: bool) {
1351         unsafe {
1352             gobject_sys::g_object_set_property(
1353                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1354                 b"accumulative-margin\0".as_ptr() as *const _,
1355                 Value::from(&accumulative_margin).to_glib_none().0,
1356             );
1357         }
1358     }
1359 
set_property_background(&self, background: Option<&str>)1360     fn set_property_background(&self, background: Option<&str>) {
1361         unsafe {
1362             gobject_sys::g_object_set_property(
1363                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1364                 b"background\0".as_ptr() as *const _,
1365                 Value::from(background).to_glib_none().0,
1366             );
1367         }
1368     }
1369 
get_property_background_full_height(&self) -> bool1370     fn get_property_background_full_height(&self) -> bool {
1371         unsafe {
1372             let mut value = Value::from_type(<bool as StaticType>::static_type());
1373             gobject_sys::g_object_get_property(
1374                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1375                 b"background-full-height\0".as_ptr() as *const _,
1376                 value.to_glib_none_mut().0,
1377             );
1378             value
1379                 .get()
1380                 .expect("Return Value for property `background-full-height` getter")
1381                 .unwrap()
1382         }
1383     }
1384 
set_property_background_full_height(&self, background_full_height: bool)1385     fn set_property_background_full_height(&self, background_full_height: bool) {
1386         unsafe {
1387             gobject_sys::g_object_set_property(
1388                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1389                 b"background-full-height\0".as_ptr() as *const _,
1390                 Value::from(&background_full_height).to_glib_none().0,
1391             );
1392         }
1393     }
1394 
get_property_background_full_height_set(&self) -> bool1395     fn get_property_background_full_height_set(&self) -> bool {
1396         unsafe {
1397             let mut value = Value::from_type(<bool as StaticType>::static_type());
1398             gobject_sys::g_object_get_property(
1399                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1400                 b"background-full-height-set\0".as_ptr() as *const _,
1401                 value.to_glib_none_mut().0,
1402             );
1403             value
1404                 .get()
1405                 .expect("Return Value for property `background-full-height-set` getter")
1406                 .unwrap()
1407         }
1408     }
1409 
set_property_background_full_height_set(&self, background_full_height_set: bool)1410     fn set_property_background_full_height_set(&self, background_full_height_set: bool) {
1411         unsafe {
1412             gobject_sys::g_object_set_property(
1413                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1414                 b"background-full-height-set\0".as_ptr() as *const _,
1415                 Value::from(&background_full_height_set).to_glib_none().0,
1416             );
1417         }
1418     }
1419 
get_property_background_rgba(&self) -> Option<gdk::RGBA>1420     fn get_property_background_rgba(&self) -> Option<gdk::RGBA> {
1421         unsafe {
1422             let mut value = Value::from_type(<gdk::RGBA as StaticType>::static_type());
1423             gobject_sys::g_object_get_property(
1424                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1425                 b"background-rgba\0".as_ptr() as *const _,
1426                 value.to_glib_none_mut().0,
1427             );
1428             value
1429                 .get()
1430                 .expect("Return Value for property `background-rgba` getter")
1431         }
1432     }
1433 
set_property_background_rgba(&self, background_rgba: Option<&gdk::RGBA>)1434     fn set_property_background_rgba(&self, background_rgba: Option<&gdk::RGBA>) {
1435         unsafe {
1436             gobject_sys::g_object_set_property(
1437                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1438                 b"background-rgba\0".as_ptr() as *const _,
1439                 Value::from(background_rgba).to_glib_none().0,
1440             );
1441         }
1442     }
1443 
get_property_background_set(&self) -> bool1444     fn get_property_background_set(&self) -> bool {
1445         unsafe {
1446             let mut value = Value::from_type(<bool as StaticType>::static_type());
1447             gobject_sys::g_object_get_property(
1448                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1449                 b"background-set\0".as_ptr() as *const _,
1450                 value.to_glib_none_mut().0,
1451             );
1452             value
1453                 .get()
1454                 .expect("Return Value for property `background-set` getter")
1455                 .unwrap()
1456         }
1457     }
1458 
set_property_background_set(&self, background_set: bool)1459     fn set_property_background_set(&self, background_set: bool) {
1460         unsafe {
1461             gobject_sys::g_object_set_property(
1462                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1463                 b"background-set\0".as_ptr() as *const _,
1464                 Value::from(&background_set).to_glib_none().0,
1465             );
1466         }
1467     }
1468 
get_property_direction(&self) -> TextDirection1469     fn get_property_direction(&self) -> TextDirection {
1470         unsafe {
1471             let mut value = Value::from_type(<TextDirection as StaticType>::static_type());
1472             gobject_sys::g_object_get_property(
1473                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1474                 b"direction\0".as_ptr() as *const _,
1475                 value.to_glib_none_mut().0,
1476             );
1477             value
1478                 .get()
1479                 .expect("Return Value for property `direction` getter")
1480                 .unwrap()
1481         }
1482     }
1483 
set_property_direction(&self, direction: TextDirection)1484     fn set_property_direction(&self, direction: TextDirection) {
1485         unsafe {
1486             gobject_sys::g_object_set_property(
1487                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1488                 b"direction\0".as_ptr() as *const _,
1489                 Value::from(&direction).to_glib_none().0,
1490             );
1491         }
1492     }
1493 
get_property_editable(&self) -> bool1494     fn get_property_editable(&self) -> bool {
1495         unsafe {
1496             let mut value = Value::from_type(<bool as StaticType>::static_type());
1497             gobject_sys::g_object_get_property(
1498                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1499                 b"editable\0".as_ptr() as *const _,
1500                 value.to_glib_none_mut().0,
1501             );
1502             value
1503                 .get()
1504                 .expect("Return Value for property `editable` getter")
1505                 .unwrap()
1506         }
1507     }
1508 
set_property_editable(&self, editable: bool)1509     fn set_property_editable(&self, editable: bool) {
1510         unsafe {
1511             gobject_sys::g_object_set_property(
1512                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1513                 b"editable\0".as_ptr() as *const _,
1514                 Value::from(&editable).to_glib_none().0,
1515             );
1516         }
1517     }
1518 
get_property_editable_set(&self) -> bool1519     fn get_property_editable_set(&self) -> bool {
1520         unsafe {
1521             let mut value = Value::from_type(<bool as StaticType>::static_type());
1522             gobject_sys::g_object_get_property(
1523                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1524                 b"editable-set\0".as_ptr() as *const _,
1525                 value.to_glib_none_mut().0,
1526             );
1527             value
1528                 .get()
1529                 .expect("Return Value for property `editable-set` getter")
1530                 .unwrap()
1531         }
1532     }
1533 
set_property_editable_set(&self, editable_set: bool)1534     fn set_property_editable_set(&self, editable_set: bool) {
1535         unsafe {
1536             gobject_sys::g_object_set_property(
1537                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1538                 b"editable-set\0".as_ptr() as *const _,
1539                 Value::from(&editable_set).to_glib_none().0,
1540             );
1541         }
1542     }
1543 
1544     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_fallback(&self) -> bool1545     fn get_property_fallback(&self) -> bool {
1546         unsafe {
1547             let mut value = Value::from_type(<bool as StaticType>::static_type());
1548             gobject_sys::g_object_get_property(
1549                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1550                 b"fallback\0".as_ptr() as *const _,
1551                 value.to_glib_none_mut().0,
1552             );
1553             value
1554                 .get()
1555                 .expect("Return Value for property `fallback` getter")
1556                 .unwrap()
1557         }
1558     }
1559 
1560     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_fallback(&self, fallback: bool)1561     fn set_property_fallback(&self, fallback: bool) {
1562         unsafe {
1563             gobject_sys::g_object_set_property(
1564                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1565                 b"fallback\0".as_ptr() as *const _,
1566                 Value::from(&fallback).to_glib_none().0,
1567             );
1568         }
1569     }
1570 
get_property_fallback_set(&self) -> bool1571     fn get_property_fallback_set(&self) -> bool {
1572         unsafe {
1573             let mut value = Value::from_type(<bool as StaticType>::static_type());
1574             gobject_sys::g_object_get_property(
1575                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1576                 b"fallback-set\0".as_ptr() as *const _,
1577                 value.to_glib_none_mut().0,
1578             );
1579             value
1580                 .get()
1581                 .expect("Return Value for property `fallback-set` getter")
1582                 .unwrap()
1583         }
1584     }
1585 
set_property_fallback_set(&self, fallback_set: bool)1586     fn set_property_fallback_set(&self, fallback_set: bool) {
1587         unsafe {
1588             gobject_sys::g_object_set_property(
1589                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1590                 b"fallback-set\0".as_ptr() as *const _,
1591                 Value::from(&fallback_set).to_glib_none().0,
1592             );
1593         }
1594     }
1595 
get_property_family(&self) -> Option<GString>1596     fn get_property_family(&self) -> Option<GString> {
1597         unsafe {
1598             let mut value = Value::from_type(<GString as StaticType>::static_type());
1599             gobject_sys::g_object_get_property(
1600                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1601                 b"family\0".as_ptr() as *const _,
1602                 value.to_glib_none_mut().0,
1603             );
1604             value
1605                 .get()
1606                 .expect("Return Value for property `family` getter")
1607         }
1608     }
1609 
set_property_family(&self, family: Option<&str>)1610     fn set_property_family(&self, family: Option<&str>) {
1611         unsafe {
1612             gobject_sys::g_object_set_property(
1613                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1614                 b"family\0".as_ptr() as *const _,
1615                 Value::from(family).to_glib_none().0,
1616             );
1617         }
1618     }
1619 
get_property_family_set(&self) -> bool1620     fn get_property_family_set(&self) -> bool {
1621         unsafe {
1622             let mut value = Value::from_type(<bool as StaticType>::static_type());
1623             gobject_sys::g_object_get_property(
1624                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1625                 b"family-set\0".as_ptr() as *const _,
1626                 value.to_glib_none_mut().0,
1627             );
1628             value
1629                 .get()
1630                 .expect("Return Value for property `family-set` getter")
1631                 .unwrap()
1632         }
1633     }
1634 
set_property_family_set(&self, family_set: bool)1635     fn set_property_family_set(&self, family_set: bool) {
1636         unsafe {
1637             gobject_sys::g_object_set_property(
1638                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1639                 b"family-set\0".as_ptr() as *const _,
1640                 Value::from(&family_set).to_glib_none().0,
1641             );
1642         }
1643     }
1644 
get_property_font(&self) -> Option<GString>1645     fn get_property_font(&self) -> Option<GString> {
1646         unsafe {
1647             let mut value = Value::from_type(<GString as StaticType>::static_type());
1648             gobject_sys::g_object_get_property(
1649                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1650                 b"font\0".as_ptr() as *const _,
1651                 value.to_glib_none_mut().0,
1652             );
1653             value
1654                 .get()
1655                 .expect("Return Value for property `font` getter")
1656         }
1657     }
1658 
set_property_font(&self, font: Option<&str>)1659     fn set_property_font(&self, font: Option<&str>) {
1660         unsafe {
1661             gobject_sys::g_object_set_property(
1662                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1663                 b"font\0".as_ptr() as *const _,
1664                 Value::from(font).to_glib_none().0,
1665             );
1666         }
1667     }
1668 
get_property_font_desc(&self) -> Option<pango::FontDescription>1669     fn get_property_font_desc(&self) -> Option<pango::FontDescription> {
1670         unsafe {
1671             let mut value = Value::from_type(<pango::FontDescription as StaticType>::static_type());
1672             gobject_sys::g_object_get_property(
1673                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1674                 b"font-desc\0".as_ptr() as *const _,
1675                 value.to_glib_none_mut().0,
1676             );
1677             value
1678                 .get()
1679                 .expect("Return Value for property `font-desc` getter")
1680         }
1681     }
1682 
set_property_font_desc(&self, font_desc: Option<&pango::FontDescription>)1683     fn set_property_font_desc(&self, font_desc: Option<&pango::FontDescription>) {
1684         unsafe {
1685             gobject_sys::g_object_set_property(
1686                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1687                 b"font-desc\0".as_ptr() as *const _,
1688                 Value::from(font_desc).to_glib_none().0,
1689             );
1690         }
1691     }
1692 
1693     #[cfg(any(feature = "v3_18", feature = "dox"))]
get_property_font_features(&self) -> Option<GString>1694     fn get_property_font_features(&self) -> Option<GString> {
1695         unsafe {
1696             let mut value = Value::from_type(<GString as StaticType>::static_type());
1697             gobject_sys::g_object_get_property(
1698                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1699                 b"font-features\0".as_ptr() as *const _,
1700                 value.to_glib_none_mut().0,
1701             );
1702             value
1703                 .get()
1704                 .expect("Return Value for property `font-features` getter")
1705         }
1706     }
1707 
1708     #[cfg(any(feature = "v3_18", feature = "dox"))]
set_property_font_features(&self, font_features: Option<&str>)1709     fn set_property_font_features(&self, font_features: Option<&str>) {
1710         unsafe {
1711             gobject_sys::g_object_set_property(
1712                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1713                 b"font-features\0".as_ptr() as *const _,
1714                 Value::from(font_features).to_glib_none().0,
1715             );
1716         }
1717     }
1718 
get_property_font_features_set(&self) -> bool1719     fn get_property_font_features_set(&self) -> bool {
1720         unsafe {
1721             let mut value = Value::from_type(<bool as StaticType>::static_type());
1722             gobject_sys::g_object_get_property(
1723                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1724                 b"font-features-set\0".as_ptr() as *const _,
1725                 value.to_glib_none_mut().0,
1726             );
1727             value
1728                 .get()
1729                 .expect("Return Value for property `font-features-set` getter")
1730                 .unwrap()
1731         }
1732     }
1733 
set_property_font_features_set(&self, font_features_set: bool)1734     fn set_property_font_features_set(&self, font_features_set: bool) {
1735         unsafe {
1736             gobject_sys::g_object_set_property(
1737                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1738                 b"font-features-set\0".as_ptr() as *const _,
1739                 Value::from(&font_features_set).to_glib_none().0,
1740             );
1741         }
1742     }
1743 
set_property_foreground(&self, foreground: Option<&str>)1744     fn set_property_foreground(&self, foreground: Option<&str>) {
1745         unsafe {
1746             gobject_sys::g_object_set_property(
1747                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1748                 b"foreground\0".as_ptr() as *const _,
1749                 Value::from(foreground).to_glib_none().0,
1750             );
1751         }
1752     }
1753 
get_property_foreground_rgba(&self) -> Option<gdk::RGBA>1754     fn get_property_foreground_rgba(&self) -> Option<gdk::RGBA> {
1755         unsafe {
1756             let mut value = Value::from_type(<gdk::RGBA as StaticType>::static_type());
1757             gobject_sys::g_object_get_property(
1758                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1759                 b"foreground-rgba\0".as_ptr() as *const _,
1760                 value.to_glib_none_mut().0,
1761             );
1762             value
1763                 .get()
1764                 .expect("Return Value for property `foreground-rgba` getter")
1765         }
1766     }
1767 
set_property_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>)1768     fn set_property_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>) {
1769         unsafe {
1770             gobject_sys::g_object_set_property(
1771                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1772                 b"foreground-rgba\0".as_ptr() as *const _,
1773                 Value::from(foreground_rgba).to_glib_none().0,
1774             );
1775         }
1776     }
1777 
get_property_foreground_set(&self) -> bool1778     fn get_property_foreground_set(&self) -> bool {
1779         unsafe {
1780             let mut value = Value::from_type(<bool as StaticType>::static_type());
1781             gobject_sys::g_object_get_property(
1782                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1783                 b"foreground-set\0".as_ptr() as *const _,
1784                 value.to_glib_none_mut().0,
1785             );
1786             value
1787                 .get()
1788                 .expect("Return Value for property `foreground-set` getter")
1789                 .unwrap()
1790         }
1791     }
1792 
set_property_foreground_set(&self, foreground_set: bool)1793     fn set_property_foreground_set(&self, foreground_set: bool) {
1794         unsafe {
1795             gobject_sys::g_object_set_property(
1796                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1797                 b"foreground-set\0".as_ptr() as *const _,
1798                 Value::from(&foreground_set).to_glib_none().0,
1799             );
1800         }
1801     }
1802 
get_property_indent(&self) -> i321803     fn get_property_indent(&self) -> i32 {
1804         unsafe {
1805             let mut value = Value::from_type(<i32 as StaticType>::static_type());
1806             gobject_sys::g_object_get_property(
1807                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1808                 b"indent\0".as_ptr() as *const _,
1809                 value.to_glib_none_mut().0,
1810             );
1811             value
1812                 .get()
1813                 .expect("Return Value for property `indent` getter")
1814                 .unwrap()
1815         }
1816     }
1817 
set_property_indent(&self, indent: i32)1818     fn set_property_indent(&self, indent: i32) {
1819         unsafe {
1820             gobject_sys::g_object_set_property(
1821                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1822                 b"indent\0".as_ptr() as *const _,
1823                 Value::from(&indent).to_glib_none().0,
1824             );
1825         }
1826     }
1827 
get_property_indent_set(&self) -> bool1828     fn get_property_indent_set(&self) -> bool {
1829         unsafe {
1830             let mut value = Value::from_type(<bool as StaticType>::static_type());
1831             gobject_sys::g_object_get_property(
1832                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1833                 b"indent-set\0".as_ptr() as *const _,
1834                 value.to_glib_none_mut().0,
1835             );
1836             value
1837                 .get()
1838                 .expect("Return Value for property `indent-set` getter")
1839                 .unwrap()
1840         }
1841     }
1842 
set_property_indent_set(&self, indent_set: bool)1843     fn set_property_indent_set(&self, indent_set: bool) {
1844         unsafe {
1845             gobject_sys::g_object_set_property(
1846                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1847                 b"indent-set\0".as_ptr() as *const _,
1848                 Value::from(&indent_set).to_glib_none().0,
1849             );
1850         }
1851     }
1852 
get_property_invisible(&self) -> bool1853     fn get_property_invisible(&self) -> bool {
1854         unsafe {
1855             let mut value = Value::from_type(<bool as StaticType>::static_type());
1856             gobject_sys::g_object_get_property(
1857                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1858                 b"invisible\0".as_ptr() as *const _,
1859                 value.to_glib_none_mut().0,
1860             );
1861             value
1862                 .get()
1863                 .expect("Return Value for property `invisible` getter")
1864                 .unwrap()
1865         }
1866     }
1867 
set_property_invisible(&self, invisible: bool)1868     fn set_property_invisible(&self, invisible: bool) {
1869         unsafe {
1870             gobject_sys::g_object_set_property(
1871                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1872                 b"invisible\0".as_ptr() as *const _,
1873                 Value::from(&invisible).to_glib_none().0,
1874             );
1875         }
1876     }
1877 
get_property_invisible_set(&self) -> bool1878     fn get_property_invisible_set(&self) -> bool {
1879         unsafe {
1880             let mut value = Value::from_type(<bool as StaticType>::static_type());
1881             gobject_sys::g_object_get_property(
1882                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1883                 b"invisible-set\0".as_ptr() as *const _,
1884                 value.to_glib_none_mut().0,
1885             );
1886             value
1887                 .get()
1888                 .expect("Return Value for property `invisible-set` getter")
1889                 .unwrap()
1890         }
1891     }
1892 
set_property_invisible_set(&self, invisible_set: bool)1893     fn set_property_invisible_set(&self, invisible_set: bool) {
1894         unsafe {
1895             gobject_sys::g_object_set_property(
1896                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1897                 b"invisible-set\0".as_ptr() as *const _,
1898                 Value::from(&invisible_set).to_glib_none().0,
1899             );
1900         }
1901     }
1902 
get_property_justification(&self) -> Justification1903     fn get_property_justification(&self) -> Justification {
1904         unsafe {
1905             let mut value = Value::from_type(<Justification as StaticType>::static_type());
1906             gobject_sys::g_object_get_property(
1907                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1908                 b"justification\0".as_ptr() as *const _,
1909                 value.to_glib_none_mut().0,
1910             );
1911             value
1912                 .get()
1913                 .expect("Return Value for property `justification` getter")
1914                 .unwrap()
1915         }
1916     }
1917 
set_property_justification(&self, justification: Justification)1918     fn set_property_justification(&self, justification: Justification) {
1919         unsafe {
1920             gobject_sys::g_object_set_property(
1921                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1922                 b"justification\0".as_ptr() as *const _,
1923                 Value::from(&justification).to_glib_none().0,
1924             );
1925         }
1926     }
1927 
get_property_justification_set(&self) -> bool1928     fn get_property_justification_set(&self) -> bool {
1929         unsafe {
1930             let mut value = Value::from_type(<bool as StaticType>::static_type());
1931             gobject_sys::g_object_get_property(
1932                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1933                 b"justification-set\0".as_ptr() as *const _,
1934                 value.to_glib_none_mut().0,
1935             );
1936             value
1937                 .get()
1938                 .expect("Return Value for property `justification-set` getter")
1939                 .unwrap()
1940         }
1941     }
1942 
set_property_justification_set(&self, justification_set: bool)1943     fn set_property_justification_set(&self, justification_set: bool) {
1944         unsafe {
1945             gobject_sys::g_object_set_property(
1946                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1947                 b"justification-set\0".as_ptr() as *const _,
1948                 Value::from(&justification_set).to_glib_none().0,
1949             );
1950         }
1951     }
1952 
get_property_language(&self) -> Option<GString>1953     fn get_property_language(&self) -> Option<GString> {
1954         unsafe {
1955             let mut value = Value::from_type(<GString as StaticType>::static_type());
1956             gobject_sys::g_object_get_property(
1957                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1958                 b"language\0".as_ptr() as *const _,
1959                 value.to_glib_none_mut().0,
1960             );
1961             value
1962                 .get()
1963                 .expect("Return Value for property `language` getter")
1964         }
1965     }
1966 
set_property_language(&self, language: Option<&str>)1967     fn set_property_language(&self, language: Option<&str>) {
1968         unsafe {
1969             gobject_sys::g_object_set_property(
1970                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1971                 b"language\0".as_ptr() as *const _,
1972                 Value::from(language).to_glib_none().0,
1973             );
1974         }
1975     }
1976 
get_property_language_set(&self) -> bool1977     fn get_property_language_set(&self) -> bool {
1978         unsafe {
1979             let mut value = Value::from_type(<bool as StaticType>::static_type());
1980             gobject_sys::g_object_get_property(
1981                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1982                 b"language-set\0".as_ptr() as *const _,
1983                 value.to_glib_none_mut().0,
1984             );
1985             value
1986                 .get()
1987                 .expect("Return Value for property `language-set` getter")
1988                 .unwrap()
1989         }
1990     }
1991 
set_property_language_set(&self, language_set: bool)1992     fn set_property_language_set(&self, language_set: bool) {
1993         unsafe {
1994             gobject_sys::g_object_set_property(
1995                 self.to_glib_none().0 as *mut gobject_sys::GObject,
1996                 b"language-set\0".as_ptr() as *const _,
1997                 Value::from(&language_set).to_glib_none().0,
1998             );
1999         }
2000     }
2001 
get_property_left_margin(&self) -> i322002     fn get_property_left_margin(&self) -> i32 {
2003         unsafe {
2004             let mut value = Value::from_type(<i32 as StaticType>::static_type());
2005             gobject_sys::g_object_get_property(
2006                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2007                 b"left-margin\0".as_ptr() as *const _,
2008                 value.to_glib_none_mut().0,
2009             );
2010             value
2011                 .get()
2012                 .expect("Return Value for property `left-margin` getter")
2013                 .unwrap()
2014         }
2015     }
2016 
set_property_left_margin(&self, left_margin: i32)2017     fn set_property_left_margin(&self, left_margin: i32) {
2018         unsafe {
2019             gobject_sys::g_object_set_property(
2020                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2021                 b"left-margin\0".as_ptr() as *const _,
2022                 Value::from(&left_margin).to_glib_none().0,
2023             );
2024         }
2025     }
2026 
get_property_left_margin_set(&self) -> bool2027     fn get_property_left_margin_set(&self) -> bool {
2028         unsafe {
2029             let mut value = Value::from_type(<bool as StaticType>::static_type());
2030             gobject_sys::g_object_get_property(
2031                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2032                 b"left-margin-set\0".as_ptr() as *const _,
2033                 value.to_glib_none_mut().0,
2034             );
2035             value
2036                 .get()
2037                 .expect("Return Value for property `left-margin-set` getter")
2038                 .unwrap()
2039         }
2040     }
2041 
set_property_left_margin_set(&self, left_margin_set: bool)2042     fn set_property_left_margin_set(&self, left_margin_set: bool) {
2043         unsafe {
2044             gobject_sys::g_object_set_property(
2045                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2046                 b"left-margin-set\0".as_ptr() as *const _,
2047                 Value::from(&left_margin_set).to_glib_none().0,
2048             );
2049         }
2050     }
2051 
2052     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_letter_spacing(&self) -> i322053     fn get_property_letter_spacing(&self) -> i32 {
2054         unsafe {
2055             let mut value = Value::from_type(<i32 as StaticType>::static_type());
2056             gobject_sys::g_object_get_property(
2057                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2058                 b"letter-spacing\0".as_ptr() as *const _,
2059                 value.to_glib_none_mut().0,
2060             );
2061             value
2062                 .get()
2063                 .expect("Return Value for property `letter-spacing` getter")
2064                 .unwrap()
2065         }
2066     }
2067 
2068     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_letter_spacing(&self, letter_spacing: i32)2069     fn set_property_letter_spacing(&self, letter_spacing: i32) {
2070         unsafe {
2071             gobject_sys::g_object_set_property(
2072                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2073                 b"letter-spacing\0".as_ptr() as *const _,
2074                 Value::from(&letter_spacing).to_glib_none().0,
2075             );
2076         }
2077     }
2078 
get_property_letter_spacing_set(&self) -> bool2079     fn get_property_letter_spacing_set(&self) -> bool {
2080         unsafe {
2081             let mut value = Value::from_type(<bool as StaticType>::static_type());
2082             gobject_sys::g_object_get_property(
2083                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2084                 b"letter-spacing-set\0".as_ptr() as *const _,
2085                 value.to_glib_none_mut().0,
2086             );
2087             value
2088                 .get()
2089                 .expect("Return Value for property `letter-spacing-set` getter")
2090                 .unwrap()
2091         }
2092     }
2093 
set_property_letter_spacing_set(&self, letter_spacing_set: bool)2094     fn set_property_letter_spacing_set(&self, letter_spacing_set: bool) {
2095         unsafe {
2096             gobject_sys::g_object_set_property(
2097                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2098                 b"letter-spacing-set\0".as_ptr() as *const _,
2099                 Value::from(&letter_spacing_set).to_glib_none().0,
2100             );
2101         }
2102     }
2103 
get_property_name(&self) -> Option<GString>2104     fn get_property_name(&self) -> Option<GString> {
2105         unsafe {
2106             let mut value = Value::from_type(<GString as StaticType>::static_type());
2107             gobject_sys::g_object_get_property(
2108                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2109                 b"name\0".as_ptr() as *const _,
2110                 value.to_glib_none_mut().0,
2111             );
2112             value
2113                 .get()
2114                 .expect("Return Value for property `name` getter")
2115         }
2116     }
2117 
set_property_paragraph_background(&self, paragraph_background: Option<&str>)2118     fn set_property_paragraph_background(&self, paragraph_background: Option<&str>) {
2119         unsafe {
2120             gobject_sys::g_object_set_property(
2121                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2122                 b"paragraph-background\0".as_ptr() as *const _,
2123                 Value::from(paragraph_background).to_glib_none().0,
2124             );
2125         }
2126     }
2127 
get_property_paragraph_background_rgba(&self) -> Option<gdk::RGBA>2128     fn get_property_paragraph_background_rgba(&self) -> Option<gdk::RGBA> {
2129         unsafe {
2130             let mut value = Value::from_type(<gdk::RGBA as StaticType>::static_type());
2131             gobject_sys::g_object_get_property(
2132                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2133                 b"paragraph-background-rgba\0".as_ptr() as *const _,
2134                 value.to_glib_none_mut().0,
2135             );
2136             value
2137                 .get()
2138                 .expect("Return Value for property `paragraph-background-rgba` getter")
2139         }
2140     }
2141 
set_property_paragraph_background_rgba( &self, paragraph_background_rgba: Option<&gdk::RGBA>, )2142     fn set_property_paragraph_background_rgba(
2143         &self,
2144         paragraph_background_rgba: Option<&gdk::RGBA>,
2145     ) {
2146         unsafe {
2147             gobject_sys::g_object_set_property(
2148                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2149                 b"paragraph-background-rgba\0".as_ptr() as *const _,
2150                 Value::from(paragraph_background_rgba).to_glib_none().0,
2151             );
2152         }
2153     }
2154 
get_property_paragraph_background_set(&self) -> bool2155     fn get_property_paragraph_background_set(&self) -> bool {
2156         unsafe {
2157             let mut value = Value::from_type(<bool as StaticType>::static_type());
2158             gobject_sys::g_object_get_property(
2159                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2160                 b"paragraph-background-set\0".as_ptr() as *const _,
2161                 value.to_glib_none_mut().0,
2162             );
2163             value
2164                 .get()
2165                 .expect("Return Value for property `paragraph-background-set` getter")
2166                 .unwrap()
2167         }
2168     }
2169 
set_property_paragraph_background_set(&self, paragraph_background_set: bool)2170     fn set_property_paragraph_background_set(&self, paragraph_background_set: bool) {
2171         unsafe {
2172             gobject_sys::g_object_set_property(
2173                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2174                 b"paragraph-background-set\0".as_ptr() as *const _,
2175                 Value::from(&paragraph_background_set).to_glib_none().0,
2176             );
2177         }
2178     }
2179 
get_property_pixels_above_lines(&self) -> i322180     fn get_property_pixels_above_lines(&self) -> i32 {
2181         unsafe {
2182             let mut value = Value::from_type(<i32 as StaticType>::static_type());
2183             gobject_sys::g_object_get_property(
2184                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2185                 b"pixels-above-lines\0".as_ptr() as *const _,
2186                 value.to_glib_none_mut().0,
2187             );
2188             value
2189                 .get()
2190                 .expect("Return Value for property `pixels-above-lines` getter")
2191                 .unwrap()
2192         }
2193     }
2194 
set_property_pixels_above_lines(&self, pixels_above_lines: i32)2195     fn set_property_pixels_above_lines(&self, pixels_above_lines: i32) {
2196         unsafe {
2197             gobject_sys::g_object_set_property(
2198                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2199                 b"pixels-above-lines\0".as_ptr() as *const _,
2200                 Value::from(&pixels_above_lines).to_glib_none().0,
2201             );
2202         }
2203     }
2204 
get_property_pixels_above_lines_set(&self) -> bool2205     fn get_property_pixels_above_lines_set(&self) -> bool {
2206         unsafe {
2207             let mut value = Value::from_type(<bool as StaticType>::static_type());
2208             gobject_sys::g_object_get_property(
2209                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2210                 b"pixels-above-lines-set\0".as_ptr() as *const _,
2211                 value.to_glib_none_mut().0,
2212             );
2213             value
2214                 .get()
2215                 .expect("Return Value for property `pixels-above-lines-set` getter")
2216                 .unwrap()
2217         }
2218     }
2219 
set_property_pixels_above_lines_set(&self, pixels_above_lines_set: bool)2220     fn set_property_pixels_above_lines_set(&self, pixels_above_lines_set: bool) {
2221         unsafe {
2222             gobject_sys::g_object_set_property(
2223                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2224                 b"pixels-above-lines-set\0".as_ptr() as *const _,
2225                 Value::from(&pixels_above_lines_set).to_glib_none().0,
2226             );
2227         }
2228     }
2229 
get_property_pixels_below_lines(&self) -> i322230     fn get_property_pixels_below_lines(&self) -> i32 {
2231         unsafe {
2232             let mut value = Value::from_type(<i32 as StaticType>::static_type());
2233             gobject_sys::g_object_get_property(
2234                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2235                 b"pixels-below-lines\0".as_ptr() as *const _,
2236                 value.to_glib_none_mut().0,
2237             );
2238             value
2239                 .get()
2240                 .expect("Return Value for property `pixels-below-lines` getter")
2241                 .unwrap()
2242         }
2243     }
2244 
set_property_pixels_below_lines(&self, pixels_below_lines: i32)2245     fn set_property_pixels_below_lines(&self, pixels_below_lines: i32) {
2246         unsafe {
2247             gobject_sys::g_object_set_property(
2248                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2249                 b"pixels-below-lines\0".as_ptr() as *const _,
2250                 Value::from(&pixels_below_lines).to_glib_none().0,
2251             );
2252         }
2253     }
2254 
get_property_pixels_below_lines_set(&self) -> bool2255     fn get_property_pixels_below_lines_set(&self) -> bool {
2256         unsafe {
2257             let mut value = Value::from_type(<bool as StaticType>::static_type());
2258             gobject_sys::g_object_get_property(
2259                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2260                 b"pixels-below-lines-set\0".as_ptr() as *const _,
2261                 value.to_glib_none_mut().0,
2262             );
2263             value
2264                 .get()
2265                 .expect("Return Value for property `pixels-below-lines-set` getter")
2266                 .unwrap()
2267         }
2268     }
2269 
set_property_pixels_below_lines_set(&self, pixels_below_lines_set: bool)2270     fn set_property_pixels_below_lines_set(&self, pixels_below_lines_set: bool) {
2271         unsafe {
2272             gobject_sys::g_object_set_property(
2273                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2274                 b"pixels-below-lines-set\0".as_ptr() as *const _,
2275                 Value::from(&pixels_below_lines_set).to_glib_none().0,
2276             );
2277         }
2278     }
2279 
get_property_pixels_inside_wrap(&self) -> i322280     fn get_property_pixels_inside_wrap(&self) -> i32 {
2281         unsafe {
2282             let mut value = Value::from_type(<i32 as StaticType>::static_type());
2283             gobject_sys::g_object_get_property(
2284                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2285                 b"pixels-inside-wrap\0".as_ptr() as *const _,
2286                 value.to_glib_none_mut().0,
2287             );
2288             value
2289                 .get()
2290                 .expect("Return Value for property `pixels-inside-wrap` getter")
2291                 .unwrap()
2292         }
2293     }
2294 
set_property_pixels_inside_wrap(&self, pixels_inside_wrap: i32)2295     fn set_property_pixels_inside_wrap(&self, pixels_inside_wrap: i32) {
2296         unsafe {
2297             gobject_sys::g_object_set_property(
2298                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2299                 b"pixels-inside-wrap\0".as_ptr() as *const _,
2300                 Value::from(&pixels_inside_wrap).to_glib_none().0,
2301             );
2302         }
2303     }
2304 
get_property_pixels_inside_wrap_set(&self) -> bool2305     fn get_property_pixels_inside_wrap_set(&self) -> bool {
2306         unsafe {
2307             let mut value = Value::from_type(<bool as StaticType>::static_type());
2308             gobject_sys::g_object_get_property(
2309                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2310                 b"pixels-inside-wrap-set\0".as_ptr() as *const _,
2311                 value.to_glib_none_mut().0,
2312             );
2313             value
2314                 .get()
2315                 .expect("Return Value for property `pixels-inside-wrap-set` getter")
2316                 .unwrap()
2317         }
2318     }
2319 
set_property_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool)2320     fn set_property_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool) {
2321         unsafe {
2322             gobject_sys::g_object_set_property(
2323                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2324                 b"pixels-inside-wrap-set\0".as_ptr() as *const _,
2325                 Value::from(&pixels_inside_wrap_set).to_glib_none().0,
2326             );
2327         }
2328     }
2329 
get_property_right_margin(&self) -> i322330     fn get_property_right_margin(&self) -> i32 {
2331         unsafe {
2332             let mut value = Value::from_type(<i32 as StaticType>::static_type());
2333             gobject_sys::g_object_get_property(
2334                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2335                 b"right-margin\0".as_ptr() as *const _,
2336                 value.to_glib_none_mut().0,
2337             );
2338             value
2339                 .get()
2340                 .expect("Return Value for property `right-margin` getter")
2341                 .unwrap()
2342         }
2343     }
2344 
set_property_right_margin(&self, right_margin: i32)2345     fn set_property_right_margin(&self, right_margin: i32) {
2346         unsafe {
2347             gobject_sys::g_object_set_property(
2348                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2349                 b"right-margin\0".as_ptr() as *const _,
2350                 Value::from(&right_margin).to_glib_none().0,
2351             );
2352         }
2353     }
2354 
get_property_right_margin_set(&self) -> bool2355     fn get_property_right_margin_set(&self) -> bool {
2356         unsafe {
2357             let mut value = Value::from_type(<bool as StaticType>::static_type());
2358             gobject_sys::g_object_get_property(
2359                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2360                 b"right-margin-set\0".as_ptr() as *const _,
2361                 value.to_glib_none_mut().0,
2362             );
2363             value
2364                 .get()
2365                 .expect("Return Value for property `right-margin-set` getter")
2366                 .unwrap()
2367         }
2368     }
2369 
set_property_right_margin_set(&self, right_margin_set: bool)2370     fn set_property_right_margin_set(&self, right_margin_set: bool) {
2371         unsafe {
2372             gobject_sys::g_object_set_property(
2373                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2374                 b"right-margin-set\0".as_ptr() as *const _,
2375                 Value::from(&right_margin_set).to_glib_none().0,
2376             );
2377         }
2378     }
2379 
get_property_rise(&self) -> i322380     fn get_property_rise(&self) -> i32 {
2381         unsafe {
2382             let mut value = Value::from_type(<i32 as StaticType>::static_type());
2383             gobject_sys::g_object_get_property(
2384                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2385                 b"rise\0".as_ptr() as *const _,
2386                 value.to_glib_none_mut().0,
2387             );
2388             value
2389                 .get()
2390                 .expect("Return Value for property `rise` getter")
2391                 .unwrap()
2392         }
2393     }
2394 
set_property_rise(&self, rise: i32)2395     fn set_property_rise(&self, rise: i32) {
2396         unsafe {
2397             gobject_sys::g_object_set_property(
2398                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2399                 b"rise\0".as_ptr() as *const _,
2400                 Value::from(&rise).to_glib_none().0,
2401             );
2402         }
2403     }
2404 
get_property_rise_set(&self) -> bool2405     fn get_property_rise_set(&self) -> bool {
2406         unsafe {
2407             let mut value = Value::from_type(<bool as StaticType>::static_type());
2408             gobject_sys::g_object_get_property(
2409                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2410                 b"rise-set\0".as_ptr() as *const _,
2411                 value.to_glib_none_mut().0,
2412             );
2413             value
2414                 .get()
2415                 .expect("Return Value for property `rise-set` getter")
2416                 .unwrap()
2417         }
2418     }
2419 
set_property_rise_set(&self, rise_set: bool)2420     fn set_property_rise_set(&self, rise_set: bool) {
2421         unsafe {
2422             gobject_sys::g_object_set_property(
2423                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2424                 b"rise-set\0".as_ptr() as *const _,
2425                 Value::from(&rise_set).to_glib_none().0,
2426             );
2427         }
2428     }
2429 
get_property_scale(&self) -> f642430     fn get_property_scale(&self) -> f64 {
2431         unsafe {
2432             let mut value = Value::from_type(<f64 as StaticType>::static_type());
2433             gobject_sys::g_object_get_property(
2434                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2435                 b"scale\0".as_ptr() as *const _,
2436                 value.to_glib_none_mut().0,
2437             );
2438             value
2439                 .get()
2440                 .expect("Return Value for property `scale` getter")
2441                 .unwrap()
2442         }
2443     }
2444 
set_property_scale(&self, scale: f64)2445     fn set_property_scale(&self, scale: f64) {
2446         unsafe {
2447             gobject_sys::g_object_set_property(
2448                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2449                 b"scale\0".as_ptr() as *const _,
2450                 Value::from(&scale).to_glib_none().0,
2451             );
2452         }
2453     }
2454 
get_property_scale_set(&self) -> bool2455     fn get_property_scale_set(&self) -> bool {
2456         unsafe {
2457             let mut value = Value::from_type(<bool as StaticType>::static_type());
2458             gobject_sys::g_object_get_property(
2459                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2460                 b"scale-set\0".as_ptr() as *const _,
2461                 value.to_glib_none_mut().0,
2462             );
2463             value
2464                 .get()
2465                 .expect("Return Value for property `scale-set` getter")
2466                 .unwrap()
2467         }
2468     }
2469 
set_property_scale_set(&self, scale_set: bool)2470     fn set_property_scale_set(&self, scale_set: bool) {
2471         unsafe {
2472             gobject_sys::g_object_set_property(
2473                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2474                 b"scale-set\0".as_ptr() as *const _,
2475                 Value::from(&scale_set).to_glib_none().0,
2476             );
2477         }
2478     }
2479 
get_property_size(&self) -> i322480     fn get_property_size(&self) -> i32 {
2481         unsafe {
2482             let mut value = Value::from_type(<i32 as StaticType>::static_type());
2483             gobject_sys::g_object_get_property(
2484                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2485                 b"size\0".as_ptr() as *const _,
2486                 value.to_glib_none_mut().0,
2487             );
2488             value
2489                 .get()
2490                 .expect("Return Value for property `size` getter")
2491                 .unwrap()
2492         }
2493     }
2494 
set_property_size(&self, size: i32)2495     fn set_property_size(&self, size: i32) {
2496         unsafe {
2497             gobject_sys::g_object_set_property(
2498                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2499                 b"size\0".as_ptr() as *const _,
2500                 Value::from(&size).to_glib_none().0,
2501             );
2502         }
2503     }
2504 
get_property_size_points(&self) -> f642505     fn get_property_size_points(&self) -> f64 {
2506         unsafe {
2507             let mut value = Value::from_type(<f64 as StaticType>::static_type());
2508             gobject_sys::g_object_get_property(
2509                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2510                 b"size-points\0".as_ptr() as *const _,
2511                 value.to_glib_none_mut().0,
2512             );
2513             value
2514                 .get()
2515                 .expect("Return Value for property `size-points` getter")
2516                 .unwrap()
2517         }
2518     }
2519 
set_property_size_points(&self, size_points: f64)2520     fn set_property_size_points(&self, size_points: f64) {
2521         unsafe {
2522             gobject_sys::g_object_set_property(
2523                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2524                 b"size-points\0".as_ptr() as *const _,
2525                 Value::from(&size_points).to_glib_none().0,
2526             );
2527         }
2528     }
2529 
get_property_size_set(&self) -> bool2530     fn get_property_size_set(&self) -> bool {
2531         unsafe {
2532             let mut value = Value::from_type(<bool as StaticType>::static_type());
2533             gobject_sys::g_object_get_property(
2534                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2535                 b"size-set\0".as_ptr() as *const _,
2536                 value.to_glib_none_mut().0,
2537             );
2538             value
2539                 .get()
2540                 .expect("Return Value for property `size-set` getter")
2541                 .unwrap()
2542         }
2543     }
2544 
set_property_size_set(&self, size_set: bool)2545     fn set_property_size_set(&self, size_set: bool) {
2546         unsafe {
2547             gobject_sys::g_object_set_property(
2548                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2549                 b"size-set\0".as_ptr() as *const _,
2550                 Value::from(&size_set).to_glib_none().0,
2551             );
2552         }
2553     }
2554 
get_property_stretch(&self) -> pango::Stretch2555     fn get_property_stretch(&self) -> pango::Stretch {
2556         unsafe {
2557             let mut value = Value::from_type(<pango::Stretch as StaticType>::static_type());
2558             gobject_sys::g_object_get_property(
2559                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2560                 b"stretch\0".as_ptr() as *const _,
2561                 value.to_glib_none_mut().0,
2562             );
2563             value
2564                 .get()
2565                 .expect("Return Value for property `stretch` getter")
2566                 .unwrap()
2567         }
2568     }
2569 
set_property_stretch(&self, stretch: pango::Stretch)2570     fn set_property_stretch(&self, stretch: pango::Stretch) {
2571         unsafe {
2572             gobject_sys::g_object_set_property(
2573                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2574                 b"stretch\0".as_ptr() as *const _,
2575                 Value::from(&stretch).to_glib_none().0,
2576             );
2577         }
2578     }
2579 
get_property_stretch_set(&self) -> bool2580     fn get_property_stretch_set(&self) -> bool {
2581         unsafe {
2582             let mut value = Value::from_type(<bool as StaticType>::static_type());
2583             gobject_sys::g_object_get_property(
2584                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2585                 b"stretch-set\0".as_ptr() as *const _,
2586                 value.to_glib_none_mut().0,
2587             );
2588             value
2589                 .get()
2590                 .expect("Return Value for property `stretch-set` getter")
2591                 .unwrap()
2592         }
2593     }
2594 
set_property_stretch_set(&self, stretch_set: bool)2595     fn set_property_stretch_set(&self, stretch_set: bool) {
2596         unsafe {
2597             gobject_sys::g_object_set_property(
2598                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2599                 b"stretch-set\0".as_ptr() as *const _,
2600                 Value::from(&stretch_set).to_glib_none().0,
2601             );
2602         }
2603     }
2604 
get_property_strikethrough(&self) -> bool2605     fn get_property_strikethrough(&self) -> bool {
2606         unsafe {
2607             let mut value = Value::from_type(<bool as StaticType>::static_type());
2608             gobject_sys::g_object_get_property(
2609                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2610                 b"strikethrough\0".as_ptr() as *const _,
2611                 value.to_glib_none_mut().0,
2612             );
2613             value
2614                 .get()
2615                 .expect("Return Value for property `strikethrough` getter")
2616                 .unwrap()
2617         }
2618     }
2619 
set_property_strikethrough(&self, strikethrough: bool)2620     fn set_property_strikethrough(&self, strikethrough: bool) {
2621         unsafe {
2622             gobject_sys::g_object_set_property(
2623                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2624                 b"strikethrough\0".as_ptr() as *const _,
2625                 Value::from(&strikethrough).to_glib_none().0,
2626             );
2627         }
2628     }
2629 
2630     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_strikethrough_rgba(&self) -> Option<gdk::RGBA>2631     fn get_property_strikethrough_rgba(&self) -> Option<gdk::RGBA> {
2632         unsafe {
2633             let mut value = Value::from_type(<gdk::RGBA as StaticType>::static_type());
2634             gobject_sys::g_object_get_property(
2635                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2636                 b"strikethrough-rgba\0".as_ptr() as *const _,
2637                 value.to_glib_none_mut().0,
2638             );
2639             value
2640                 .get()
2641                 .expect("Return Value for property `strikethrough-rgba` getter")
2642         }
2643     }
2644 
2645     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_strikethrough_rgba(&self, strikethrough_rgba: Option<&gdk::RGBA>)2646     fn set_property_strikethrough_rgba(&self, strikethrough_rgba: Option<&gdk::RGBA>) {
2647         unsafe {
2648             gobject_sys::g_object_set_property(
2649                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2650                 b"strikethrough-rgba\0".as_ptr() as *const _,
2651                 Value::from(strikethrough_rgba).to_glib_none().0,
2652             );
2653         }
2654     }
2655 
2656     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_strikethrough_rgba_set(&self) -> bool2657     fn get_property_strikethrough_rgba_set(&self) -> bool {
2658         unsafe {
2659             let mut value = Value::from_type(<bool as StaticType>::static_type());
2660             gobject_sys::g_object_get_property(
2661                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2662                 b"strikethrough-rgba-set\0".as_ptr() as *const _,
2663                 value.to_glib_none_mut().0,
2664             );
2665             value
2666                 .get()
2667                 .expect("Return Value for property `strikethrough-rgba-set` getter")
2668                 .unwrap()
2669         }
2670     }
2671 
2672     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool)2673     fn set_property_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool) {
2674         unsafe {
2675             gobject_sys::g_object_set_property(
2676                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2677                 b"strikethrough-rgba-set\0".as_ptr() as *const _,
2678                 Value::from(&strikethrough_rgba_set).to_glib_none().0,
2679             );
2680         }
2681     }
2682 
get_property_strikethrough_set(&self) -> bool2683     fn get_property_strikethrough_set(&self) -> bool {
2684         unsafe {
2685             let mut value = Value::from_type(<bool as StaticType>::static_type());
2686             gobject_sys::g_object_get_property(
2687                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2688                 b"strikethrough-set\0".as_ptr() as *const _,
2689                 value.to_glib_none_mut().0,
2690             );
2691             value
2692                 .get()
2693                 .expect("Return Value for property `strikethrough-set` getter")
2694                 .unwrap()
2695         }
2696     }
2697 
set_property_strikethrough_set(&self, strikethrough_set: bool)2698     fn set_property_strikethrough_set(&self, strikethrough_set: bool) {
2699         unsafe {
2700             gobject_sys::g_object_set_property(
2701                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2702                 b"strikethrough-set\0".as_ptr() as *const _,
2703                 Value::from(&strikethrough_set).to_glib_none().0,
2704             );
2705         }
2706     }
2707 
get_property_style(&self) -> pango::Style2708     fn get_property_style(&self) -> pango::Style {
2709         unsafe {
2710             let mut value = Value::from_type(<pango::Style as StaticType>::static_type());
2711             gobject_sys::g_object_get_property(
2712                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2713                 b"style\0".as_ptr() as *const _,
2714                 value.to_glib_none_mut().0,
2715             );
2716             value
2717                 .get()
2718                 .expect("Return Value for property `style` getter")
2719                 .unwrap()
2720         }
2721     }
2722 
set_property_style(&self, style: pango::Style)2723     fn set_property_style(&self, style: pango::Style) {
2724         unsafe {
2725             gobject_sys::g_object_set_property(
2726                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2727                 b"style\0".as_ptr() as *const _,
2728                 Value::from(&style).to_glib_none().0,
2729             );
2730         }
2731     }
2732 
get_property_style_set(&self) -> bool2733     fn get_property_style_set(&self) -> bool {
2734         unsafe {
2735             let mut value = Value::from_type(<bool as StaticType>::static_type());
2736             gobject_sys::g_object_get_property(
2737                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2738                 b"style-set\0".as_ptr() as *const _,
2739                 value.to_glib_none_mut().0,
2740             );
2741             value
2742                 .get()
2743                 .expect("Return Value for property `style-set` getter")
2744                 .unwrap()
2745         }
2746     }
2747 
set_property_style_set(&self, style_set: bool)2748     fn set_property_style_set(&self, style_set: bool) {
2749         unsafe {
2750             gobject_sys::g_object_set_property(
2751                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2752                 b"style-set\0".as_ptr() as *const _,
2753                 Value::from(&style_set).to_glib_none().0,
2754             );
2755         }
2756     }
2757 
get_property_tabs(&self) -> Option<pango::TabArray>2758     fn get_property_tabs(&self) -> Option<pango::TabArray> {
2759         unsafe {
2760             let mut value = Value::from_type(<pango::TabArray as StaticType>::static_type());
2761             gobject_sys::g_object_get_property(
2762                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2763                 b"tabs\0".as_ptr() as *const _,
2764                 value.to_glib_none_mut().0,
2765             );
2766             value
2767                 .get()
2768                 .expect("Return Value for property `tabs` getter")
2769         }
2770     }
2771 
set_property_tabs(&self, tabs: Option<&pango::TabArray>)2772     fn set_property_tabs(&self, tabs: Option<&pango::TabArray>) {
2773         unsafe {
2774             gobject_sys::g_object_set_property(
2775                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2776                 b"tabs\0".as_ptr() as *const _,
2777                 Value::from(tabs).to_glib_none().0,
2778             );
2779         }
2780     }
2781 
get_property_tabs_set(&self) -> bool2782     fn get_property_tabs_set(&self) -> bool {
2783         unsafe {
2784             let mut value = Value::from_type(<bool as StaticType>::static_type());
2785             gobject_sys::g_object_get_property(
2786                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2787                 b"tabs-set\0".as_ptr() as *const _,
2788                 value.to_glib_none_mut().0,
2789             );
2790             value
2791                 .get()
2792                 .expect("Return Value for property `tabs-set` getter")
2793                 .unwrap()
2794         }
2795     }
2796 
set_property_tabs_set(&self, tabs_set: bool)2797     fn set_property_tabs_set(&self, tabs_set: bool) {
2798         unsafe {
2799             gobject_sys::g_object_set_property(
2800                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2801                 b"tabs-set\0".as_ptr() as *const _,
2802                 Value::from(&tabs_set).to_glib_none().0,
2803             );
2804         }
2805     }
2806 
get_property_underline(&self) -> pango::Underline2807     fn get_property_underline(&self) -> pango::Underline {
2808         unsafe {
2809             let mut value = Value::from_type(<pango::Underline as StaticType>::static_type());
2810             gobject_sys::g_object_get_property(
2811                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2812                 b"underline\0".as_ptr() as *const _,
2813                 value.to_glib_none_mut().0,
2814             );
2815             value
2816                 .get()
2817                 .expect("Return Value for property `underline` getter")
2818                 .unwrap()
2819         }
2820     }
2821 
set_property_underline(&self, underline: pango::Underline)2822     fn set_property_underline(&self, underline: pango::Underline) {
2823         unsafe {
2824             gobject_sys::g_object_set_property(
2825                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2826                 b"underline\0".as_ptr() as *const _,
2827                 Value::from(&underline).to_glib_none().0,
2828             );
2829         }
2830     }
2831 
2832     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_underline_rgba(&self) -> Option<gdk::RGBA>2833     fn get_property_underline_rgba(&self) -> Option<gdk::RGBA> {
2834         unsafe {
2835             let mut value = Value::from_type(<gdk::RGBA as StaticType>::static_type());
2836             gobject_sys::g_object_get_property(
2837                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2838                 b"underline-rgba\0".as_ptr() as *const _,
2839                 value.to_glib_none_mut().0,
2840             );
2841             value
2842                 .get()
2843                 .expect("Return Value for property `underline-rgba` getter")
2844         }
2845     }
2846 
2847     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_underline_rgba(&self, underline_rgba: Option<&gdk::RGBA>)2848     fn set_property_underline_rgba(&self, underline_rgba: Option<&gdk::RGBA>) {
2849         unsafe {
2850             gobject_sys::g_object_set_property(
2851                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2852                 b"underline-rgba\0".as_ptr() as *const _,
2853                 Value::from(underline_rgba).to_glib_none().0,
2854             );
2855         }
2856     }
2857 
2858     #[cfg(any(feature = "v3_16", feature = "dox"))]
get_property_underline_rgba_set(&self) -> bool2859     fn get_property_underline_rgba_set(&self) -> bool {
2860         unsafe {
2861             let mut value = Value::from_type(<bool as StaticType>::static_type());
2862             gobject_sys::g_object_get_property(
2863                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2864                 b"underline-rgba-set\0".as_ptr() as *const _,
2865                 value.to_glib_none_mut().0,
2866             );
2867             value
2868                 .get()
2869                 .expect("Return Value for property `underline-rgba-set` getter")
2870                 .unwrap()
2871         }
2872     }
2873 
2874     #[cfg(any(feature = "v3_16", feature = "dox"))]
set_property_underline_rgba_set(&self, underline_rgba_set: bool)2875     fn set_property_underline_rgba_set(&self, underline_rgba_set: bool) {
2876         unsafe {
2877             gobject_sys::g_object_set_property(
2878                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2879                 b"underline-rgba-set\0".as_ptr() as *const _,
2880                 Value::from(&underline_rgba_set).to_glib_none().0,
2881             );
2882         }
2883     }
2884 
get_property_underline_set(&self) -> bool2885     fn get_property_underline_set(&self) -> bool {
2886         unsafe {
2887             let mut value = Value::from_type(<bool as StaticType>::static_type());
2888             gobject_sys::g_object_get_property(
2889                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2890                 b"underline-set\0".as_ptr() as *const _,
2891                 value.to_glib_none_mut().0,
2892             );
2893             value
2894                 .get()
2895                 .expect("Return Value for property `underline-set` getter")
2896                 .unwrap()
2897         }
2898     }
2899 
set_property_underline_set(&self, underline_set: bool)2900     fn set_property_underline_set(&self, underline_set: bool) {
2901         unsafe {
2902             gobject_sys::g_object_set_property(
2903                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2904                 b"underline-set\0".as_ptr() as *const _,
2905                 Value::from(&underline_set).to_glib_none().0,
2906             );
2907         }
2908     }
2909 
get_property_variant(&self) -> pango::Variant2910     fn get_property_variant(&self) -> pango::Variant {
2911         unsafe {
2912             let mut value = Value::from_type(<pango::Variant as StaticType>::static_type());
2913             gobject_sys::g_object_get_property(
2914                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2915                 b"variant\0".as_ptr() as *const _,
2916                 value.to_glib_none_mut().0,
2917             );
2918             value
2919                 .get()
2920                 .expect("Return Value for property `variant` getter")
2921                 .unwrap()
2922         }
2923     }
2924 
set_property_variant(&self, variant: pango::Variant)2925     fn set_property_variant(&self, variant: pango::Variant) {
2926         unsafe {
2927             gobject_sys::g_object_set_property(
2928                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2929                 b"variant\0".as_ptr() as *const _,
2930                 Value::from(&variant).to_glib_none().0,
2931             );
2932         }
2933     }
2934 
get_property_variant_set(&self) -> bool2935     fn get_property_variant_set(&self) -> bool {
2936         unsafe {
2937             let mut value = Value::from_type(<bool as StaticType>::static_type());
2938             gobject_sys::g_object_get_property(
2939                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2940                 b"variant-set\0".as_ptr() as *const _,
2941                 value.to_glib_none_mut().0,
2942             );
2943             value
2944                 .get()
2945                 .expect("Return Value for property `variant-set` getter")
2946                 .unwrap()
2947         }
2948     }
2949 
set_property_variant_set(&self, variant_set: bool)2950     fn set_property_variant_set(&self, variant_set: bool) {
2951         unsafe {
2952             gobject_sys::g_object_set_property(
2953                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2954                 b"variant-set\0".as_ptr() as *const _,
2955                 Value::from(&variant_set).to_glib_none().0,
2956             );
2957         }
2958     }
2959 
get_property_weight(&self) -> i322960     fn get_property_weight(&self) -> i32 {
2961         unsafe {
2962             let mut value = Value::from_type(<i32 as StaticType>::static_type());
2963             gobject_sys::g_object_get_property(
2964                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2965                 b"weight\0".as_ptr() as *const _,
2966                 value.to_glib_none_mut().0,
2967             );
2968             value
2969                 .get()
2970                 .expect("Return Value for property `weight` getter")
2971                 .unwrap()
2972         }
2973     }
2974 
set_property_weight(&self, weight: i32)2975     fn set_property_weight(&self, weight: i32) {
2976         unsafe {
2977             gobject_sys::g_object_set_property(
2978                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2979                 b"weight\0".as_ptr() as *const _,
2980                 Value::from(&weight).to_glib_none().0,
2981             );
2982         }
2983     }
2984 
get_property_weight_set(&self) -> bool2985     fn get_property_weight_set(&self) -> bool {
2986         unsafe {
2987             let mut value = Value::from_type(<bool as StaticType>::static_type());
2988             gobject_sys::g_object_get_property(
2989                 self.to_glib_none().0 as *mut gobject_sys::GObject,
2990                 b"weight-set\0".as_ptr() as *const _,
2991                 value.to_glib_none_mut().0,
2992             );
2993             value
2994                 .get()
2995                 .expect("Return Value for property `weight-set` getter")
2996                 .unwrap()
2997         }
2998     }
2999 
set_property_weight_set(&self, weight_set: bool)3000     fn set_property_weight_set(&self, weight_set: bool) {
3001         unsafe {
3002             gobject_sys::g_object_set_property(
3003                 self.to_glib_none().0 as *mut gobject_sys::GObject,
3004                 b"weight-set\0".as_ptr() as *const _,
3005                 Value::from(&weight_set).to_glib_none().0,
3006             );
3007         }
3008     }
3009 
get_property_wrap_mode(&self) -> WrapMode3010     fn get_property_wrap_mode(&self) -> WrapMode {
3011         unsafe {
3012             let mut value = Value::from_type(<WrapMode as StaticType>::static_type());
3013             gobject_sys::g_object_get_property(
3014                 self.to_glib_none().0 as *mut gobject_sys::GObject,
3015                 b"wrap-mode\0".as_ptr() as *const _,
3016                 value.to_glib_none_mut().0,
3017             );
3018             value
3019                 .get()
3020                 .expect("Return Value for property `wrap-mode` getter")
3021                 .unwrap()
3022         }
3023     }
3024 
set_property_wrap_mode(&self, wrap_mode: WrapMode)3025     fn set_property_wrap_mode(&self, wrap_mode: WrapMode) {
3026         unsafe {
3027             gobject_sys::g_object_set_property(
3028                 self.to_glib_none().0 as *mut gobject_sys::GObject,
3029                 b"wrap-mode\0".as_ptr() as *const _,
3030                 Value::from(&wrap_mode).to_glib_none().0,
3031             );
3032         }
3033     }
3034 
get_property_wrap_mode_set(&self) -> bool3035     fn get_property_wrap_mode_set(&self) -> bool {
3036         unsafe {
3037             let mut value = Value::from_type(<bool as StaticType>::static_type());
3038             gobject_sys::g_object_get_property(
3039                 self.to_glib_none().0 as *mut gobject_sys::GObject,
3040                 b"wrap-mode-set\0".as_ptr() as *const _,
3041                 value.to_glib_none_mut().0,
3042             );
3043             value
3044                 .get()
3045                 .expect("Return Value for property `wrap-mode-set` getter")
3046                 .unwrap()
3047         }
3048     }
3049 
set_property_wrap_mode_set(&self, wrap_mode_set: bool)3050     fn set_property_wrap_mode_set(&self, wrap_mode_set: bool) {
3051         unsafe {
3052             gobject_sys::g_object_set_property(
3053                 self.to_glib_none().0 as *mut gobject_sys::GObject,
3054                 b"wrap-mode-set\0".as_ptr() as *const _,
3055                 Value::from(&wrap_mode_set).to_glib_none().0,
3056             );
3057         }
3058     }
3059 
connect_event< F: Fn(&Self, &glib::Object, &gdk::Event, &TextIter) -> glib::signal::Inhibit + 'static, >( &self, f: F, ) -> SignalHandlerId3060     fn connect_event<
3061         F: Fn(&Self, &glib::Object, &gdk::Event, &TextIter) -> glib::signal::Inhibit + 'static,
3062     >(
3063         &self,
3064         f: F,
3065     ) -> SignalHandlerId {
3066         unsafe extern "C" fn event_trampoline<
3067             P,
3068             F: Fn(&P, &glib::Object, &gdk::Event, &TextIter) -> glib::signal::Inhibit + 'static,
3069         >(
3070             this: *mut gtk_sys::GtkTextTag,
3071             object: *mut gobject_sys::GObject,
3072             event: *mut gdk_sys::GdkEvent,
3073             iter: *mut gtk_sys::GtkTextIter,
3074             f: glib_sys::gpointer,
3075         ) -> glib_sys::gboolean
3076         where
3077             P: IsA<TextTag>,
3078         {
3079             let f: &F = &*(f as *const F);
3080             f(
3081                 &TextTag::from_glib_borrow(this).unsafe_cast(),
3082                 &from_glib_borrow(object),
3083                 &from_glib_none(event),
3084                 &from_glib_borrow(iter),
3085             )
3086             .to_glib()
3087         }
3088         unsafe {
3089             let f: Box_<F> = Box_::new(f);
3090             connect_raw(
3091                 self.as_ptr() as *mut _,
3092                 b"event\0".as_ptr() as *const _,
3093                 Some(transmute(event_trampoline::<Self, F> as usize)),
3094                 Box_::into_raw(f),
3095             )
3096         }
3097     }
3098 
connect_property_accumulative_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3099     fn connect_property_accumulative_margin_notify<F: Fn(&Self) + 'static>(
3100         &self,
3101         f: F,
3102     ) -> SignalHandlerId {
3103         unsafe extern "C" fn notify_accumulative_margin_trampoline<P, F: Fn(&P) + 'static>(
3104             this: *mut gtk_sys::GtkTextTag,
3105             _param_spec: glib_sys::gpointer,
3106             f: glib_sys::gpointer,
3107         ) where
3108             P: IsA<TextTag>,
3109         {
3110             let f: &F = &*(f as *const F);
3111             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3112         }
3113         unsafe {
3114             let f: Box_<F> = Box_::new(f);
3115             connect_raw(
3116                 self.as_ptr() as *mut _,
3117                 b"notify::accumulative-margin\0".as_ptr() as *const _,
3118                 Some(transmute(
3119                     notify_accumulative_margin_trampoline::<Self, F> as usize,
3120                 )),
3121                 Box_::into_raw(f),
3122             )
3123         }
3124     }
3125 
connect_property_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3126     fn connect_property_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3127         unsafe extern "C" fn notify_background_trampoline<P, F: Fn(&P) + 'static>(
3128             this: *mut gtk_sys::GtkTextTag,
3129             _param_spec: glib_sys::gpointer,
3130             f: glib_sys::gpointer,
3131         ) where
3132             P: IsA<TextTag>,
3133         {
3134             let f: &F = &*(f as *const F);
3135             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3136         }
3137         unsafe {
3138             let f: Box_<F> = Box_::new(f);
3139             connect_raw(
3140                 self.as_ptr() as *mut _,
3141                 b"notify::background\0".as_ptr() as *const _,
3142                 Some(transmute(notify_background_trampoline::<Self, F> as usize)),
3143                 Box_::into_raw(f),
3144             )
3145         }
3146     }
3147 
connect_property_background_full_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3148     fn connect_property_background_full_height_notify<F: Fn(&Self) + 'static>(
3149         &self,
3150         f: F,
3151     ) -> SignalHandlerId {
3152         unsafe extern "C" fn notify_background_full_height_trampoline<P, F: Fn(&P) + 'static>(
3153             this: *mut gtk_sys::GtkTextTag,
3154             _param_spec: glib_sys::gpointer,
3155             f: glib_sys::gpointer,
3156         ) where
3157             P: IsA<TextTag>,
3158         {
3159             let f: &F = &*(f as *const F);
3160             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3161         }
3162         unsafe {
3163             let f: Box_<F> = Box_::new(f);
3164             connect_raw(
3165                 self.as_ptr() as *mut _,
3166                 b"notify::background-full-height\0".as_ptr() as *const _,
3167                 Some(transmute(
3168                     notify_background_full_height_trampoline::<Self, F> as usize,
3169                 )),
3170                 Box_::into_raw(f),
3171             )
3172         }
3173     }
3174 
connect_property_background_full_height_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3175     fn connect_property_background_full_height_set_notify<F: Fn(&Self) + 'static>(
3176         &self,
3177         f: F,
3178     ) -> SignalHandlerId {
3179         unsafe extern "C" fn notify_background_full_height_set_trampoline<P, F: Fn(&P) + 'static>(
3180             this: *mut gtk_sys::GtkTextTag,
3181             _param_spec: glib_sys::gpointer,
3182             f: glib_sys::gpointer,
3183         ) where
3184             P: IsA<TextTag>,
3185         {
3186             let f: &F = &*(f as *const F);
3187             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3188         }
3189         unsafe {
3190             let f: Box_<F> = Box_::new(f);
3191             connect_raw(
3192                 self.as_ptr() as *mut _,
3193                 b"notify::background-full-height-set\0".as_ptr() as *const _,
3194                 Some(transmute(
3195                     notify_background_full_height_set_trampoline::<Self, F> as usize,
3196                 )),
3197                 Box_::into_raw(f),
3198             )
3199         }
3200     }
3201 
connect_property_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3202     fn connect_property_background_rgba_notify<F: Fn(&Self) + 'static>(
3203         &self,
3204         f: F,
3205     ) -> SignalHandlerId {
3206         unsafe extern "C" fn notify_background_rgba_trampoline<P, F: Fn(&P) + 'static>(
3207             this: *mut gtk_sys::GtkTextTag,
3208             _param_spec: glib_sys::gpointer,
3209             f: glib_sys::gpointer,
3210         ) where
3211             P: IsA<TextTag>,
3212         {
3213             let f: &F = &*(f as *const F);
3214             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3215         }
3216         unsafe {
3217             let f: Box_<F> = Box_::new(f);
3218             connect_raw(
3219                 self.as_ptr() as *mut _,
3220                 b"notify::background-rgba\0".as_ptr() as *const _,
3221                 Some(transmute(
3222                     notify_background_rgba_trampoline::<Self, F> as usize,
3223                 )),
3224                 Box_::into_raw(f),
3225             )
3226         }
3227     }
3228 
connect_property_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3229     fn connect_property_background_set_notify<F: Fn(&Self) + 'static>(
3230         &self,
3231         f: F,
3232     ) -> SignalHandlerId {
3233         unsafe extern "C" fn notify_background_set_trampoline<P, F: Fn(&P) + 'static>(
3234             this: *mut gtk_sys::GtkTextTag,
3235             _param_spec: glib_sys::gpointer,
3236             f: glib_sys::gpointer,
3237         ) where
3238             P: IsA<TextTag>,
3239         {
3240             let f: &F = &*(f as *const F);
3241             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3242         }
3243         unsafe {
3244             let f: Box_<F> = Box_::new(f);
3245             connect_raw(
3246                 self.as_ptr() as *mut _,
3247                 b"notify::background-set\0".as_ptr() as *const _,
3248                 Some(transmute(
3249                     notify_background_set_trampoline::<Self, F> as usize,
3250                 )),
3251                 Box_::into_raw(f),
3252             )
3253         }
3254     }
3255 
connect_property_direction_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3256     fn connect_property_direction_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3257         unsafe extern "C" fn notify_direction_trampoline<P, F: Fn(&P) + 'static>(
3258             this: *mut gtk_sys::GtkTextTag,
3259             _param_spec: glib_sys::gpointer,
3260             f: glib_sys::gpointer,
3261         ) where
3262             P: IsA<TextTag>,
3263         {
3264             let f: &F = &*(f as *const F);
3265             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3266         }
3267         unsafe {
3268             let f: Box_<F> = Box_::new(f);
3269             connect_raw(
3270                 self.as_ptr() as *mut _,
3271                 b"notify::direction\0".as_ptr() as *const _,
3272                 Some(transmute(notify_direction_trampoline::<Self, F> as usize)),
3273                 Box_::into_raw(f),
3274             )
3275         }
3276     }
3277 
connect_property_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3278     fn connect_property_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3279         unsafe extern "C" fn notify_editable_trampoline<P, F: Fn(&P) + 'static>(
3280             this: *mut gtk_sys::GtkTextTag,
3281             _param_spec: glib_sys::gpointer,
3282             f: glib_sys::gpointer,
3283         ) where
3284             P: IsA<TextTag>,
3285         {
3286             let f: &F = &*(f as *const F);
3287             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3288         }
3289         unsafe {
3290             let f: Box_<F> = Box_::new(f);
3291             connect_raw(
3292                 self.as_ptr() as *mut _,
3293                 b"notify::editable\0".as_ptr() as *const _,
3294                 Some(transmute(notify_editable_trampoline::<Self, F> as usize)),
3295                 Box_::into_raw(f),
3296             )
3297         }
3298     }
3299 
connect_property_editable_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3300     fn connect_property_editable_set_notify<F: Fn(&Self) + 'static>(
3301         &self,
3302         f: F,
3303     ) -> SignalHandlerId {
3304         unsafe extern "C" fn notify_editable_set_trampoline<P, F: Fn(&P) + 'static>(
3305             this: *mut gtk_sys::GtkTextTag,
3306             _param_spec: glib_sys::gpointer,
3307             f: glib_sys::gpointer,
3308         ) where
3309             P: IsA<TextTag>,
3310         {
3311             let f: &F = &*(f as *const F);
3312             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3313         }
3314         unsafe {
3315             let f: Box_<F> = Box_::new(f);
3316             connect_raw(
3317                 self.as_ptr() as *mut _,
3318                 b"notify::editable-set\0".as_ptr() as *const _,
3319                 Some(transmute(
3320                     notify_editable_set_trampoline::<Self, F> as usize,
3321                 )),
3322                 Box_::into_raw(f),
3323             )
3324         }
3325     }
3326 
3327     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_fallback_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3328     fn connect_property_fallback_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3329         unsafe extern "C" fn notify_fallback_trampoline<P, F: Fn(&P) + 'static>(
3330             this: *mut gtk_sys::GtkTextTag,
3331             _param_spec: glib_sys::gpointer,
3332             f: glib_sys::gpointer,
3333         ) where
3334             P: IsA<TextTag>,
3335         {
3336             let f: &F = &*(f as *const F);
3337             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3338         }
3339         unsafe {
3340             let f: Box_<F> = Box_::new(f);
3341             connect_raw(
3342                 self.as_ptr() as *mut _,
3343                 b"notify::fallback\0".as_ptr() as *const _,
3344                 Some(transmute(notify_fallback_trampoline::<Self, F> as usize)),
3345                 Box_::into_raw(f),
3346             )
3347         }
3348     }
3349 
connect_property_fallback_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3350     fn connect_property_fallback_set_notify<F: Fn(&Self) + 'static>(
3351         &self,
3352         f: F,
3353     ) -> SignalHandlerId {
3354         unsafe extern "C" fn notify_fallback_set_trampoline<P, F: Fn(&P) + 'static>(
3355             this: *mut gtk_sys::GtkTextTag,
3356             _param_spec: glib_sys::gpointer,
3357             f: glib_sys::gpointer,
3358         ) where
3359             P: IsA<TextTag>,
3360         {
3361             let f: &F = &*(f as *const F);
3362             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3363         }
3364         unsafe {
3365             let f: Box_<F> = Box_::new(f);
3366             connect_raw(
3367                 self.as_ptr() as *mut _,
3368                 b"notify::fallback-set\0".as_ptr() as *const _,
3369                 Some(transmute(
3370                     notify_fallback_set_trampoline::<Self, F> as usize,
3371                 )),
3372                 Box_::into_raw(f),
3373             )
3374         }
3375     }
3376 
connect_property_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3377     fn connect_property_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3378         unsafe extern "C" fn notify_family_trampoline<P, F: Fn(&P) + 'static>(
3379             this: *mut gtk_sys::GtkTextTag,
3380             _param_spec: glib_sys::gpointer,
3381             f: glib_sys::gpointer,
3382         ) where
3383             P: IsA<TextTag>,
3384         {
3385             let f: &F = &*(f as *const F);
3386             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3387         }
3388         unsafe {
3389             let f: Box_<F> = Box_::new(f);
3390             connect_raw(
3391                 self.as_ptr() as *mut _,
3392                 b"notify::family\0".as_ptr() as *const _,
3393                 Some(transmute(notify_family_trampoline::<Self, F> as usize)),
3394                 Box_::into_raw(f),
3395             )
3396         }
3397     }
3398 
connect_property_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3399     fn connect_property_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3400         unsafe extern "C" fn notify_family_set_trampoline<P, F: Fn(&P) + 'static>(
3401             this: *mut gtk_sys::GtkTextTag,
3402             _param_spec: glib_sys::gpointer,
3403             f: glib_sys::gpointer,
3404         ) where
3405             P: IsA<TextTag>,
3406         {
3407             let f: &F = &*(f as *const F);
3408             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3409         }
3410         unsafe {
3411             let f: Box_<F> = Box_::new(f);
3412             connect_raw(
3413                 self.as_ptr() as *mut _,
3414                 b"notify::family-set\0".as_ptr() as *const _,
3415                 Some(transmute(notify_family_set_trampoline::<Self, F> as usize)),
3416                 Box_::into_raw(f),
3417             )
3418         }
3419     }
3420 
connect_property_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3421     fn connect_property_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3422         unsafe extern "C" fn notify_font_trampoline<P, F: Fn(&P) + 'static>(
3423             this: *mut gtk_sys::GtkTextTag,
3424             _param_spec: glib_sys::gpointer,
3425             f: glib_sys::gpointer,
3426         ) where
3427             P: IsA<TextTag>,
3428         {
3429             let f: &F = &*(f as *const F);
3430             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3431         }
3432         unsafe {
3433             let f: Box_<F> = Box_::new(f);
3434             connect_raw(
3435                 self.as_ptr() as *mut _,
3436                 b"notify::font\0".as_ptr() as *const _,
3437                 Some(transmute(notify_font_trampoline::<Self, F> as usize)),
3438                 Box_::into_raw(f),
3439             )
3440         }
3441     }
3442 
connect_property_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3443     fn connect_property_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3444         unsafe extern "C" fn notify_font_desc_trampoline<P, F: Fn(&P) + 'static>(
3445             this: *mut gtk_sys::GtkTextTag,
3446             _param_spec: glib_sys::gpointer,
3447             f: glib_sys::gpointer,
3448         ) where
3449             P: IsA<TextTag>,
3450         {
3451             let f: &F = &*(f as *const F);
3452             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3453         }
3454         unsafe {
3455             let f: Box_<F> = Box_::new(f);
3456             connect_raw(
3457                 self.as_ptr() as *mut _,
3458                 b"notify::font-desc\0".as_ptr() as *const _,
3459                 Some(transmute(notify_font_desc_trampoline::<Self, F> as usize)),
3460                 Box_::into_raw(f),
3461             )
3462         }
3463     }
3464 
3465     #[cfg(any(feature = "v3_18", feature = "dox"))]
connect_property_font_features_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3466     fn connect_property_font_features_notify<F: Fn(&Self) + 'static>(
3467         &self,
3468         f: F,
3469     ) -> SignalHandlerId {
3470         unsafe extern "C" fn notify_font_features_trampoline<P, F: Fn(&P) + 'static>(
3471             this: *mut gtk_sys::GtkTextTag,
3472             _param_spec: glib_sys::gpointer,
3473             f: glib_sys::gpointer,
3474         ) where
3475             P: IsA<TextTag>,
3476         {
3477             let f: &F = &*(f as *const F);
3478             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3479         }
3480         unsafe {
3481             let f: Box_<F> = Box_::new(f);
3482             connect_raw(
3483                 self.as_ptr() as *mut _,
3484                 b"notify::font-features\0".as_ptr() as *const _,
3485                 Some(transmute(
3486                     notify_font_features_trampoline::<Self, F> as usize,
3487                 )),
3488                 Box_::into_raw(f),
3489             )
3490         }
3491     }
3492 
connect_property_font_features_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3493     fn connect_property_font_features_set_notify<F: Fn(&Self) + 'static>(
3494         &self,
3495         f: F,
3496     ) -> SignalHandlerId {
3497         unsafe extern "C" fn notify_font_features_set_trampoline<P, F: Fn(&P) + 'static>(
3498             this: *mut gtk_sys::GtkTextTag,
3499             _param_spec: glib_sys::gpointer,
3500             f: glib_sys::gpointer,
3501         ) where
3502             P: IsA<TextTag>,
3503         {
3504             let f: &F = &*(f as *const F);
3505             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3506         }
3507         unsafe {
3508             let f: Box_<F> = Box_::new(f);
3509             connect_raw(
3510                 self.as_ptr() as *mut _,
3511                 b"notify::font-features-set\0".as_ptr() as *const _,
3512                 Some(transmute(
3513                     notify_font_features_set_trampoline::<Self, F> as usize,
3514                 )),
3515                 Box_::into_raw(f),
3516             )
3517         }
3518     }
3519 
connect_property_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3520     fn connect_property_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3521         unsafe extern "C" fn notify_foreground_trampoline<P, F: Fn(&P) + 'static>(
3522             this: *mut gtk_sys::GtkTextTag,
3523             _param_spec: glib_sys::gpointer,
3524             f: glib_sys::gpointer,
3525         ) where
3526             P: IsA<TextTag>,
3527         {
3528             let f: &F = &*(f as *const F);
3529             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3530         }
3531         unsafe {
3532             let f: Box_<F> = Box_::new(f);
3533             connect_raw(
3534                 self.as_ptr() as *mut _,
3535                 b"notify::foreground\0".as_ptr() as *const _,
3536                 Some(transmute(notify_foreground_trampoline::<Self, F> as usize)),
3537                 Box_::into_raw(f),
3538             )
3539         }
3540     }
3541 
connect_property_foreground_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3542     fn connect_property_foreground_rgba_notify<F: Fn(&Self) + 'static>(
3543         &self,
3544         f: F,
3545     ) -> SignalHandlerId {
3546         unsafe extern "C" fn notify_foreground_rgba_trampoline<P, F: Fn(&P) + 'static>(
3547             this: *mut gtk_sys::GtkTextTag,
3548             _param_spec: glib_sys::gpointer,
3549             f: glib_sys::gpointer,
3550         ) where
3551             P: IsA<TextTag>,
3552         {
3553             let f: &F = &*(f as *const F);
3554             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3555         }
3556         unsafe {
3557             let f: Box_<F> = Box_::new(f);
3558             connect_raw(
3559                 self.as_ptr() as *mut _,
3560                 b"notify::foreground-rgba\0".as_ptr() as *const _,
3561                 Some(transmute(
3562                     notify_foreground_rgba_trampoline::<Self, F> as usize,
3563                 )),
3564                 Box_::into_raw(f),
3565             )
3566         }
3567     }
3568 
connect_property_foreground_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3569     fn connect_property_foreground_set_notify<F: Fn(&Self) + 'static>(
3570         &self,
3571         f: F,
3572     ) -> SignalHandlerId {
3573         unsafe extern "C" fn notify_foreground_set_trampoline<P, F: Fn(&P) + 'static>(
3574             this: *mut gtk_sys::GtkTextTag,
3575             _param_spec: glib_sys::gpointer,
3576             f: glib_sys::gpointer,
3577         ) where
3578             P: IsA<TextTag>,
3579         {
3580             let f: &F = &*(f as *const F);
3581             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3582         }
3583         unsafe {
3584             let f: Box_<F> = Box_::new(f);
3585             connect_raw(
3586                 self.as_ptr() as *mut _,
3587                 b"notify::foreground-set\0".as_ptr() as *const _,
3588                 Some(transmute(
3589                     notify_foreground_set_trampoline::<Self, F> as usize,
3590                 )),
3591                 Box_::into_raw(f),
3592             )
3593         }
3594     }
3595 
connect_property_indent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3596     fn connect_property_indent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3597         unsafe extern "C" fn notify_indent_trampoline<P, F: Fn(&P) + 'static>(
3598             this: *mut gtk_sys::GtkTextTag,
3599             _param_spec: glib_sys::gpointer,
3600             f: glib_sys::gpointer,
3601         ) where
3602             P: IsA<TextTag>,
3603         {
3604             let f: &F = &*(f as *const F);
3605             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3606         }
3607         unsafe {
3608             let f: Box_<F> = Box_::new(f);
3609             connect_raw(
3610                 self.as_ptr() as *mut _,
3611                 b"notify::indent\0".as_ptr() as *const _,
3612                 Some(transmute(notify_indent_trampoline::<Self, F> as usize)),
3613                 Box_::into_raw(f),
3614             )
3615         }
3616     }
3617 
connect_property_indent_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3618     fn connect_property_indent_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3619         unsafe extern "C" fn notify_indent_set_trampoline<P, F: Fn(&P) + 'static>(
3620             this: *mut gtk_sys::GtkTextTag,
3621             _param_spec: glib_sys::gpointer,
3622             f: glib_sys::gpointer,
3623         ) where
3624             P: IsA<TextTag>,
3625         {
3626             let f: &F = &*(f as *const F);
3627             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3628         }
3629         unsafe {
3630             let f: Box_<F> = Box_::new(f);
3631             connect_raw(
3632                 self.as_ptr() as *mut _,
3633                 b"notify::indent-set\0".as_ptr() as *const _,
3634                 Some(transmute(notify_indent_set_trampoline::<Self, F> as usize)),
3635                 Box_::into_raw(f),
3636             )
3637         }
3638     }
3639 
connect_property_invisible_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3640     fn connect_property_invisible_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3641         unsafe extern "C" fn notify_invisible_trampoline<P, F: Fn(&P) + 'static>(
3642             this: *mut gtk_sys::GtkTextTag,
3643             _param_spec: glib_sys::gpointer,
3644             f: glib_sys::gpointer,
3645         ) where
3646             P: IsA<TextTag>,
3647         {
3648             let f: &F = &*(f as *const F);
3649             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3650         }
3651         unsafe {
3652             let f: Box_<F> = Box_::new(f);
3653             connect_raw(
3654                 self.as_ptr() as *mut _,
3655                 b"notify::invisible\0".as_ptr() as *const _,
3656                 Some(transmute(notify_invisible_trampoline::<Self, F> as usize)),
3657                 Box_::into_raw(f),
3658             )
3659         }
3660     }
3661 
connect_property_invisible_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3662     fn connect_property_invisible_set_notify<F: Fn(&Self) + 'static>(
3663         &self,
3664         f: F,
3665     ) -> SignalHandlerId {
3666         unsafe extern "C" fn notify_invisible_set_trampoline<P, F: Fn(&P) + 'static>(
3667             this: *mut gtk_sys::GtkTextTag,
3668             _param_spec: glib_sys::gpointer,
3669             f: glib_sys::gpointer,
3670         ) where
3671             P: IsA<TextTag>,
3672         {
3673             let f: &F = &*(f as *const F);
3674             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3675         }
3676         unsafe {
3677             let f: Box_<F> = Box_::new(f);
3678             connect_raw(
3679                 self.as_ptr() as *mut _,
3680                 b"notify::invisible-set\0".as_ptr() as *const _,
3681                 Some(transmute(
3682                     notify_invisible_set_trampoline::<Self, F> as usize,
3683                 )),
3684                 Box_::into_raw(f),
3685             )
3686         }
3687     }
3688 
connect_property_justification_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3689     fn connect_property_justification_notify<F: Fn(&Self) + 'static>(
3690         &self,
3691         f: F,
3692     ) -> SignalHandlerId {
3693         unsafe extern "C" fn notify_justification_trampoline<P, F: Fn(&P) + 'static>(
3694             this: *mut gtk_sys::GtkTextTag,
3695             _param_spec: glib_sys::gpointer,
3696             f: glib_sys::gpointer,
3697         ) where
3698             P: IsA<TextTag>,
3699         {
3700             let f: &F = &*(f as *const F);
3701             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3702         }
3703         unsafe {
3704             let f: Box_<F> = Box_::new(f);
3705             connect_raw(
3706                 self.as_ptr() as *mut _,
3707                 b"notify::justification\0".as_ptr() as *const _,
3708                 Some(transmute(
3709                     notify_justification_trampoline::<Self, F> as usize,
3710                 )),
3711                 Box_::into_raw(f),
3712             )
3713         }
3714     }
3715 
connect_property_justification_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3716     fn connect_property_justification_set_notify<F: Fn(&Self) + 'static>(
3717         &self,
3718         f: F,
3719     ) -> SignalHandlerId {
3720         unsafe extern "C" fn notify_justification_set_trampoline<P, F: Fn(&P) + 'static>(
3721             this: *mut gtk_sys::GtkTextTag,
3722             _param_spec: glib_sys::gpointer,
3723             f: glib_sys::gpointer,
3724         ) where
3725             P: IsA<TextTag>,
3726         {
3727             let f: &F = &*(f as *const F);
3728             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3729         }
3730         unsafe {
3731             let f: Box_<F> = Box_::new(f);
3732             connect_raw(
3733                 self.as_ptr() as *mut _,
3734                 b"notify::justification-set\0".as_ptr() as *const _,
3735                 Some(transmute(
3736                     notify_justification_set_trampoline::<Self, F> as usize,
3737                 )),
3738                 Box_::into_raw(f),
3739             )
3740         }
3741     }
3742 
connect_property_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3743     fn connect_property_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3744         unsafe extern "C" fn notify_language_trampoline<P, F: Fn(&P) + 'static>(
3745             this: *mut gtk_sys::GtkTextTag,
3746             _param_spec: glib_sys::gpointer,
3747             f: glib_sys::gpointer,
3748         ) where
3749             P: IsA<TextTag>,
3750         {
3751             let f: &F = &*(f as *const F);
3752             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3753         }
3754         unsafe {
3755             let f: Box_<F> = Box_::new(f);
3756             connect_raw(
3757                 self.as_ptr() as *mut _,
3758                 b"notify::language\0".as_ptr() as *const _,
3759                 Some(transmute(notify_language_trampoline::<Self, F> as usize)),
3760                 Box_::into_raw(f),
3761             )
3762         }
3763     }
3764 
connect_property_language_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3765     fn connect_property_language_set_notify<F: Fn(&Self) + 'static>(
3766         &self,
3767         f: F,
3768     ) -> SignalHandlerId {
3769         unsafe extern "C" fn notify_language_set_trampoline<P, F: Fn(&P) + 'static>(
3770             this: *mut gtk_sys::GtkTextTag,
3771             _param_spec: glib_sys::gpointer,
3772             f: glib_sys::gpointer,
3773         ) where
3774             P: IsA<TextTag>,
3775         {
3776             let f: &F = &*(f as *const F);
3777             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3778         }
3779         unsafe {
3780             let f: Box_<F> = Box_::new(f);
3781             connect_raw(
3782                 self.as_ptr() as *mut _,
3783                 b"notify::language-set\0".as_ptr() as *const _,
3784                 Some(transmute(
3785                     notify_language_set_trampoline::<Self, F> as usize,
3786                 )),
3787                 Box_::into_raw(f),
3788             )
3789         }
3790     }
3791 
connect_property_left_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3792     fn connect_property_left_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
3793         unsafe extern "C" fn notify_left_margin_trampoline<P, F: Fn(&P) + 'static>(
3794             this: *mut gtk_sys::GtkTextTag,
3795             _param_spec: glib_sys::gpointer,
3796             f: glib_sys::gpointer,
3797         ) where
3798             P: IsA<TextTag>,
3799         {
3800             let f: &F = &*(f as *const F);
3801             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3802         }
3803         unsafe {
3804             let f: Box_<F> = Box_::new(f);
3805             connect_raw(
3806                 self.as_ptr() as *mut _,
3807                 b"notify::left-margin\0".as_ptr() as *const _,
3808                 Some(transmute(notify_left_margin_trampoline::<Self, F> as usize)),
3809                 Box_::into_raw(f),
3810             )
3811         }
3812     }
3813 
connect_property_left_margin_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3814     fn connect_property_left_margin_set_notify<F: Fn(&Self) + 'static>(
3815         &self,
3816         f: F,
3817     ) -> SignalHandlerId {
3818         unsafe extern "C" fn notify_left_margin_set_trampoline<P, F: Fn(&P) + 'static>(
3819             this: *mut gtk_sys::GtkTextTag,
3820             _param_spec: glib_sys::gpointer,
3821             f: glib_sys::gpointer,
3822         ) where
3823             P: IsA<TextTag>,
3824         {
3825             let f: &F = &*(f as *const F);
3826             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3827         }
3828         unsafe {
3829             let f: Box_<F> = Box_::new(f);
3830             connect_raw(
3831                 self.as_ptr() as *mut _,
3832                 b"notify::left-margin-set\0".as_ptr() as *const _,
3833                 Some(transmute(
3834                     notify_left_margin_set_trampoline::<Self, F> as usize,
3835                 )),
3836                 Box_::into_raw(f),
3837             )
3838         }
3839     }
3840 
3841     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_letter_spacing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3842     fn connect_property_letter_spacing_notify<F: Fn(&Self) + 'static>(
3843         &self,
3844         f: F,
3845     ) -> SignalHandlerId {
3846         unsafe extern "C" fn notify_letter_spacing_trampoline<P, F: Fn(&P) + 'static>(
3847             this: *mut gtk_sys::GtkTextTag,
3848             _param_spec: glib_sys::gpointer,
3849             f: glib_sys::gpointer,
3850         ) where
3851             P: IsA<TextTag>,
3852         {
3853             let f: &F = &*(f as *const F);
3854             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3855         }
3856         unsafe {
3857             let f: Box_<F> = Box_::new(f);
3858             connect_raw(
3859                 self.as_ptr() as *mut _,
3860                 b"notify::letter-spacing\0".as_ptr() as *const _,
3861                 Some(transmute(
3862                     notify_letter_spacing_trampoline::<Self, F> as usize,
3863                 )),
3864                 Box_::into_raw(f),
3865             )
3866         }
3867     }
3868 
connect_property_letter_spacing_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3869     fn connect_property_letter_spacing_set_notify<F: Fn(&Self) + 'static>(
3870         &self,
3871         f: F,
3872     ) -> SignalHandlerId {
3873         unsafe extern "C" fn notify_letter_spacing_set_trampoline<P, F: Fn(&P) + 'static>(
3874             this: *mut gtk_sys::GtkTextTag,
3875             _param_spec: glib_sys::gpointer,
3876             f: glib_sys::gpointer,
3877         ) where
3878             P: IsA<TextTag>,
3879         {
3880             let f: &F = &*(f as *const F);
3881             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3882         }
3883         unsafe {
3884             let f: Box_<F> = Box_::new(f);
3885             connect_raw(
3886                 self.as_ptr() as *mut _,
3887                 b"notify::letter-spacing-set\0".as_ptr() as *const _,
3888                 Some(transmute(
3889                     notify_letter_spacing_set_trampoline::<Self, F> as usize,
3890                 )),
3891                 Box_::into_raw(f),
3892             )
3893         }
3894     }
3895 
connect_property_paragraph_background_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3896     fn connect_property_paragraph_background_notify<F: Fn(&Self) + 'static>(
3897         &self,
3898         f: F,
3899     ) -> SignalHandlerId {
3900         unsafe extern "C" fn notify_paragraph_background_trampoline<P, F: Fn(&P) + 'static>(
3901             this: *mut gtk_sys::GtkTextTag,
3902             _param_spec: glib_sys::gpointer,
3903             f: glib_sys::gpointer,
3904         ) where
3905             P: IsA<TextTag>,
3906         {
3907             let f: &F = &*(f as *const F);
3908             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3909         }
3910         unsafe {
3911             let f: Box_<F> = Box_::new(f);
3912             connect_raw(
3913                 self.as_ptr() as *mut _,
3914                 b"notify::paragraph-background\0".as_ptr() as *const _,
3915                 Some(transmute(
3916                     notify_paragraph_background_trampoline::<Self, F> as usize,
3917                 )),
3918                 Box_::into_raw(f),
3919             )
3920         }
3921     }
3922 
connect_property_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3923     fn connect_property_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>(
3924         &self,
3925         f: F,
3926     ) -> SignalHandlerId {
3927         unsafe extern "C" fn notify_paragraph_background_rgba_trampoline<P, F: Fn(&P) + 'static>(
3928             this: *mut gtk_sys::GtkTextTag,
3929             _param_spec: glib_sys::gpointer,
3930             f: glib_sys::gpointer,
3931         ) where
3932             P: IsA<TextTag>,
3933         {
3934             let f: &F = &*(f as *const F);
3935             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3936         }
3937         unsafe {
3938             let f: Box_<F> = Box_::new(f);
3939             connect_raw(
3940                 self.as_ptr() as *mut _,
3941                 b"notify::paragraph-background-rgba\0".as_ptr() as *const _,
3942                 Some(transmute(
3943                     notify_paragraph_background_rgba_trampoline::<Self, F> as usize,
3944                 )),
3945                 Box_::into_raw(f),
3946             )
3947         }
3948     }
3949 
connect_property_paragraph_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3950     fn connect_property_paragraph_background_set_notify<F: Fn(&Self) + 'static>(
3951         &self,
3952         f: F,
3953     ) -> SignalHandlerId {
3954         unsafe extern "C" fn notify_paragraph_background_set_trampoline<P, F: Fn(&P) + 'static>(
3955             this: *mut gtk_sys::GtkTextTag,
3956             _param_spec: glib_sys::gpointer,
3957             f: glib_sys::gpointer,
3958         ) where
3959             P: IsA<TextTag>,
3960         {
3961             let f: &F = &*(f as *const F);
3962             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3963         }
3964         unsafe {
3965             let f: Box_<F> = Box_::new(f);
3966             connect_raw(
3967                 self.as_ptr() as *mut _,
3968                 b"notify::paragraph-background-set\0".as_ptr() as *const _,
3969                 Some(transmute(
3970                     notify_paragraph_background_set_trampoline::<Self, F> as usize,
3971                 )),
3972                 Box_::into_raw(f),
3973             )
3974         }
3975     }
3976 
connect_property_pixels_above_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3977     fn connect_property_pixels_above_lines_notify<F: Fn(&Self) + 'static>(
3978         &self,
3979         f: F,
3980     ) -> SignalHandlerId {
3981         unsafe extern "C" fn notify_pixels_above_lines_trampoline<P, F: Fn(&P) + 'static>(
3982             this: *mut gtk_sys::GtkTextTag,
3983             _param_spec: glib_sys::gpointer,
3984             f: glib_sys::gpointer,
3985         ) where
3986             P: IsA<TextTag>,
3987         {
3988             let f: &F = &*(f as *const F);
3989             f(&TextTag::from_glib_borrow(this).unsafe_cast())
3990         }
3991         unsafe {
3992             let f: Box_<F> = Box_::new(f);
3993             connect_raw(
3994                 self.as_ptr() as *mut _,
3995                 b"notify::pixels-above-lines\0".as_ptr() as *const _,
3996                 Some(transmute(
3997                     notify_pixels_above_lines_trampoline::<Self, F> as usize,
3998                 )),
3999                 Box_::into_raw(f),
4000             )
4001         }
4002     }
4003 
connect_property_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4004     fn connect_property_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>(
4005         &self,
4006         f: F,
4007     ) -> SignalHandlerId {
4008         unsafe extern "C" fn notify_pixels_above_lines_set_trampoline<P, F: Fn(&P) + 'static>(
4009             this: *mut gtk_sys::GtkTextTag,
4010             _param_spec: glib_sys::gpointer,
4011             f: glib_sys::gpointer,
4012         ) where
4013             P: IsA<TextTag>,
4014         {
4015             let f: &F = &*(f as *const F);
4016             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4017         }
4018         unsafe {
4019             let f: Box_<F> = Box_::new(f);
4020             connect_raw(
4021                 self.as_ptr() as *mut _,
4022                 b"notify::pixels-above-lines-set\0".as_ptr() as *const _,
4023                 Some(transmute(
4024                     notify_pixels_above_lines_set_trampoline::<Self, F> as usize,
4025                 )),
4026                 Box_::into_raw(f),
4027             )
4028         }
4029     }
4030 
connect_property_pixels_below_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4031     fn connect_property_pixels_below_lines_notify<F: Fn(&Self) + 'static>(
4032         &self,
4033         f: F,
4034     ) -> SignalHandlerId {
4035         unsafe extern "C" fn notify_pixels_below_lines_trampoline<P, F: Fn(&P) + 'static>(
4036             this: *mut gtk_sys::GtkTextTag,
4037             _param_spec: glib_sys::gpointer,
4038             f: glib_sys::gpointer,
4039         ) where
4040             P: IsA<TextTag>,
4041         {
4042             let f: &F = &*(f as *const F);
4043             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4044         }
4045         unsafe {
4046             let f: Box_<F> = Box_::new(f);
4047             connect_raw(
4048                 self.as_ptr() as *mut _,
4049                 b"notify::pixels-below-lines\0".as_ptr() as *const _,
4050                 Some(transmute(
4051                     notify_pixels_below_lines_trampoline::<Self, F> as usize,
4052                 )),
4053                 Box_::into_raw(f),
4054             )
4055         }
4056     }
4057 
connect_property_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4058     fn connect_property_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>(
4059         &self,
4060         f: F,
4061     ) -> SignalHandlerId {
4062         unsafe extern "C" fn notify_pixels_below_lines_set_trampoline<P, F: Fn(&P) + 'static>(
4063             this: *mut gtk_sys::GtkTextTag,
4064             _param_spec: glib_sys::gpointer,
4065             f: glib_sys::gpointer,
4066         ) where
4067             P: IsA<TextTag>,
4068         {
4069             let f: &F = &*(f as *const F);
4070             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4071         }
4072         unsafe {
4073             let f: Box_<F> = Box_::new(f);
4074             connect_raw(
4075                 self.as_ptr() as *mut _,
4076                 b"notify::pixels-below-lines-set\0".as_ptr() as *const _,
4077                 Some(transmute(
4078                     notify_pixels_below_lines_set_trampoline::<Self, F> as usize,
4079                 )),
4080                 Box_::into_raw(f),
4081             )
4082         }
4083     }
4084 
connect_property_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4085     fn connect_property_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>(
4086         &self,
4087         f: F,
4088     ) -> SignalHandlerId {
4089         unsafe extern "C" fn notify_pixels_inside_wrap_trampoline<P, F: Fn(&P) + 'static>(
4090             this: *mut gtk_sys::GtkTextTag,
4091             _param_spec: glib_sys::gpointer,
4092             f: glib_sys::gpointer,
4093         ) where
4094             P: IsA<TextTag>,
4095         {
4096             let f: &F = &*(f as *const F);
4097             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4098         }
4099         unsafe {
4100             let f: Box_<F> = Box_::new(f);
4101             connect_raw(
4102                 self.as_ptr() as *mut _,
4103                 b"notify::pixels-inside-wrap\0".as_ptr() as *const _,
4104                 Some(transmute(
4105                     notify_pixels_inside_wrap_trampoline::<Self, F> as usize,
4106                 )),
4107                 Box_::into_raw(f),
4108             )
4109         }
4110     }
4111 
connect_property_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4112     fn connect_property_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>(
4113         &self,
4114         f: F,
4115     ) -> SignalHandlerId {
4116         unsafe extern "C" fn notify_pixels_inside_wrap_set_trampoline<P, F: Fn(&P) + 'static>(
4117             this: *mut gtk_sys::GtkTextTag,
4118             _param_spec: glib_sys::gpointer,
4119             f: glib_sys::gpointer,
4120         ) where
4121             P: IsA<TextTag>,
4122         {
4123             let f: &F = &*(f as *const F);
4124             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4125         }
4126         unsafe {
4127             let f: Box_<F> = Box_::new(f);
4128             connect_raw(
4129                 self.as_ptr() as *mut _,
4130                 b"notify::pixels-inside-wrap-set\0".as_ptr() as *const _,
4131                 Some(transmute(
4132                     notify_pixels_inside_wrap_set_trampoline::<Self, F> as usize,
4133                 )),
4134                 Box_::into_raw(f),
4135             )
4136         }
4137     }
4138 
connect_property_right_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4139     fn connect_property_right_margin_notify<F: Fn(&Self) + 'static>(
4140         &self,
4141         f: F,
4142     ) -> SignalHandlerId {
4143         unsafe extern "C" fn notify_right_margin_trampoline<P, F: Fn(&P) + 'static>(
4144             this: *mut gtk_sys::GtkTextTag,
4145             _param_spec: glib_sys::gpointer,
4146             f: glib_sys::gpointer,
4147         ) where
4148             P: IsA<TextTag>,
4149         {
4150             let f: &F = &*(f as *const F);
4151             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4152         }
4153         unsafe {
4154             let f: Box_<F> = Box_::new(f);
4155             connect_raw(
4156                 self.as_ptr() as *mut _,
4157                 b"notify::right-margin\0".as_ptr() as *const _,
4158                 Some(transmute(
4159                     notify_right_margin_trampoline::<Self, F> as usize,
4160                 )),
4161                 Box_::into_raw(f),
4162             )
4163         }
4164     }
4165 
connect_property_right_margin_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4166     fn connect_property_right_margin_set_notify<F: Fn(&Self) + 'static>(
4167         &self,
4168         f: F,
4169     ) -> SignalHandlerId {
4170         unsafe extern "C" fn notify_right_margin_set_trampoline<P, F: Fn(&P) + 'static>(
4171             this: *mut gtk_sys::GtkTextTag,
4172             _param_spec: glib_sys::gpointer,
4173             f: glib_sys::gpointer,
4174         ) where
4175             P: IsA<TextTag>,
4176         {
4177             let f: &F = &*(f as *const F);
4178             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4179         }
4180         unsafe {
4181             let f: Box_<F> = Box_::new(f);
4182             connect_raw(
4183                 self.as_ptr() as *mut _,
4184                 b"notify::right-margin-set\0".as_ptr() as *const _,
4185                 Some(transmute(
4186                     notify_right_margin_set_trampoline::<Self, F> as usize,
4187                 )),
4188                 Box_::into_raw(f),
4189             )
4190         }
4191     }
4192 
connect_property_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4193     fn connect_property_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4194         unsafe extern "C" fn notify_rise_trampoline<P, F: Fn(&P) + 'static>(
4195             this: *mut gtk_sys::GtkTextTag,
4196             _param_spec: glib_sys::gpointer,
4197             f: glib_sys::gpointer,
4198         ) where
4199             P: IsA<TextTag>,
4200         {
4201             let f: &F = &*(f as *const F);
4202             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4203         }
4204         unsafe {
4205             let f: Box_<F> = Box_::new(f);
4206             connect_raw(
4207                 self.as_ptr() as *mut _,
4208                 b"notify::rise\0".as_ptr() as *const _,
4209                 Some(transmute(notify_rise_trampoline::<Self, F> as usize)),
4210                 Box_::into_raw(f),
4211             )
4212         }
4213     }
4214 
connect_property_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4215     fn connect_property_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4216         unsafe extern "C" fn notify_rise_set_trampoline<P, F: Fn(&P) + 'static>(
4217             this: *mut gtk_sys::GtkTextTag,
4218             _param_spec: glib_sys::gpointer,
4219             f: glib_sys::gpointer,
4220         ) where
4221             P: IsA<TextTag>,
4222         {
4223             let f: &F = &*(f as *const F);
4224             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4225         }
4226         unsafe {
4227             let f: Box_<F> = Box_::new(f);
4228             connect_raw(
4229                 self.as_ptr() as *mut _,
4230                 b"notify::rise-set\0".as_ptr() as *const _,
4231                 Some(transmute(notify_rise_set_trampoline::<Self, F> as usize)),
4232                 Box_::into_raw(f),
4233             )
4234         }
4235     }
4236 
connect_property_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4237     fn connect_property_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4238         unsafe extern "C" fn notify_scale_trampoline<P, F: Fn(&P) + 'static>(
4239             this: *mut gtk_sys::GtkTextTag,
4240             _param_spec: glib_sys::gpointer,
4241             f: glib_sys::gpointer,
4242         ) where
4243             P: IsA<TextTag>,
4244         {
4245             let f: &F = &*(f as *const F);
4246             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4247         }
4248         unsafe {
4249             let f: Box_<F> = Box_::new(f);
4250             connect_raw(
4251                 self.as_ptr() as *mut _,
4252                 b"notify::scale\0".as_ptr() as *const _,
4253                 Some(transmute(notify_scale_trampoline::<Self, F> as usize)),
4254                 Box_::into_raw(f),
4255             )
4256         }
4257     }
4258 
connect_property_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4259     fn connect_property_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4260         unsafe extern "C" fn notify_scale_set_trampoline<P, F: Fn(&P) + 'static>(
4261             this: *mut gtk_sys::GtkTextTag,
4262             _param_spec: glib_sys::gpointer,
4263             f: glib_sys::gpointer,
4264         ) where
4265             P: IsA<TextTag>,
4266         {
4267             let f: &F = &*(f as *const F);
4268             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4269         }
4270         unsafe {
4271             let f: Box_<F> = Box_::new(f);
4272             connect_raw(
4273                 self.as_ptr() as *mut _,
4274                 b"notify::scale-set\0".as_ptr() as *const _,
4275                 Some(transmute(notify_scale_set_trampoline::<Self, F> as usize)),
4276                 Box_::into_raw(f),
4277             )
4278         }
4279     }
4280 
connect_property_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4281     fn connect_property_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4282         unsafe extern "C" fn notify_size_trampoline<P, F: Fn(&P) + 'static>(
4283             this: *mut gtk_sys::GtkTextTag,
4284             _param_spec: glib_sys::gpointer,
4285             f: glib_sys::gpointer,
4286         ) where
4287             P: IsA<TextTag>,
4288         {
4289             let f: &F = &*(f as *const F);
4290             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4291         }
4292         unsafe {
4293             let f: Box_<F> = Box_::new(f);
4294             connect_raw(
4295                 self.as_ptr() as *mut _,
4296                 b"notify::size\0".as_ptr() as *const _,
4297                 Some(transmute(notify_size_trampoline::<Self, F> as usize)),
4298                 Box_::into_raw(f),
4299             )
4300         }
4301     }
4302 
connect_property_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4303     fn connect_property_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4304         unsafe extern "C" fn notify_size_points_trampoline<P, F: Fn(&P) + 'static>(
4305             this: *mut gtk_sys::GtkTextTag,
4306             _param_spec: glib_sys::gpointer,
4307             f: glib_sys::gpointer,
4308         ) where
4309             P: IsA<TextTag>,
4310         {
4311             let f: &F = &*(f as *const F);
4312             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4313         }
4314         unsafe {
4315             let f: Box_<F> = Box_::new(f);
4316             connect_raw(
4317                 self.as_ptr() as *mut _,
4318                 b"notify::size-points\0".as_ptr() as *const _,
4319                 Some(transmute(notify_size_points_trampoline::<Self, F> as usize)),
4320                 Box_::into_raw(f),
4321             )
4322         }
4323     }
4324 
connect_property_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4325     fn connect_property_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4326         unsafe extern "C" fn notify_size_set_trampoline<P, F: Fn(&P) + 'static>(
4327             this: *mut gtk_sys::GtkTextTag,
4328             _param_spec: glib_sys::gpointer,
4329             f: glib_sys::gpointer,
4330         ) where
4331             P: IsA<TextTag>,
4332         {
4333             let f: &F = &*(f as *const F);
4334             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4335         }
4336         unsafe {
4337             let f: Box_<F> = Box_::new(f);
4338             connect_raw(
4339                 self.as_ptr() as *mut _,
4340                 b"notify::size-set\0".as_ptr() as *const _,
4341                 Some(transmute(notify_size_set_trampoline::<Self, F> as usize)),
4342                 Box_::into_raw(f),
4343             )
4344         }
4345     }
4346 
connect_property_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4347     fn connect_property_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4348         unsafe extern "C" fn notify_stretch_trampoline<P, F: Fn(&P) + 'static>(
4349             this: *mut gtk_sys::GtkTextTag,
4350             _param_spec: glib_sys::gpointer,
4351             f: glib_sys::gpointer,
4352         ) where
4353             P: IsA<TextTag>,
4354         {
4355             let f: &F = &*(f as *const F);
4356             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4357         }
4358         unsafe {
4359             let f: Box_<F> = Box_::new(f);
4360             connect_raw(
4361                 self.as_ptr() as *mut _,
4362                 b"notify::stretch\0".as_ptr() as *const _,
4363                 Some(transmute(notify_stretch_trampoline::<Self, F> as usize)),
4364                 Box_::into_raw(f),
4365             )
4366         }
4367     }
4368 
connect_property_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4369     fn connect_property_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4370         unsafe extern "C" fn notify_stretch_set_trampoline<P, F: Fn(&P) + 'static>(
4371             this: *mut gtk_sys::GtkTextTag,
4372             _param_spec: glib_sys::gpointer,
4373             f: glib_sys::gpointer,
4374         ) where
4375             P: IsA<TextTag>,
4376         {
4377             let f: &F = &*(f as *const F);
4378             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4379         }
4380         unsafe {
4381             let f: Box_<F> = Box_::new(f);
4382             connect_raw(
4383                 self.as_ptr() as *mut _,
4384                 b"notify::stretch-set\0".as_ptr() as *const _,
4385                 Some(transmute(notify_stretch_set_trampoline::<Self, F> as usize)),
4386                 Box_::into_raw(f),
4387             )
4388         }
4389     }
4390 
connect_property_strikethrough_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4391     fn connect_property_strikethrough_notify<F: Fn(&Self) + 'static>(
4392         &self,
4393         f: F,
4394     ) -> SignalHandlerId {
4395         unsafe extern "C" fn notify_strikethrough_trampoline<P, F: Fn(&P) + 'static>(
4396             this: *mut gtk_sys::GtkTextTag,
4397             _param_spec: glib_sys::gpointer,
4398             f: glib_sys::gpointer,
4399         ) where
4400             P: IsA<TextTag>,
4401         {
4402             let f: &F = &*(f as *const F);
4403             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4404         }
4405         unsafe {
4406             let f: Box_<F> = Box_::new(f);
4407             connect_raw(
4408                 self.as_ptr() as *mut _,
4409                 b"notify::strikethrough\0".as_ptr() as *const _,
4410                 Some(transmute(
4411                     notify_strikethrough_trampoline::<Self, F> as usize,
4412                 )),
4413                 Box_::into_raw(f),
4414             )
4415         }
4416     }
4417 
4418     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_strikethrough_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4419     fn connect_property_strikethrough_rgba_notify<F: Fn(&Self) + 'static>(
4420         &self,
4421         f: F,
4422     ) -> SignalHandlerId {
4423         unsafe extern "C" fn notify_strikethrough_rgba_trampoline<P, F: Fn(&P) + 'static>(
4424             this: *mut gtk_sys::GtkTextTag,
4425             _param_spec: glib_sys::gpointer,
4426             f: glib_sys::gpointer,
4427         ) where
4428             P: IsA<TextTag>,
4429         {
4430             let f: &F = &*(f as *const F);
4431             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4432         }
4433         unsafe {
4434             let f: Box_<F> = Box_::new(f);
4435             connect_raw(
4436                 self.as_ptr() as *mut _,
4437                 b"notify::strikethrough-rgba\0".as_ptr() as *const _,
4438                 Some(transmute(
4439                     notify_strikethrough_rgba_trampoline::<Self, F> as usize,
4440                 )),
4441                 Box_::into_raw(f),
4442             )
4443         }
4444     }
4445 
4446     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4447     fn connect_property_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>(
4448         &self,
4449         f: F,
4450     ) -> SignalHandlerId {
4451         unsafe extern "C" fn notify_strikethrough_rgba_set_trampoline<P, F: Fn(&P) + 'static>(
4452             this: *mut gtk_sys::GtkTextTag,
4453             _param_spec: glib_sys::gpointer,
4454             f: glib_sys::gpointer,
4455         ) where
4456             P: IsA<TextTag>,
4457         {
4458             let f: &F = &*(f as *const F);
4459             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4460         }
4461         unsafe {
4462             let f: Box_<F> = Box_::new(f);
4463             connect_raw(
4464                 self.as_ptr() as *mut _,
4465                 b"notify::strikethrough-rgba-set\0".as_ptr() as *const _,
4466                 Some(transmute(
4467                     notify_strikethrough_rgba_set_trampoline::<Self, F> as usize,
4468                 )),
4469                 Box_::into_raw(f),
4470             )
4471         }
4472     }
4473 
connect_property_strikethrough_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4474     fn connect_property_strikethrough_set_notify<F: Fn(&Self) + 'static>(
4475         &self,
4476         f: F,
4477     ) -> SignalHandlerId {
4478         unsafe extern "C" fn notify_strikethrough_set_trampoline<P, F: Fn(&P) + 'static>(
4479             this: *mut gtk_sys::GtkTextTag,
4480             _param_spec: glib_sys::gpointer,
4481             f: glib_sys::gpointer,
4482         ) where
4483             P: IsA<TextTag>,
4484         {
4485             let f: &F = &*(f as *const F);
4486             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4487         }
4488         unsafe {
4489             let f: Box_<F> = Box_::new(f);
4490             connect_raw(
4491                 self.as_ptr() as *mut _,
4492                 b"notify::strikethrough-set\0".as_ptr() as *const _,
4493                 Some(transmute(
4494                     notify_strikethrough_set_trampoline::<Self, F> as usize,
4495                 )),
4496                 Box_::into_raw(f),
4497             )
4498         }
4499     }
4500 
connect_property_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4501     fn connect_property_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4502         unsafe extern "C" fn notify_style_trampoline<P, F: Fn(&P) + 'static>(
4503             this: *mut gtk_sys::GtkTextTag,
4504             _param_spec: glib_sys::gpointer,
4505             f: glib_sys::gpointer,
4506         ) where
4507             P: IsA<TextTag>,
4508         {
4509             let f: &F = &*(f as *const F);
4510             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4511         }
4512         unsafe {
4513             let f: Box_<F> = Box_::new(f);
4514             connect_raw(
4515                 self.as_ptr() as *mut _,
4516                 b"notify::style\0".as_ptr() as *const _,
4517                 Some(transmute(notify_style_trampoline::<Self, F> as usize)),
4518                 Box_::into_raw(f),
4519             )
4520         }
4521     }
4522 
connect_property_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4523     fn connect_property_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4524         unsafe extern "C" fn notify_style_set_trampoline<P, F: Fn(&P) + 'static>(
4525             this: *mut gtk_sys::GtkTextTag,
4526             _param_spec: glib_sys::gpointer,
4527             f: glib_sys::gpointer,
4528         ) where
4529             P: IsA<TextTag>,
4530         {
4531             let f: &F = &*(f as *const F);
4532             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4533         }
4534         unsafe {
4535             let f: Box_<F> = Box_::new(f);
4536             connect_raw(
4537                 self.as_ptr() as *mut _,
4538                 b"notify::style-set\0".as_ptr() as *const _,
4539                 Some(transmute(notify_style_set_trampoline::<Self, F> as usize)),
4540                 Box_::into_raw(f),
4541             )
4542         }
4543     }
4544 
connect_property_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4545     fn connect_property_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4546         unsafe extern "C" fn notify_tabs_trampoline<P, F: Fn(&P) + 'static>(
4547             this: *mut gtk_sys::GtkTextTag,
4548             _param_spec: glib_sys::gpointer,
4549             f: glib_sys::gpointer,
4550         ) where
4551             P: IsA<TextTag>,
4552         {
4553             let f: &F = &*(f as *const F);
4554             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4555         }
4556         unsafe {
4557             let f: Box_<F> = Box_::new(f);
4558             connect_raw(
4559                 self.as_ptr() as *mut _,
4560                 b"notify::tabs\0".as_ptr() as *const _,
4561                 Some(transmute(notify_tabs_trampoline::<Self, F> as usize)),
4562                 Box_::into_raw(f),
4563             )
4564         }
4565     }
4566 
connect_property_tabs_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4567     fn connect_property_tabs_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4568         unsafe extern "C" fn notify_tabs_set_trampoline<P, F: Fn(&P) + 'static>(
4569             this: *mut gtk_sys::GtkTextTag,
4570             _param_spec: glib_sys::gpointer,
4571             f: glib_sys::gpointer,
4572         ) where
4573             P: IsA<TextTag>,
4574         {
4575             let f: &F = &*(f as *const F);
4576             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4577         }
4578         unsafe {
4579             let f: Box_<F> = Box_::new(f);
4580             connect_raw(
4581                 self.as_ptr() as *mut _,
4582                 b"notify::tabs-set\0".as_ptr() as *const _,
4583                 Some(transmute(notify_tabs_set_trampoline::<Self, F> as usize)),
4584                 Box_::into_raw(f),
4585             )
4586         }
4587     }
4588 
connect_property_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4589     fn connect_property_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4590         unsafe extern "C" fn notify_underline_trampoline<P, F: Fn(&P) + 'static>(
4591             this: *mut gtk_sys::GtkTextTag,
4592             _param_spec: glib_sys::gpointer,
4593             f: glib_sys::gpointer,
4594         ) where
4595             P: IsA<TextTag>,
4596         {
4597             let f: &F = &*(f as *const F);
4598             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4599         }
4600         unsafe {
4601             let f: Box_<F> = Box_::new(f);
4602             connect_raw(
4603                 self.as_ptr() as *mut _,
4604                 b"notify::underline\0".as_ptr() as *const _,
4605                 Some(transmute(notify_underline_trampoline::<Self, F> as usize)),
4606                 Box_::into_raw(f),
4607             )
4608         }
4609     }
4610 
4611     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_underline_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4612     fn connect_property_underline_rgba_notify<F: Fn(&Self) + 'static>(
4613         &self,
4614         f: F,
4615     ) -> SignalHandlerId {
4616         unsafe extern "C" fn notify_underline_rgba_trampoline<P, F: Fn(&P) + 'static>(
4617             this: *mut gtk_sys::GtkTextTag,
4618             _param_spec: glib_sys::gpointer,
4619             f: glib_sys::gpointer,
4620         ) where
4621             P: IsA<TextTag>,
4622         {
4623             let f: &F = &*(f as *const F);
4624             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4625         }
4626         unsafe {
4627             let f: Box_<F> = Box_::new(f);
4628             connect_raw(
4629                 self.as_ptr() as *mut _,
4630                 b"notify::underline-rgba\0".as_ptr() as *const _,
4631                 Some(transmute(
4632                     notify_underline_rgba_trampoline::<Self, F> as usize,
4633                 )),
4634                 Box_::into_raw(f),
4635             )
4636         }
4637     }
4638 
4639     #[cfg(any(feature = "v3_16", feature = "dox"))]
connect_property_underline_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4640     fn connect_property_underline_rgba_set_notify<F: Fn(&Self) + 'static>(
4641         &self,
4642         f: F,
4643     ) -> SignalHandlerId {
4644         unsafe extern "C" fn notify_underline_rgba_set_trampoline<P, F: Fn(&P) + 'static>(
4645             this: *mut gtk_sys::GtkTextTag,
4646             _param_spec: glib_sys::gpointer,
4647             f: glib_sys::gpointer,
4648         ) where
4649             P: IsA<TextTag>,
4650         {
4651             let f: &F = &*(f as *const F);
4652             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4653         }
4654         unsafe {
4655             let f: Box_<F> = Box_::new(f);
4656             connect_raw(
4657                 self.as_ptr() as *mut _,
4658                 b"notify::underline-rgba-set\0".as_ptr() as *const _,
4659                 Some(transmute(
4660                     notify_underline_rgba_set_trampoline::<Self, F> as usize,
4661                 )),
4662                 Box_::into_raw(f),
4663             )
4664         }
4665     }
4666 
connect_property_underline_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4667     fn connect_property_underline_set_notify<F: Fn(&Self) + 'static>(
4668         &self,
4669         f: F,
4670     ) -> SignalHandlerId {
4671         unsafe extern "C" fn notify_underline_set_trampoline<P, F: Fn(&P) + 'static>(
4672             this: *mut gtk_sys::GtkTextTag,
4673             _param_spec: glib_sys::gpointer,
4674             f: glib_sys::gpointer,
4675         ) where
4676             P: IsA<TextTag>,
4677         {
4678             let f: &F = &*(f as *const F);
4679             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4680         }
4681         unsafe {
4682             let f: Box_<F> = Box_::new(f);
4683             connect_raw(
4684                 self.as_ptr() as *mut _,
4685                 b"notify::underline-set\0".as_ptr() as *const _,
4686                 Some(transmute(
4687                     notify_underline_set_trampoline::<Self, F> as usize,
4688                 )),
4689                 Box_::into_raw(f),
4690             )
4691         }
4692     }
4693 
connect_property_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4694     fn connect_property_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4695         unsafe extern "C" fn notify_variant_trampoline<P, F: Fn(&P) + 'static>(
4696             this: *mut gtk_sys::GtkTextTag,
4697             _param_spec: glib_sys::gpointer,
4698             f: glib_sys::gpointer,
4699         ) where
4700             P: IsA<TextTag>,
4701         {
4702             let f: &F = &*(f as *const F);
4703             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4704         }
4705         unsafe {
4706             let f: Box_<F> = Box_::new(f);
4707             connect_raw(
4708                 self.as_ptr() as *mut _,
4709                 b"notify::variant\0".as_ptr() as *const _,
4710                 Some(transmute(notify_variant_trampoline::<Self, F> as usize)),
4711                 Box_::into_raw(f),
4712             )
4713         }
4714     }
4715 
connect_property_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4716     fn connect_property_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4717         unsafe extern "C" fn notify_variant_set_trampoline<P, F: Fn(&P) + 'static>(
4718             this: *mut gtk_sys::GtkTextTag,
4719             _param_spec: glib_sys::gpointer,
4720             f: glib_sys::gpointer,
4721         ) where
4722             P: IsA<TextTag>,
4723         {
4724             let f: &F = &*(f as *const F);
4725             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4726         }
4727         unsafe {
4728             let f: Box_<F> = Box_::new(f);
4729             connect_raw(
4730                 self.as_ptr() as *mut _,
4731                 b"notify::variant-set\0".as_ptr() as *const _,
4732                 Some(transmute(notify_variant_set_trampoline::<Self, F> as usize)),
4733                 Box_::into_raw(f),
4734             )
4735         }
4736     }
4737 
connect_property_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4738     fn connect_property_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4739         unsafe extern "C" fn notify_weight_trampoline<P, F: Fn(&P) + 'static>(
4740             this: *mut gtk_sys::GtkTextTag,
4741             _param_spec: glib_sys::gpointer,
4742             f: glib_sys::gpointer,
4743         ) where
4744             P: IsA<TextTag>,
4745         {
4746             let f: &F = &*(f as *const F);
4747             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4748         }
4749         unsafe {
4750             let f: Box_<F> = Box_::new(f);
4751             connect_raw(
4752                 self.as_ptr() as *mut _,
4753                 b"notify::weight\0".as_ptr() as *const _,
4754                 Some(transmute(notify_weight_trampoline::<Self, F> as usize)),
4755                 Box_::into_raw(f),
4756             )
4757         }
4758     }
4759 
connect_property_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4760     fn connect_property_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4761         unsafe extern "C" fn notify_weight_set_trampoline<P, F: Fn(&P) + 'static>(
4762             this: *mut gtk_sys::GtkTextTag,
4763             _param_spec: glib_sys::gpointer,
4764             f: glib_sys::gpointer,
4765         ) where
4766             P: IsA<TextTag>,
4767         {
4768             let f: &F = &*(f as *const F);
4769             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4770         }
4771         unsafe {
4772             let f: Box_<F> = Box_::new(f);
4773             connect_raw(
4774                 self.as_ptr() as *mut _,
4775                 b"notify::weight-set\0".as_ptr() as *const _,
4776                 Some(transmute(notify_weight_set_trampoline::<Self, F> as usize)),
4777                 Box_::into_raw(f),
4778             )
4779         }
4780     }
4781 
connect_property_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4782     fn connect_property_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
4783         unsafe extern "C" fn notify_wrap_mode_trampoline<P, F: Fn(&P) + 'static>(
4784             this: *mut gtk_sys::GtkTextTag,
4785             _param_spec: glib_sys::gpointer,
4786             f: glib_sys::gpointer,
4787         ) where
4788             P: IsA<TextTag>,
4789         {
4790             let f: &F = &*(f as *const F);
4791             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4792         }
4793         unsafe {
4794             let f: Box_<F> = Box_::new(f);
4795             connect_raw(
4796                 self.as_ptr() as *mut _,
4797                 b"notify::wrap-mode\0".as_ptr() as *const _,
4798                 Some(transmute(notify_wrap_mode_trampoline::<Self, F> as usize)),
4799                 Box_::into_raw(f),
4800             )
4801         }
4802     }
4803 
connect_property_wrap_mode_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4804     fn connect_property_wrap_mode_set_notify<F: Fn(&Self) + 'static>(
4805         &self,
4806         f: F,
4807     ) -> SignalHandlerId {
4808         unsafe extern "C" fn notify_wrap_mode_set_trampoline<P, F: Fn(&P) + 'static>(
4809             this: *mut gtk_sys::GtkTextTag,
4810             _param_spec: glib_sys::gpointer,
4811             f: glib_sys::gpointer,
4812         ) where
4813             P: IsA<TextTag>,
4814         {
4815             let f: &F = &*(f as *const F);
4816             f(&TextTag::from_glib_borrow(this).unsafe_cast())
4817         }
4818         unsafe {
4819             let f: Box_<F> = Box_::new(f);
4820             connect_raw(
4821                 self.as_ptr() as *mut _,
4822                 b"notify::wrap-mode-set\0".as_ptr() as *const _,
4823                 Some(transmute(
4824                     notify_wrap_mode_set_trampoline::<Self, F> as usize,
4825                 )),
4826                 Box_::into_raw(f),
4827             )
4828         }
4829     }
4830 }
4831 
4832 impl fmt::Display for TextTag {
fmt(&self, f: &mut fmt::Formatter) -> fmt::Result4833     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4834         write!(f, "TextTag")
4835     }
4836 }
4837