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 crate::Justification; 6 use crate::TextDirection; 7 use crate::TextIter; 8 use crate::WrapMode; 9 use glib::object::Cast; 10 use glib::object::IsA; 11 use glib::signal::connect_raw; 12 use glib::signal::SignalHandlerId; 13 use glib::translate::*; 14 use glib::StaticType; 15 use glib::ToValue; 16 use std::boxed::Box as Box_; 17 use std::fmt; 18 use std::mem::transmute; 19 20 glib::wrapper! { 21 #[doc(alias = "GtkTextTag")] 22 pub struct TextTag(Object<ffi::GtkTextTag, ffi::GtkTextTagClass>); 23 24 match fn { 25 type_ => || ffi::gtk_text_tag_get_type(), 26 } 27 } 28 29 impl TextTag { 30 #[doc(alias = "gtk_text_tag_new")] new(name: Option<&str>) -> TextTag31 pub fn new(name: Option<&str>) -> TextTag { 32 assert_initialized_main_thread!(); 33 unsafe { from_glib_full(ffi::gtk_text_tag_new(name.to_glib_none().0)) } 34 } 35 36 // rustdoc-stripper-ignore-next 37 /// Creates a new builder-pattern struct instance to construct [`TextTag`] objects. 38 /// 39 /// This method returns an instance of [`TextTagBuilder`] which can be used to create [`TextTag`] objects. builder() -> TextTagBuilder40 pub fn builder() -> TextTagBuilder { 41 TextTagBuilder::default() 42 } 43 } 44 45 #[derive(Clone, Default)] 46 // rustdoc-stripper-ignore-next 47 /// A [builder-pattern] type to construct [`TextTag`] objects. 48 /// 49 /// [builder-pattern]: https://doc.rust-lang.org/1.0.0/style/ownership/builders.html 50 pub struct TextTagBuilder { 51 accumulative_margin: Option<bool>, 52 background: Option<String>, 53 background_full_height: Option<bool>, 54 background_full_height_set: Option<bool>, 55 background_rgba: Option<gdk::RGBA>, 56 background_set: Option<bool>, 57 direction: Option<TextDirection>, 58 editable: Option<bool>, 59 editable_set: Option<bool>, 60 fallback: Option<bool>, 61 fallback_set: Option<bool>, 62 family: Option<String>, 63 family_set: Option<bool>, 64 font: Option<String>, 65 font_desc: Option<pango::FontDescription>, 66 font_features: Option<String>, 67 font_features_set: Option<bool>, 68 foreground: Option<String>, 69 foreground_rgba: Option<gdk::RGBA>, 70 foreground_set: Option<bool>, 71 indent: Option<i32>, 72 indent_set: Option<bool>, 73 invisible: Option<bool>, 74 invisible_set: Option<bool>, 75 justification: Option<Justification>, 76 justification_set: Option<bool>, 77 language: Option<String>, 78 language_set: Option<bool>, 79 left_margin: Option<i32>, 80 left_margin_set: Option<bool>, 81 letter_spacing: Option<i32>, 82 letter_spacing_set: Option<bool>, 83 name: Option<String>, 84 paragraph_background: Option<String>, 85 paragraph_background_rgba: Option<gdk::RGBA>, 86 paragraph_background_set: Option<bool>, 87 pixels_above_lines: Option<i32>, 88 pixels_above_lines_set: Option<bool>, 89 pixels_below_lines: Option<i32>, 90 pixels_below_lines_set: Option<bool>, 91 pixels_inside_wrap: Option<i32>, 92 pixels_inside_wrap_set: Option<bool>, 93 right_margin: Option<i32>, 94 right_margin_set: Option<bool>, 95 rise: Option<i32>, 96 rise_set: Option<bool>, 97 scale: Option<f64>, 98 scale_set: Option<bool>, 99 size: Option<i32>, 100 size_points: Option<f64>, 101 size_set: Option<bool>, 102 stretch: Option<pango::Stretch>, 103 stretch_set: Option<bool>, 104 strikethrough: Option<bool>, 105 strikethrough_rgba: Option<gdk::RGBA>, 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 underline_rgba: Option<gdk::RGBA>, 114 underline_rgba_set: Option<bool>, 115 underline_set: Option<bool>, 116 variant: Option<pango::Variant>, 117 variant_set: Option<bool>, 118 weight: Option<i32>, 119 weight_set: Option<bool>, 120 wrap_mode: Option<WrapMode>, 121 wrap_mode_set: Option<bool>, 122 } 123 124 impl TextTagBuilder { 125 // rustdoc-stripper-ignore-next 126 /// Create a new [`TextTagBuilder`]. new() -> Self127 pub fn new() -> Self { 128 Self::default() 129 } 130 131 // rustdoc-stripper-ignore-next 132 /// Build the [`TextTag`]. build(self) -> TextTag133 pub fn build(self) -> TextTag { 134 let mut properties: Vec<(&str, &dyn ToValue)> = vec![]; 135 if let Some(ref accumulative_margin) = self.accumulative_margin { 136 properties.push(("accumulative-margin", accumulative_margin)); 137 } 138 if let Some(ref background) = self.background { 139 properties.push(("background", background)); 140 } 141 if let Some(ref background_full_height) = self.background_full_height { 142 properties.push(("background-full-height", background_full_height)); 143 } 144 if let Some(ref background_full_height_set) = self.background_full_height_set { 145 properties.push(("background-full-height-set", background_full_height_set)); 146 } 147 if let Some(ref background_rgba) = self.background_rgba { 148 properties.push(("background-rgba", background_rgba)); 149 } 150 if let Some(ref background_set) = self.background_set { 151 properties.push(("background-set", background_set)); 152 } 153 if let Some(ref direction) = self.direction { 154 properties.push(("direction", direction)); 155 } 156 if let Some(ref editable) = self.editable { 157 properties.push(("editable", editable)); 158 } 159 if let Some(ref editable_set) = self.editable_set { 160 properties.push(("editable-set", editable_set)); 161 } 162 if let Some(ref fallback) = self.fallback { 163 properties.push(("fallback", fallback)); 164 } 165 if let Some(ref fallback_set) = self.fallback_set { 166 properties.push(("fallback-set", fallback_set)); 167 } 168 if let Some(ref family) = self.family { 169 properties.push(("family", family)); 170 } 171 if let Some(ref family_set) = self.family_set { 172 properties.push(("family-set", family_set)); 173 } 174 if let Some(ref font) = self.font { 175 properties.push(("font", font)); 176 } 177 if let Some(ref font_desc) = self.font_desc { 178 properties.push(("font-desc", font_desc)); 179 } 180 if let Some(ref font_features) = self.font_features { 181 properties.push(("font-features", font_features)); 182 } 183 if let Some(ref font_features_set) = self.font_features_set { 184 properties.push(("font-features-set", font_features_set)); 185 } 186 if let Some(ref foreground) = self.foreground { 187 properties.push(("foreground", foreground)); 188 } 189 if let Some(ref foreground_rgba) = self.foreground_rgba { 190 properties.push(("foreground-rgba", foreground_rgba)); 191 } 192 if let Some(ref foreground_set) = self.foreground_set { 193 properties.push(("foreground-set", foreground_set)); 194 } 195 if let Some(ref indent) = self.indent { 196 properties.push(("indent", indent)); 197 } 198 if let Some(ref indent_set) = self.indent_set { 199 properties.push(("indent-set", indent_set)); 200 } 201 if let Some(ref invisible) = self.invisible { 202 properties.push(("invisible", invisible)); 203 } 204 if let Some(ref invisible_set) = self.invisible_set { 205 properties.push(("invisible-set", invisible_set)); 206 } 207 if let Some(ref justification) = self.justification { 208 properties.push(("justification", justification)); 209 } 210 if let Some(ref justification_set) = self.justification_set { 211 properties.push(("justification-set", justification_set)); 212 } 213 if let Some(ref language) = self.language { 214 properties.push(("language", language)); 215 } 216 if let Some(ref language_set) = self.language_set { 217 properties.push(("language-set", language_set)); 218 } 219 if let Some(ref left_margin) = self.left_margin { 220 properties.push(("left-margin", left_margin)); 221 } 222 if let Some(ref left_margin_set) = self.left_margin_set { 223 properties.push(("left-margin-set", left_margin_set)); 224 } 225 if let Some(ref letter_spacing) = self.letter_spacing { 226 properties.push(("letter-spacing", letter_spacing)); 227 } 228 if let Some(ref letter_spacing_set) = self.letter_spacing_set { 229 properties.push(("letter-spacing-set", letter_spacing_set)); 230 } 231 if let Some(ref name) = self.name { 232 properties.push(("name", name)); 233 } 234 if let Some(ref paragraph_background) = self.paragraph_background { 235 properties.push(("paragraph-background", paragraph_background)); 236 } 237 if let Some(ref paragraph_background_rgba) = self.paragraph_background_rgba { 238 properties.push(("paragraph-background-rgba", paragraph_background_rgba)); 239 } 240 if let Some(ref paragraph_background_set) = self.paragraph_background_set { 241 properties.push(("paragraph-background-set", paragraph_background_set)); 242 } 243 if let Some(ref pixels_above_lines) = self.pixels_above_lines { 244 properties.push(("pixels-above-lines", pixels_above_lines)); 245 } 246 if let Some(ref pixels_above_lines_set) = self.pixels_above_lines_set { 247 properties.push(("pixels-above-lines-set", pixels_above_lines_set)); 248 } 249 if let Some(ref pixels_below_lines) = self.pixels_below_lines { 250 properties.push(("pixels-below-lines", pixels_below_lines)); 251 } 252 if let Some(ref pixels_below_lines_set) = self.pixels_below_lines_set { 253 properties.push(("pixels-below-lines-set", pixels_below_lines_set)); 254 } 255 if let Some(ref pixels_inside_wrap) = self.pixels_inside_wrap { 256 properties.push(("pixels-inside-wrap", pixels_inside_wrap)); 257 } 258 if let Some(ref pixels_inside_wrap_set) = self.pixels_inside_wrap_set { 259 properties.push(("pixels-inside-wrap-set", pixels_inside_wrap_set)); 260 } 261 if let Some(ref right_margin) = self.right_margin { 262 properties.push(("right-margin", right_margin)); 263 } 264 if let Some(ref right_margin_set) = self.right_margin_set { 265 properties.push(("right-margin-set", right_margin_set)); 266 } 267 if let Some(ref rise) = self.rise { 268 properties.push(("rise", rise)); 269 } 270 if let Some(ref rise_set) = self.rise_set { 271 properties.push(("rise-set", rise_set)); 272 } 273 if let Some(ref scale) = self.scale { 274 properties.push(("scale", scale)); 275 } 276 if let Some(ref scale_set) = self.scale_set { 277 properties.push(("scale-set", scale_set)); 278 } 279 if let Some(ref size) = self.size { 280 properties.push(("size", size)); 281 } 282 if let Some(ref size_points) = self.size_points { 283 properties.push(("size-points", size_points)); 284 } 285 if let Some(ref size_set) = self.size_set { 286 properties.push(("size-set", size_set)); 287 } 288 if let Some(ref stretch) = self.stretch { 289 properties.push(("stretch", stretch)); 290 } 291 if let Some(ref stretch_set) = self.stretch_set { 292 properties.push(("stretch-set", stretch_set)); 293 } 294 if let Some(ref strikethrough) = self.strikethrough { 295 properties.push(("strikethrough", strikethrough)); 296 } 297 if let Some(ref strikethrough_rgba) = self.strikethrough_rgba { 298 properties.push(("strikethrough-rgba", strikethrough_rgba)); 299 } 300 if let Some(ref strikethrough_rgba_set) = self.strikethrough_rgba_set { 301 properties.push(("strikethrough-rgba-set", strikethrough_rgba_set)); 302 } 303 if let Some(ref strikethrough_set) = self.strikethrough_set { 304 properties.push(("strikethrough-set", strikethrough_set)); 305 } 306 if let Some(ref style) = self.style { 307 properties.push(("style", style)); 308 } 309 if let Some(ref style_set) = self.style_set { 310 properties.push(("style-set", style_set)); 311 } 312 if let Some(ref tabs) = self.tabs { 313 properties.push(("tabs", tabs)); 314 } 315 if let Some(ref tabs_set) = self.tabs_set { 316 properties.push(("tabs-set", tabs_set)); 317 } 318 if let Some(ref underline) = self.underline { 319 properties.push(("underline", underline)); 320 } 321 if let Some(ref underline_rgba) = self.underline_rgba { 322 properties.push(("underline-rgba", underline_rgba)); 323 } 324 if let Some(ref underline_rgba_set) = self.underline_rgba_set { 325 properties.push(("underline-rgba-set", underline_rgba_set)); 326 } 327 if let Some(ref underline_set) = self.underline_set { 328 properties.push(("underline-set", underline_set)); 329 } 330 if let Some(ref variant) = self.variant { 331 properties.push(("variant", variant)); 332 } 333 if let Some(ref variant_set) = self.variant_set { 334 properties.push(("variant-set", variant_set)); 335 } 336 if let Some(ref weight) = self.weight { 337 properties.push(("weight", weight)); 338 } 339 if let Some(ref weight_set) = self.weight_set { 340 properties.push(("weight-set", weight_set)); 341 } 342 if let Some(ref wrap_mode) = self.wrap_mode { 343 properties.push(("wrap-mode", wrap_mode)); 344 } 345 if let Some(ref wrap_mode_set) = self.wrap_mode_set { 346 properties.push(("wrap-mode-set", wrap_mode_set)); 347 } 348 glib::Object::new::<TextTag>(&properties).expect("Failed to create an instance of TextTag") 349 } 350 accumulative_margin(mut self, accumulative_margin: bool) -> Self351 pub fn accumulative_margin(mut self, accumulative_margin: bool) -> Self { 352 self.accumulative_margin = Some(accumulative_margin); 353 self 354 } 355 background(mut self, background: &str) -> Self356 pub fn background(mut self, background: &str) -> Self { 357 self.background = Some(background.to_string()); 358 self 359 } 360 background_full_height(mut self, background_full_height: bool) -> Self361 pub fn background_full_height(mut self, background_full_height: bool) -> Self { 362 self.background_full_height = Some(background_full_height); 363 self 364 } 365 background_full_height_set(mut self, background_full_height_set: bool) -> Self366 pub fn background_full_height_set(mut self, background_full_height_set: bool) -> Self { 367 self.background_full_height_set = Some(background_full_height_set); 368 self 369 } 370 background_rgba(mut self, background_rgba: &gdk::RGBA) -> Self371 pub fn background_rgba(mut self, background_rgba: &gdk::RGBA) -> Self { 372 self.background_rgba = Some(background_rgba.clone()); 373 self 374 } 375 background_set(mut self, background_set: bool) -> Self376 pub fn background_set(mut self, background_set: bool) -> Self { 377 self.background_set = Some(background_set); 378 self 379 } 380 direction(mut self, direction: TextDirection) -> Self381 pub fn direction(mut self, direction: TextDirection) -> Self { 382 self.direction = Some(direction); 383 self 384 } 385 editable(mut self, editable: bool) -> Self386 pub fn editable(mut self, editable: bool) -> Self { 387 self.editable = Some(editable); 388 self 389 } 390 editable_set(mut self, editable_set: bool) -> Self391 pub fn editable_set(mut self, editable_set: bool) -> Self { 392 self.editable_set = Some(editable_set); 393 self 394 } 395 fallback(mut self, fallback: bool) -> Self396 pub fn fallback(mut self, fallback: bool) -> Self { 397 self.fallback = Some(fallback); 398 self 399 } 400 fallback_set(mut self, fallback_set: bool) -> Self401 pub fn fallback_set(mut self, fallback_set: bool) -> Self { 402 self.fallback_set = Some(fallback_set); 403 self 404 } 405 family(mut self, family: &str) -> Self406 pub fn family(mut self, family: &str) -> Self { 407 self.family = Some(family.to_string()); 408 self 409 } 410 family_set(mut self, family_set: bool) -> Self411 pub fn family_set(mut self, family_set: bool) -> Self { 412 self.family_set = Some(family_set); 413 self 414 } 415 font(mut self, font: &str) -> Self416 pub fn font(mut self, font: &str) -> Self { 417 self.font = Some(font.to_string()); 418 self 419 } 420 font_desc(mut self, font_desc: &pango::FontDescription) -> Self421 pub fn font_desc(mut self, font_desc: &pango::FontDescription) -> Self { 422 self.font_desc = Some(font_desc.clone()); 423 self 424 } 425 font_features(mut self, font_features: &str) -> Self426 pub fn font_features(mut self, font_features: &str) -> Self { 427 self.font_features = Some(font_features.to_string()); 428 self 429 } 430 font_features_set(mut self, font_features_set: bool) -> Self431 pub fn font_features_set(mut self, font_features_set: bool) -> Self { 432 self.font_features_set = Some(font_features_set); 433 self 434 } 435 foreground(mut self, foreground: &str) -> Self436 pub fn foreground(mut self, foreground: &str) -> Self { 437 self.foreground = Some(foreground.to_string()); 438 self 439 } 440 foreground_rgba(mut self, foreground_rgba: &gdk::RGBA) -> Self441 pub fn foreground_rgba(mut self, foreground_rgba: &gdk::RGBA) -> Self { 442 self.foreground_rgba = Some(foreground_rgba.clone()); 443 self 444 } 445 foreground_set(mut self, foreground_set: bool) -> Self446 pub fn foreground_set(mut self, foreground_set: bool) -> Self { 447 self.foreground_set = Some(foreground_set); 448 self 449 } 450 indent(mut self, indent: i32) -> Self451 pub fn indent(mut self, indent: i32) -> Self { 452 self.indent = Some(indent); 453 self 454 } 455 indent_set(mut self, indent_set: bool) -> Self456 pub fn indent_set(mut self, indent_set: bool) -> Self { 457 self.indent_set = Some(indent_set); 458 self 459 } 460 invisible(mut self, invisible: bool) -> Self461 pub fn invisible(mut self, invisible: bool) -> Self { 462 self.invisible = Some(invisible); 463 self 464 } 465 invisible_set(mut self, invisible_set: bool) -> Self466 pub fn invisible_set(mut self, invisible_set: bool) -> Self { 467 self.invisible_set = Some(invisible_set); 468 self 469 } 470 justification(mut self, justification: Justification) -> Self471 pub fn justification(mut self, justification: Justification) -> Self { 472 self.justification = Some(justification); 473 self 474 } 475 justification_set(mut self, justification_set: bool) -> Self476 pub fn justification_set(mut self, justification_set: bool) -> Self { 477 self.justification_set = Some(justification_set); 478 self 479 } 480 language(mut self, language: &str) -> Self481 pub fn language(mut self, language: &str) -> Self { 482 self.language = Some(language.to_string()); 483 self 484 } 485 language_set(mut self, language_set: bool) -> Self486 pub fn language_set(mut self, language_set: bool) -> Self { 487 self.language_set = Some(language_set); 488 self 489 } 490 left_margin(mut self, left_margin: i32) -> Self491 pub fn left_margin(mut self, left_margin: i32) -> Self { 492 self.left_margin = Some(left_margin); 493 self 494 } 495 left_margin_set(mut self, left_margin_set: bool) -> Self496 pub fn left_margin_set(mut self, left_margin_set: bool) -> Self { 497 self.left_margin_set = Some(left_margin_set); 498 self 499 } 500 letter_spacing(mut self, letter_spacing: i32) -> Self501 pub fn letter_spacing(mut self, letter_spacing: i32) -> Self { 502 self.letter_spacing = Some(letter_spacing); 503 self 504 } 505 letter_spacing_set(mut self, letter_spacing_set: bool) -> Self506 pub fn letter_spacing_set(mut self, letter_spacing_set: bool) -> Self { 507 self.letter_spacing_set = Some(letter_spacing_set); 508 self 509 } 510 name(mut self, name: &str) -> Self511 pub fn name(mut self, name: &str) -> Self { 512 self.name = Some(name.to_string()); 513 self 514 } 515 paragraph_background(mut self, paragraph_background: &str) -> Self516 pub fn paragraph_background(mut self, paragraph_background: &str) -> Self { 517 self.paragraph_background = Some(paragraph_background.to_string()); 518 self 519 } 520 paragraph_background_rgba(mut self, paragraph_background_rgba: &gdk::RGBA) -> Self521 pub fn paragraph_background_rgba(mut self, paragraph_background_rgba: &gdk::RGBA) -> Self { 522 self.paragraph_background_rgba = Some(paragraph_background_rgba.clone()); 523 self 524 } 525 paragraph_background_set(mut self, paragraph_background_set: bool) -> Self526 pub fn paragraph_background_set(mut self, paragraph_background_set: bool) -> Self { 527 self.paragraph_background_set = Some(paragraph_background_set); 528 self 529 } 530 pixels_above_lines(mut self, pixels_above_lines: i32) -> Self531 pub fn pixels_above_lines(mut self, pixels_above_lines: i32) -> Self { 532 self.pixels_above_lines = Some(pixels_above_lines); 533 self 534 } 535 pixels_above_lines_set(mut self, pixels_above_lines_set: bool) -> Self536 pub fn pixels_above_lines_set(mut self, pixels_above_lines_set: bool) -> Self { 537 self.pixels_above_lines_set = Some(pixels_above_lines_set); 538 self 539 } 540 pixels_below_lines(mut self, pixels_below_lines: i32) -> Self541 pub fn pixels_below_lines(mut self, pixels_below_lines: i32) -> Self { 542 self.pixels_below_lines = Some(pixels_below_lines); 543 self 544 } 545 pixels_below_lines_set(mut self, pixels_below_lines_set: bool) -> Self546 pub fn pixels_below_lines_set(mut self, pixels_below_lines_set: bool) -> Self { 547 self.pixels_below_lines_set = Some(pixels_below_lines_set); 548 self 549 } 550 pixels_inside_wrap(mut self, pixels_inside_wrap: i32) -> Self551 pub fn pixels_inside_wrap(mut self, pixels_inside_wrap: i32) -> Self { 552 self.pixels_inside_wrap = Some(pixels_inside_wrap); 553 self 554 } 555 pixels_inside_wrap_set(mut self, pixels_inside_wrap_set: bool) -> Self556 pub fn pixels_inside_wrap_set(mut self, pixels_inside_wrap_set: bool) -> Self { 557 self.pixels_inside_wrap_set = Some(pixels_inside_wrap_set); 558 self 559 } 560 right_margin(mut self, right_margin: i32) -> Self561 pub fn right_margin(mut self, right_margin: i32) -> Self { 562 self.right_margin = Some(right_margin); 563 self 564 } 565 right_margin_set(mut self, right_margin_set: bool) -> Self566 pub fn right_margin_set(mut self, right_margin_set: bool) -> Self { 567 self.right_margin_set = Some(right_margin_set); 568 self 569 } 570 rise(mut self, rise: i32) -> Self571 pub fn rise(mut self, rise: i32) -> Self { 572 self.rise = Some(rise); 573 self 574 } 575 rise_set(mut self, rise_set: bool) -> Self576 pub fn rise_set(mut self, rise_set: bool) -> Self { 577 self.rise_set = Some(rise_set); 578 self 579 } 580 scale(mut self, scale: f64) -> Self581 pub fn scale(mut self, scale: f64) -> Self { 582 self.scale = Some(scale); 583 self 584 } 585 scale_set(mut self, scale_set: bool) -> Self586 pub fn scale_set(mut self, scale_set: bool) -> Self { 587 self.scale_set = Some(scale_set); 588 self 589 } 590 size(mut self, size: i32) -> Self591 pub fn size(mut self, size: i32) -> Self { 592 self.size = Some(size); 593 self 594 } 595 size_points(mut self, size_points: f64) -> Self596 pub fn size_points(mut self, size_points: f64) -> Self { 597 self.size_points = Some(size_points); 598 self 599 } 600 size_set(mut self, size_set: bool) -> Self601 pub fn size_set(mut self, size_set: bool) -> Self { 602 self.size_set = Some(size_set); 603 self 604 } 605 stretch(mut self, stretch: pango::Stretch) -> Self606 pub fn stretch(mut self, stretch: pango::Stretch) -> Self { 607 self.stretch = Some(stretch); 608 self 609 } 610 stretch_set(mut self, stretch_set: bool) -> Self611 pub fn stretch_set(mut self, stretch_set: bool) -> Self { 612 self.stretch_set = Some(stretch_set); 613 self 614 } 615 strikethrough(mut self, strikethrough: bool) -> Self616 pub fn strikethrough(mut self, strikethrough: bool) -> Self { 617 self.strikethrough = Some(strikethrough); 618 self 619 } 620 strikethrough_rgba(mut self, strikethrough_rgba: &gdk::RGBA) -> Self621 pub fn strikethrough_rgba(mut self, strikethrough_rgba: &gdk::RGBA) -> Self { 622 self.strikethrough_rgba = Some(strikethrough_rgba.clone()); 623 self 624 } 625 strikethrough_rgba_set(mut self, strikethrough_rgba_set: bool) -> Self626 pub fn strikethrough_rgba_set(mut self, strikethrough_rgba_set: bool) -> Self { 627 self.strikethrough_rgba_set = Some(strikethrough_rgba_set); 628 self 629 } 630 strikethrough_set(mut self, strikethrough_set: bool) -> Self631 pub fn strikethrough_set(mut self, strikethrough_set: bool) -> Self { 632 self.strikethrough_set = Some(strikethrough_set); 633 self 634 } 635 style(mut self, style: pango::Style) -> Self636 pub fn style(mut self, style: pango::Style) -> Self { 637 self.style = Some(style); 638 self 639 } 640 style_set(mut self, style_set: bool) -> Self641 pub fn style_set(mut self, style_set: bool) -> Self { 642 self.style_set = Some(style_set); 643 self 644 } 645 tabs(mut self, tabs: &pango::TabArray) -> Self646 pub fn tabs(mut self, tabs: &pango::TabArray) -> Self { 647 self.tabs = Some(tabs.clone()); 648 self 649 } 650 tabs_set(mut self, tabs_set: bool) -> Self651 pub fn tabs_set(mut self, tabs_set: bool) -> Self { 652 self.tabs_set = Some(tabs_set); 653 self 654 } 655 underline(mut self, underline: pango::Underline) -> Self656 pub fn underline(mut self, underline: pango::Underline) -> Self { 657 self.underline = Some(underline); 658 self 659 } 660 underline_rgba(mut self, underline_rgba: &gdk::RGBA) -> Self661 pub fn underline_rgba(mut self, underline_rgba: &gdk::RGBA) -> Self { 662 self.underline_rgba = Some(underline_rgba.clone()); 663 self 664 } 665 underline_rgba_set(mut self, underline_rgba_set: bool) -> Self666 pub fn underline_rgba_set(mut self, underline_rgba_set: bool) -> Self { 667 self.underline_rgba_set = Some(underline_rgba_set); 668 self 669 } 670 underline_set(mut self, underline_set: bool) -> Self671 pub fn underline_set(mut self, underline_set: bool) -> Self { 672 self.underline_set = Some(underline_set); 673 self 674 } 675 variant(mut self, variant: pango::Variant) -> Self676 pub fn variant(mut self, variant: pango::Variant) -> Self { 677 self.variant = Some(variant); 678 self 679 } 680 variant_set(mut self, variant_set: bool) -> Self681 pub fn variant_set(mut self, variant_set: bool) -> Self { 682 self.variant_set = Some(variant_set); 683 self 684 } 685 weight(mut self, weight: i32) -> Self686 pub fn weight(mut self, weight: i32) -> Self { 687 self.weight = Some(weight); 688 self 689 } 690 weight_set(mut self, weight_set: bool) -> Self691 pub fn weight_set(mut self, weight_set: bool) -> Self { 692 self.weight_set = Some(weight_set); 693 self 694 } 695 wrap_mode(mut self, wrap_mode: WrapMode) -> Self696 pub fn wrap_mode(mut self, wrap_mode: WrapMode) -> Self { 697 self.wrap_mode = Some(wrap_mode); 698 self 699 } 700 wrap_mode_set(mut self, wrap_mode_set: bool) -> Self701 pub fn wrap_mode_set(mut self, wrap_mode_set: bool) -> Self { 702 self.wrap_mode_set = Some(wrap_mode_set); 703 self 704 } 705 } 706 707 pub const NONE_TEXT_TAG: Option<&TextTag> = None; 708 709 pub trait TextTagExt: 'static { 710 #[cfg(any(feature = "v3_20", feature = "dox"))] 711 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))] 712 #[doc(alias = "gtk_text_tag_changed")] changed(&self, size_changed: bool)713 fn changed(&self, size_changed: bool); 714 715 #[doc(alias = "gtk_text_tag_event")] event<P: IsA<glib::Object>>( &self, event_object: &P, event: &gdk::Event, iter: &TextIter, ) -> bool716 fn event<P: IsA<glib::Object>>( 717 &self, 718 event_object: &P, 719 event: &gdk::Event, 720 iter: &TextIter, 721 ) -> bool; 722 723 #[doc(alias = "gtk_text_tag_get_priority")] 724 #[doc(alias = "get_priority")] priority(&self) -> i32725 fn priority(&self) -> i32; 726 727 #[doc(alias = "gtk_text_tag_set_priority")] set_priority(&self, priority: i32)728 fn set_priority(&self, priority: i32); 729 730 #[doc(alias = "accumulative-margin")] is_accumulative_margin(&self) -> bool731 fn is_accumulative_margin(&self) -> bool; 732 733 #[doc(alias = "accumulative-margin")] set_accumulative_margin(&self, accumulative_margin: bool)734 fn set_accumulative_margin(&self, accumulative_margin: bool); 735 set_background(&self, background: Option<&str>)736 fn set_background(&self, background: Option<&str>); 737 738 #[doc(alias = "background-full-height")] is_background_full_height(&self) -> bool739 fn is_background_full_height(&self) -> bool; 740 741 #[doc(alias = "background-full-height")] set_background_full_height(&self, background_full_height: bool)742 fn set_background_full_height(&self, background_full_height: bool); 743 744 #[doc(alias = "background-full-height-set")] is_background_full_height_set(&self) -> bool745 fn is_background_full_height_set(&self) -> bool; 746 747 #[doc(alias = "background-full-height-set")] set_background_full_height_set(&self, background_full_height_set: bool)748 fn set_background_full_height_set(&self, background_full_height_set: bool); 749 750 #[doc(alias = "background-rgba")] background_rgba(&self) -> Option<gdk::RGBA>751 fn background_rgba(&self) -> Option<gdk::RGBA>; 752 753 #[doc(alias = "background-rgba")] set_background_rgba(&self, background_rgba: Option<&gdk::RGBA>)754 fn set_background_rgba(&self, background_rgba: Option<&gdk::RGBA>); 755 756 #[doc(alias = "background-set")] is_background_set(&self) -> bool757 fn is_background_set(&self) -> bool; 758 759 #[doc(alias = "background-set")] set_background_set(&self, background_set: bool)760 fn set_background_set(&self, background_set: bool); 761 direction(&self) -> TextDirection762 fn direction(&self) -> TextDirection; 763 set_direction(&self, direction: TextDirection)764 fn set_direction(&self, direction: TextDirection); 765 is_editable(&self) -> bool766 fn is_editable(&self) -> bool; 767 set_editable(&self, editable: bool)768 fn set_editable(&self, editable: bool); 769 770 #[doc(alias = "editable-set")] is_editable_set(&self) -> bool771 fn is_editable_set(&self) -> bool; 772 773 #[doc(alias = "editable-set")] set_editable_set(&self, editable_set: bool)774 fn set_editable_set(&self, editable_set: bool); 775 is_fallback(&self) -> bool776 fn is_fallback(&self) -> bool; 777 set_fallback(&self, fallback: bool)778 fn set_fallback(&self, fallback: bool); 779 780 #[doc(alias = "fallback-set")] is_fallback_set(&self) -> bool781 fn is_fallback_set(&self) -> bool; 782 783 #[doc(alias = "fallback-set")] set_fallback_set(&self, fallback_set: bool)784 fn set_fallback_set(&self, fallback_set: bool); 785 family(&self) -> Option<glib::GString>786 fn family(&self) -> Option<glib::GString>; 787 set_family(&self, family: Option<&str>)788 fn set_family(&self, family: Option<&str>); 789 790 #[doc(alias = "family-set")] is_family_set(&self) -> bool791 fn is_family_set(&self) -> bool; 792 793 #[doc(alias = "family-set")] set_family_set(&self, family_set: bool)794 fn set_family_set(&self, family_set: bool); 795 font(&self) -> Option<glib::GString>796 fn font(&self) -> Option<glib::GString>; 797 set_font(&self, font: Option<&str>)798 fn set_font(&self, font: Option<&str>); 799 800 #[doc(alias = "font-desc")] font_desc(&self) -> Option<pango::FontDescription>801 fn font_desc(&self) -> Option<pango::FontDescription>; 802 803 #[doc(alias = "font-desc")] set_font_desc(&self, font_desc: Option<&pango::FontDescription>)804 fn set_font_desc(&self, font_desc: Option<&pango::FontDescription>); 805 806 #[doc(alias = "font-features")] font_features(&self) -> Option<glib::GString>807 fn font_features(&self) -> Option<glib::GString>; 808 809 #[doc(alias = "font-features")] set_font_features(&self, font_features: Option<&str>)810 fn set_font_features(&self, font_features: Option<&str>); 811 812 #[doc(alias = "font-features-set")] is_font_features_set(&self) -> bool813 fn is_font_features_set(&self) -> bool; 814 815 #[doc(alias = "font-features-set")] set_font_features_set(&self, font_features_set: bool)816 fn set_font_features_set(&self, font_features_set: bool); 817 set_foreground(&self, foreground: Option<&str>)818 fn set_foreground(&self, foreground: Option<&str>); 819 820 #[doc(alias = "foreground-rgba")] foreground_rgba(&self) -> Option<gdk::RGBA>821 fn foreground_rgba(&self) -> Option<gdk::RGBA>; 822 823 #[doc(alias = "foreground-rgba")] set_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>)824 fn set_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>); 825 826 #[doc(alias = "foreground-set")] is_foreground_set(&self) -> bool827 fn is_foreground_set(&self) -> bool; 828 829 #[doc(alias = "foreground-set")] set_foreground_set(&self, foreground_set: bool)830 fn set_foreground_set(&self, foreground_set: bool); 831 indent(&self) -> i32832 fn indent(&self) -> i32; 833 set_indent(&self, indent: i32)834 fn set_indent(&self, indent: i32); 835 836 #[doc(alias = "indent-set")] is_indent_set(&self) -> bool837 fn is_indent_set(&self) -> bool; 838 839 #[doc(alias = "indent-set")] set_indent_set(&self, indent_set: bool)840 fn set_indent_set(&self, indent_set: bool); 841 is_invisible(&self) -> bool842 fn is_invisible(&self) -> bool; 843 set_invisible(&self, invisible: bool)844 fn set_invisible(&self, invisible: bool); 845 846 #[doc(alias = "invisible-set")] is_invisible_set(&self) -> bool847 fn is_invisible_set(&self) -> bool; 848 849 #[doc(alias = "invisible-set")] set_invisible_set(&self, invisible_set: bool)850 fn set_invisible_set(&self, invisible_set: bool); 851 justification(&self) -> Justification852 fn justification(&self) -> Justification; 853 set_justification(&self, justification: Justification)854 fn set_justification(&self, justification: Justification); 855 856 #[doc(alias = "justification-set")] is_justification_set(&self) -> bool857 fn is_justification_set(&self) -> bool; 858 859 #[doc(alias = "justification-set")] set_justification_set(&self, justification_set: bool)860 fn set_justification_set(&self, justification_set: bool); 861 language(&self) -> Option<glib::GString>862 fn language(&self) -> Option<glib::GString>; 863 set_language(&self, language: Option<&str>)864 fn set_language(&self, language: Option<&str>); 865 866 #[doc(alias = "language-set")] is_language_set(&self) -> bool867 fn is_language_set(&self) -> bool; 868 869 #[doc(alias = "language-set")] set_language_set(&self, language_set: bool)870 fn set_language_set(&self, language_set: bool); 871 872 #[doc(alias = "left-margin")] left_margin(&self) -> i32873 fn left_margin(&self) -> i32; 874 875 #[doc(alias = "left-margin")] set_left_margin(&self, left_margin: i32)876 fn set_left_margin(&self, left_margin: i32); 877 878 #[doc(alias = "left-margin-set")] is_left_margin_set(&self) -> bool879 fn is_left_margin_set(&self) -> bool; 880 881 #[doc(alias = "left-margin-set")] set_left_margin_set(&self, left_margin_set: bool)882 fn set_left_margin_set(&self, left_margin_set: bool); 883 884 #[doc(alias = "letter-spacing")] letter_spacing(&self) -> i32885 fn letter_spacing(&self) -> i32; 886 887 #[doc(alias = "letter-spacing")] set_letter_spacing(&self, letter_spacing: i32)888 fn set_letter_spacing(&self, letter_spacing: i32); 889 890 #[doc(alias = "letter-spacing-set")] is_letter_spacing_set(&self) -> bool891 fn is_letter_spacing_set(&self) -> bool; 892 893 #[doc(alias = "letter-spacing-set")] set_letter_spacing_set(&self, letter_spacing_set: bool)894 fn set_letter_spacing_set(&self, letter_spacing_set: bool); 895 name(&self) -> Option<glib::GString>896 fn name(&self) -> Option<glib::GString>; 897 898 #[doc(alias = "paragraph-background")] set_paragraph_background(&self, paragraph_background: Option<&str>)899 fn set_paragraph_background(&self, paragraph_background: Option<&str>); 900 901 #[doc(alias = "paragraph-background-rgba")] paragraph_background_rgba(&self) -> Option<gdk::RGBA>902 fn paragraph_background_rgba(&self) -> Option<gdk::RGBA>; 903 904 #[doc(alias = "paragraph-background-rgba")] set_paragraph_background_rgba(&self, paragraph_background_rgba: Option<&gdk::RGBA>)905 fn set_paragraph_background_rgba(&self, paragraph_background_rgba: Option<&gdk::RGBA>); 906 907 #[doc(alias = "paragraph-background-set")] is_paragraph_background_set(&self) -> bool908 fn is_paragraph_background_set(&self) -> bool; 909 910 #[doc(alias = "paragraph-background-set")] set_paragraph_background_set(&self, paragraph_background_set: bool)911 fn set_paragraph_background_set(&self, paragraph_background_set: bool); 912 913 #[doc(alias = "pixels-above-lines")] pixels_above_lines(&self) -> i32914 fn pixels_above_lines(&self) -> i32; 915 916 #[doc(alias = "pixels-above-lines")] set_pixels_above_lines(&self, pixels_above_lines: i32)917 fn set_pixels_above_lines(&self, pixels_above_lines: i32); 918 919 #[doc(alias = "pixels-above-lines-set")] is_pixels_above_lines_set(&self) -> bool920 fn is_pixels_above_lines_set(&self) -> bool; 921 922 #[doc(alias = "pixels-above-lines-set")] set_pixels_above_lines_set(&self, pixels_above_lines_set: bool)923 fn set_pixels_above_lines_set(&self, pixels_above_lines_set: bool); 924 925 #[doc(alias = "pixels-below-lines")] pixels_below_lines(&self) -> i32926 fn pixels_below_lines(&self) -> i32; 927 928 #[doc(alias = "pixels-below-lines")] set_pixels_below_lines(&self, pixels_below_lines: i32)929 fn set_pixels_below_lines(&self, pixels_below_lines: i32); 930 931 #[doc(alias = "pixels-below-lines-set")] is_pixels_below_lines_set(&self) -> bool932 fn is_pixels_below_lines_set(&self) -> bool; 933 934 #[doc(alias = "pixels-below-lines-set")] set_pixels_below_lines_set(&self, pixels_below_lines_set: bool)935 fn set_pixels_below_lines_set(&self, pixels_below_lines_set: bool); 936 937 #[doc(alias = "pixels-inside-wrap")] pixels_inside_wrap(&self) -> i32938 fn pixels_inside_wrap(&self) -> i32; 939 940 #[doc(alias = "pixels-inside-wrap")] set_pixels_inside_wrap(&self, pixels_inside_wrap: i32)941 fn set_pixels_inside_wrap(&self, pixels_inside_wrap: i32); 942 943 #[doc(alias = "pixels-inside-wrap-set")] is_pixels_inside_wrap_set(&self) -> bool944 fn is_pixels_inside_wrap_set(&self) -> bool; 945 946 #[doc(alias = "pixels-inside-wrap-set")] set_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool)947 fn set_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool); 948 949 #[doc(alias = "right-margin")] right_margin(&self) -> i32950 fn right_margin(&self) -> i32; 951 952 #[doc(alias = "right-margin")] set_right_margin(&self, right_margin: i32)953 fn set_right_margin(&self, right_margin: i32); 954 955 #[doc(alias = "right-margin-set")] is_right_margin_set(&self) -> bool956 fn is_right_margin_set(&self) -> bool; 957 958 #[doc(alias = "right-margin-set")] set_right_margin_set(&self, right_margin_set: bool)959 fn set_right_margin_set(&self, right_margin_set: bool); 960 rise(&self) -> i32961 fn rise(&self) -> i32; 962 set_rise(&self, rise: i32)963 fn set_rise(&self, rise: i32); 964 965 #[doc(alias = "rise-set")] is_rise_set(&self) -> bool966 fn is_rise_set(&self) -> bool; 967 968 #[doc(alias = "rise-set")] set_rise_set(&self, rise_set: bool)969 fn set_rise_set(&self, rise_set: bool); 970 scale(&self) -> f64971 fn scale(&self) -> f64; 972 set_scale(&self, scale: f64)973 fn set_scale(&self, scale: f64); 974 975 #[doc(alias = "scale-set")] is_scale_set(&self) -> bool976 fn is_scale_set(&self) -> bool; 977 978 #[doc(alias = "scale-set")] set_scale_set(&self, scale_set: bool)979 fn set_scale_set(&self, scale_set: bool); 980 size(&self) -> i32981 fn size(&self) -> i32; 982 set_size(&self, size: i32)983 fn set_size(&self, size: i32); 984 985 #[doc(alias = "size-points")] size_points(&self) -> f64986 fn size_points(&self) -> f64; 987 988 #[doc(alias = "size-points")] set_size_points(&self, size_points: f64)989 fn set_size_points(&self, size_points: f64); 990 991 #[doc(alias = "size-set")] is_size_set(&self) -> bool992 fn is_size_set(&self) -> bool; 993 994 #[doc(alias = "size-set")] set_size_set(&self, size_set: bool)995 fn set_size_set(&self, size_set: bool); 996 stretch(&self) -> pango::Stretch997 fn stretch(&self) -> pango::Stretch; 998 set_stretch(&self, stretch: pango::Stretch)999 fn set_stretch(&self, stretch: pango::Stretch); 1000 1001 #[doc(alias = "stretch-set")] is_stretch_set(&self) -> bool1002 fn is_stretch_set(&self) -> bool; 1003 1004 #[doc(alias = "stretch-set")] set_stretch_set(&self, stretch_set: bool)1005 fn set_stretch_set(&self, stretch_set: bool); 1006 is_strikethrough(&self) -> bool1007 fn is_strikethrough(&self) -> bool; 1008 set_strikethrough(&self, strikethrough: bool)1009 fn set_strikethrough(&self, strikethrough: bool); 1010 1011 #[doc(alias = "strikethrough-rgba")] strikethrough_rgba(&self) -> Option<gdk::RGBA>1012 fn strikethrough_rgba(&self) -> Option<gdk::RGBA>; 1013 1014 #[doc(alias = "strikethrough-rgba")] set_strikethrough_rgba(&self, strikethrough_rgba: Option<&gdk::RGBA>)1015 fn set_strikethrough_rgba(&self, strikethrough_rgba: Option<&gdk::RGBA>); 1016 1017 #[doc(alias = "strikethrough-rgba-set")] is_strikethrough_rgba_set(&self) -> bool1018 fn is_strikethrough_rgba_set(&self) -> bool; 1019 1020 #[doc(alias = "strikethrough-rgba-set")] set_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool)1021 fn set_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool); 1022 1023 #[doc(alias = "strikethrough-set")] is_strikethrough_set(&self) -> bool1024 fn is_strikethrough_set(&self) -> bool; 1025 1026 #[doc(alias = "strikethrough-set")] set_strikethrough_set(&self, strikethrough_set: bool)1027 fn set_strikethrough_set(&self, strikethrough_set: bool); 1028 style(&self) -> pango::Style1029 fn style(&self) -> pango::Style; 1030 set_style(&self, style: pango::Style)1031 fn set_style(&self, style: pango::Style); 1032 1033 #[doc(alias = "style-set")] is_style_set(&self) -> bool1034 fn is_style_set(&self) -> bool; 1035 1036 #[doc(alias = "style-set")] set_style_set(&self, style_set: bool)1037 fn set_style_set(&self, style_set: bool); 1038 tabs(&self) -> Option<pango::TabArray>1039 fn tabs(&self) -> Option<pango::TabArray>; 1040 set_tabs(&self, tabs: Option<&pango::TabArray>)1041 fn set_tabs(&self, tabs: Option<&pango::TabArray>); 1042 1043 #[doc(alias = "tabs-set")] is_tabs_set(&self) -> bool1044 fn is_tabs_set(&self) -> bool; 1045 1046 #[doc(alias = "tabs-set")] set_tabs_set(&self, tabs_set: bool)1047 fn set_tabs_set(&self, tabs_set: bool); 1048 underline(&self) -> pango::Underline1049 fn underline(&self) -> pango::Underline; 1050 set_underline(&self, underline: pango::Underline)1051 fn set_underline(&self, underline: pango::Underline); 1052 1053 #[doc(alias = "underline-rgba")] underline_rgba(&self) -> Option<gdk::RGBA>1054 fn underline_rgba(&self) -> Option<gdk::RGBA>; 1055 1056 #[doc(alias = "underline-rgba")] set_underline_rgba(&self, underline_rgba: Option<&gdk::RGBA>)1057 fn set_underline_rgba(&self, underline_rgba: Option<&gdk::RGBA>); 1058 1059 #[doc(alias = "underline-rgba-set")] is_underline_rgba_set(&self) -> bool1060 fn is_underline_rgba_set(&self) -> bool; 1061 1062 #[doc(alias = "underline-rgba-set")] set_underline_rgba_set(&self, underline_rgba_set: bool)1063 fn set_underline_rgba_set(&self, underline_rgba_set: bool); 1064 1065 #[doc(alias = "underline-set")] is_underline_set(&self) -> bool1066 fn is_underline_set(&self) -> bool; 1067 1068 #[doc(alias = "underline-set")] set_underline_set(&self, underline_set: bool)1069 fn set_underline_set(&self, underline_set: bool); 1070 variant(&self) -> pango::Variant1071 fn variant(&self) -> pango::Variant; 1072 set_variant(&self, variant: pango::Variant)1073 fn set_variant(&self, variant: pango::Variant); 1074 1075 #[doc(alias = "variant-set")] is_variant_set(&self) -> bool1076 fn is_variant_set(&self) -> bool; 1077 1078 #[doc(alias = "variant-set")] set_variant_set(&self, variant_set: bool)1079 fn set_variant_set(&self, variant_set: bool); 1080 weight(&self) -> i321081 fn weight(&self) -> i32; 1082 set_weight(&self, weight: i32)1083 fn set_weight(&self, weight: i32); 1084 1085 #[doc(alias = "weight-set")] is_weight_set(&self) -> bool1086 fn is_weight_set(&self) -> bool; 1087 1088 #[doc(alias = "weight-set")] set_weight_set(&self, weight_set: bool)1089 fn set_weight_set(&self, weight_set: bool); 1090 1091 #[doc(alias = "wrap-mode")] wrap_mode(&self) -> WrapMode1092 fn wrap_mode(&self) -> WrapMode; 1093 1094 #[doc(alias = "wrap-mode")] set_wrap_mode(&self, wrap_mode: WrapMode)1095 fn set_wrap_mode(&self, wrap_mode: WrapMode); 1096 1097 #[doc(alias = "wrap-mode-set")] wraps_mode_set(&self) -> bool1098 fn wraps_mode_set(&self) -> bool; 1099 1100 #[doc(alias = "wrap-mode-set")] set_wrap_mode_set(&self, wrap_mode_set: bool)1101 fn set_wrap_mode_set(&self, wrap_mode_set: bool); 1102 1103 #[doc(alias = "event")] connect_event< F: Fn(&Self, &glib::Object, &gdk::Event, &TextIter) -> glib::signal::Inhibit + 'static, >( &self, f: F, ) -> SignalHandlerId1104 fn connect_event< 1105 F: Fn(&Self, &glib::Object, &gdk::Event, &TextIter) -> glib::signal::Inhibit + 'static, 1106 >( 1107 &self, 1108 f: F, 1109 ) -> SignalHandlerId; 1110 1111 #[doc(alias = "accumulative-margin")] connect_accumulative_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1112 fn connect_accumulative_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1113 1114 #[doc(alias = "background")] connect_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1115 fn connect_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1116 1117 #[doc(alias = "background-full-height")] connect_background_full_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1118 fn connect_background_full_height_notify<F: Fn(&Self) + 'static>( 1119 &self, 1120 f: F, 1121 ) -> SignalHandlerId; 1122 1123 #[doc(alias = "background-full-height-set")] connect_background_full_height_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1124 fn connect_background_full_height_set_notify<F: Fn(&Self) + 'static>( 1125 &self, 1126 f: F, 1127 ) -> SignalHandlerId; 1128 1129 #[doc(alias = "background-rgba")] connect_background_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1130 fn connect_background_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1131 1132 #[doc(alias = "background-set")] connect_background_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1133 fn connect_background_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1134 1135 #[doc(alias = "direction")] connect_direction_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1136 fn connect_direction_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1137 1138 #[doc(alias = "editable")] connect_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1139 fn connect_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1140 1141 #[doc(alias = "editable-set")] connect_editable_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1142 fn connect_editable_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1143 1144 #[doc(alias = "fallback")] connect_fallback_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1145 fn connect_fallback_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1146 1147 #[doc(alias = "fallback-set")] connect_fallback_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1148 fn connect_fallback_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1149 1150 #[doc(alias = "family")] connect_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1151 fn connect_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1152 1153 #[doc(alias = "family-set")] connect_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1154 fn connect_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1155 1156 #[doc(alias = "font")] connect_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1157 fn connect_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1158 1159 #[doc(alias = "font-desc")] connect_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1160 fn connect_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1161 1162 #[doc(alias = "font-features")] connect_font_features_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1163 fn connect_font_features_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1164 1165 #[doc(alias = "font-features-set")] connect_font_features_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1166 fn connect_font_features_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1167 1168 #[doc(alias = "foreground")] connect_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1169 fn connect_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1170 1171 #[doc(alias = "foreground-rgba")] connect_foreground_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1172 fn connect_foreground_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1173 1174 #[doc(alias = "foreground-set")] connect_foreground_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1175 fn connect_foreground_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1176 1177 #[doc(alias = "indent")] connect_indent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1178 fn connect_indent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1179 1180 #[doc(alias = "indent-set")] connect_indent_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1181 fn connect_indent_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1182 1183 #[doc(alias = "invisible")] connect_invisible_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1184 fn connect_invisible_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1185 1186 #[doc(alias = "invisible-set")] connect_invisible_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1187 fn connect_invisible_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1188 1189 #[doc(alias = "justification")] connect_justification_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1190 fn connect_justification_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1191 1192 #[doc(alias = "justification-set")] connect_justification_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1193 fn connect_justification_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1194 1195 #[doc(alias = "language")] connect_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1196 fn connect_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1197 1198 #[doc(alias = "language-set")] connect_language_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1199 fn connect_language_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1200 1201 #[doc(alias = "left-margin")] connect_left_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1202 fn connect_left_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1203 1204 #[doc(alias = "left-margin-set")] connect_left_margin_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1205 fn connect_left_margin_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1206 1207 #[doc(alias = "letter-spacing")] connect_letter_spacing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1208 fn connect_letter_spacing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1209 1210 #[doc(alias = "letter-spacing-set")] connect_letter_spacing_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1211 fn connect_letter_spacing_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1212 1213 #[doc(alias = "paragraph-background")] connect_paragraph_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1214 fn connect_paragraph_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1215 1216 #[doc(alias = "paragraph-background-rgba")] connect_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1217 fn connect_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>( 1218 &self, 1219 f: F, 1220 ) -> SignalHandlerId; 1221 1222 #[doc(alias = "paragraph-background-set")] connect_paragraph_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1223 fn connect_paragraph_background_set_notify<F: Fn(&Self) + 'static>( 1224 &self, 1225 f: F, 1226 ) -> SignalHandlerId; 1227 1228 #[doc(alias = "pixels-above-lines")] connect_pixels_above_lines_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1229 fn connect_pixels_above_lines_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1230 1231 #[doc(alias = "pixels-above-lines-set")] connect_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1232 fn connect_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>( 1233 &self, 1234 f: F, 1235 ) -> SignalHandlerId; 1236 1237 #[doc(alias = "pixels-below-lines")] connect_pixels_below_lines_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1238 fn connect_pixels_below_lines_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1239 1240 #[doc(alias = "pixels-below-lines-set")] connect_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1241 fn connect_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>( 1242 &self, 1243 f: F, 1244 ) -> SignalHandlerId; 1245 1246 #[doc(alias = "pixels-inside-wrap")] connect_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1247 fn connect_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1248 1249 #[doc(alias = "pixels-inside-wrap-set")] connect_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1250 fn connect_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>( 1251 &self, 1252 f: F, 1253 ) -> SignalHandlerId; 1254 1255 #[doc(alias = "right-margin")] connect_right_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1256 fn connect_right_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1257 1258 #[doc(alias = "right-margin-set")] connect_right_margin_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1259 fn connect_right_margin_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1260 1261 #[doc(alias = "rise")] connect_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1262 fn connect_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1263 1264 #[doc(alias = "rise-set")] connect_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1265 fn connect_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1266 1267 #[doc(alias = "scale")] connect_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1268 fn connect_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1269 1270 #[doc(alias = "scale-set")] connect_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1271 fn connect_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1272 1273 #[doc(alias = "size")] connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1274 fn connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1275 1276 #[doc(alias = "size-points")] connect_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1277 fn connect_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1278 1279 #[doc(alias = "size-set")] connect_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1280 fn connect_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1281 1282 #[doc(alias = "stretch")] connect_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1283 fn connect_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1284 1285 #[doc(alias = "stretch-set")] connect_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1286 fn connect_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1287 1288 #[doc(alias = "strikethrough")] connect_strikethrough_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1289 fn connect_strikethrough_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1290 1291 #[doc(alias = "strikethrough-rgba")] connect_strikethrough_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1292 fn connect_strikethrough_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1293 1294 #[doc(alias = "strikethrough-rgba-set")] connect_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1295 fn connect_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>( 1296 &self, 1297 f: F, 1298 ) -> SignalHandlerId; 1299 1300 #[doc(alias = "strikethrough-set")] connect_strikethrough_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1301 fn connect_strikethrough_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1302 1303 #[doc(alias = "style")] connect_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1304 fn connect_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1305 1306 #[doc(alias = "style-set")] connect_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1307 fn connect_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1308 1309 #[doc(alias = "tabs")] connect_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1310 fn connect_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1311 1312 #[doc(alias = "tabs-set")] connect_tabs_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1313 fn connect_tabs_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1314 1315 #[doc(alias = "underline")] connect_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1316 fn connect_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1317 1318 #[doc(alias = "underline-rgba")] connect_underline_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1319 fn connect_underline_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1320 1321 #[doc(alias = "underline-rgba-set")] connect_underline_rgba_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1322 fn connect_underline_rgba_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1323 1324 #[doc(alias = "underline-set")] connect_underline_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1325 fn connect_underline_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1326 1327 #[doc(alias = "variant")] connect_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1328 fn connect_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1329 1330 #[doc(alias = "variant-set")] connect_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1331 fn connect_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1332 1333 #[doc(alias = "weight")] connect_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1334 fn connect_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1335 1336 #[doc(alias = "weight-set")] connect_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1337 fn connect_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1338 1339 #[doc(alias = "wrap-mode")] connect_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1340 fn connect_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1341 1342 #[doc(alias = "wrap-mode-set")] connect_wrap_mode_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1343 fn connect_wrap_mode_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 1344 } 1345 1346 impl<O: IsA<TextTag>> TextTagExt for O { 1347 #[cfg(any(feature = "v3_20", feature = "dox"))] 1348 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))] changed(&self, size_changed: bool)1349 fn changed(&self, size_changed: bool) { 1350 unsafe { 1351 ffi::gtk_text_tag_changed(self.as_ref().to_glib_none().0, size_changed.into_glib()); 1352 } 1353 } 1354 event<P: IsA<glib::Object>>( &self, event_object: &P, event: &gdk::Event, iter: &TextIter, ) -> bool1355 fn event<P: IsA<glib::Object>>( 1356 &self, 1357 event_object: &P, 1358 event: &gdk::Event, 1359 iter: &TextIter, 1360 ) -> bool { 1361 unsafe { 1362 from_glib(ffi::gtk_text_tag_event( 1363 self.as_ref().to_glib_none().0, 1364 event_object.as_ref().to_glib_none().0, 1365 mut_override(event.to_glib_none().0), 1366 iter.to_glib_none().0, 1367 )) 1368 } 1369 } 1370 priority(&self) -> i321371 fn priority(&self) -> i32 { 1372 unsafe { ffi::gtk_text_tag_get_priority(self.as_ref().to_glib_none().0) } 1373 } 1374 set_priority(&self, priority: i32)1375 fn set_priority(&self, priority: i32) { 1376 unsafe { 1377 ffi::gtk_text_tag_set_priority(self.as_ref().to_glib_none().0, priority); 1378 } 1379 } 1380 is_accumulative_margin(&self) -> bool1381 fn is_accumulative_margin(&self) -> bool { 1382 unsafe { 1383 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1384 glib::gobject_ffi::g_object_get_property( 1385 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1386 b"accumulative-margin\0".as_ptr() as *const _, 1387 value.to_glib_none_mut().0, 1388 ); 1389 value 1390 .get() 1391 .expect("Return Value for property `accumulative-margin` getter") 1392 } 1393 } 1394 set_accumulative_margin(&self, accumulative_margin: bool)1395 fn set_accumulative_margin(&self, accumulative_margin: bool) { 1396 unsafe { 1397 glib::gobject_ffi::g_object_set_property( 1398 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1399 b"accumulative-margin\0".as_ptr() as *const _, 1400 accumulative_margin.to_value().to_glib_none().0, 1401 ); 1402 } 1403 } 1404 set_background(&self, background: Option<&str>)1405 fn set_background(&self, background: Option<&str>) { 1406 unsafe { 1407 glib::gobject_ffi::g_object_set_property( 1408 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1409 b"background\0".as_ptr() as *const _, 1410 background.to_value().to_glib_none().0, 1411 ); 1412 } 1413 } 1414 is_background_full_height(&self) -> bool1415 fn is_background_full_height(&self) -> bool { 1416 unsafe { 1417 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1418 glib::gobject_ffi::g_object_get_property( 1419 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1420 b"background-full-height\0".as_ptr() as *const _, 1421 value.to_glib_none_mut().0, 1422 ); 1423 value 1424 .get() 1425 .expect("Return Value for property `background-full-height` getter") 1426 } 1427 } 1428 set_background_full_height(&self, background_full_height: bool)1429 fn set_background_full_height(&self, background_full_height: bool) { 1430 unsafe { 1431 glib::gobject_ffi::g_object_set_property( 1432 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1433 b"background-full-height\0".as_ptr() as *const _, 1434 background_full_height.to_value().to_glib_none().0, 1435 ); 1436 } 1437 } 1438 is_background_full_height_set(&self) -> bool1439 fn is_background_full_height_set(&self) -> bool { 1440 unsafe { 1441 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1442 glib::gobject_ffi::g_object_get_property( 1443 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1444 b"background-full-height-set\0".as_ptr() as *const _, 1445 value.to_glib_none_mut().0, 1446 ); 1447 value 1448 .get() 1449 .expect("Return Value for property `background-full-height-set` getter") 1450 } 1451 } 1452 set_background_full_height_set(&self, background_full_height_set: bool)1453 fn set_background_full_height_set(&self, background_full_height_set: bool) { 1454 unsafe { 1455 glib::gobject_ffi::g_object_set_property( 1456 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1457 b"background-full-height-set\0".as_ptr() as *const _, 1458 background_full_height_set.to_value().to_glib_none().0, 1459 ); 1460 } 1461 } 1462 background_rgba(&self) -> Option<gdk::RGBA>1463 fn background_rgba(&self) -> Option<gdk::RGBA> { 1464 unsafe { 1465 let mut value = glib::Value::from_type(<gdk::RGBA as StaticType>::static_type()); 1466 glib::gobject_ffi::g_object_get_property( 1467 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1468 b"background-rgba\0".as_ptr() as *const _, 1469 value.to_glib_none_mut().0, 1470 ); 1471 value 1472 .get() 1473 .expect("Return Value for property `background-rgba` getter") 1474 } 1475 } 1476 set_background_rgba(&self, background_rgba: Option<&gdk::RGBA>)1477 fn set_background_rgba(&self, background_rgba: Option<&gdk::RGBA>) { 1478 unsafe { 1479 glib::gobject_ffi::g_object_set_property( 1480 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1481 b"background-rgba\0".as_ptr() as *const _, 1482 background_rgba.to_value().to_glib_none().0, 1483 ); 1484 } 1485 } 1486 is_background_set(&self) -> bool1487 fn is_background_set(&self) -> bool { 1488 unsafe { 1489 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1490 glib::gobject_ffi::g_object_get_property( 1491 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1492 b"background-set\0".as_ptr() as *const _, 1493 value.to_glib_none_mut().0, 1494 ); 1495 value 1496 .get() 1497 .expect("Return Value for property `background-set` getter") 1498 } 1499 } 1500 set_background_set(&self, background_set: bool)1501 fn set_background_set(&self, background_set: bool) { 1502 unsafe { 1503 glib::gobject_ffi::g_object_set_property( 1504 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1505 b"background-set\0".as_ptr() as *const _, 1506 background_set.to_value().to_glib_none().0, 1507 ); 1508 } 1509 } 1510 direction(&self) -> TextDirection1511 fn direction(&self) -> TextDirection { 1512 unsafe { 1513 let mut value = glib::Value::from_type(<TextDirection as StaticType>::static_type()); 1514 glib::gobject_ffi::g_object_get_property( 1515 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1516 b"direction\0".as_ptr() as *const _, 1517 value.to_glib_none_mut().0, 1518 ); 1519 value 1520 .get() 1521 .expect("Return Value for property `direction` getter") 1522 } 1523 } 1524 set_direction(&self, direction: TextDirection)1525 fn set_direction(&self, direction: TextDirection) { 1526 unsafe { 1527 glib::gobject_ffi::g_object_set_property( 1528 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1529 b"direction\0".as_ptr() as *const _, 1530 direction.to_value().to_glib_none().0, 1531 ); 1532 } 1533 } 1534 is_editable(&self) -> bool1535 fn is_editable(&self) -> bool { 1536 unsafe { 1537 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1538 glib::gobject_ffi::g_object_get_property( 1539 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1540 b"editable\0".as_ptr() as *const _, 1541 value.to_glib_none_mut().0, 1542 ); 1543 value 1544 .get() 1545 .expect("Return Value for property `editable` getter") 1546 } 1547 } 1548 set_editable(&self, editable: bool)1549 fn set_editable(&self, editable: bool) { 1550 unsafe { 1551 glib::gobject_ffi::g_object_set_property( 1552 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1553 b"editable\0".as_ptr() as *const _, 1554 editable.to_value().to_glib_none().0, 1555 ); 1556 } 1557 } 1558 is_editable_set(&self) -> bool1559 fn is_editable_set(&self) -> bool { 1560 unsafe { 1561 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1562 glib::gobject_ffi::g_object_get_property( 1563 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1564 b"editable-set\0".as_ptr() as *const _, 1565 value.to_glib_none_mut().0, 1566 ); 1567 value 1568 .get() 1569 .expect("Return Value for property `editable-set` getter") 1570 } 1571 } 1572 set_editable_set(&self, editable_set: bool)1573 fn set_editable_set(&self, editable_set: bool) { 1574 unsafe { 1575 glib::gobject_ffi::g_object_set_property( 1576 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1577 b"editable-set\0".as_ptr() as *const _, 1578 editable_set.to_value().to_glib_none().0, 1579 ); 1580 } 1581 } 1582 is_fallback(&self) -> bool1583 fn is_fallback(&self) -> bool { 1584 unsafe { 1585 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1586 glib::gobject_ffi::g_object_get_property( 1587 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1588 b"fallback\0".as_ptr() as *const _, 1589 value.to_glib_none_mut().0, 1590 ); 1591 value 1592 .get() 1593 .expect("Return Value for property `fallback` getter") 1594 } 1595 } 1596 set_fallback(&self, fallback: bool)1597 fn set_fallback(&self, fallback: bool) { 1598 unsafe { 1599 glib::gobject_ffi::g_object_set_property( 1600 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1601 b"fallback\0".as_ptr() as *const _, 1602 fallback.to_value().to_glib_none().0, 1603 ); 1604 } 1605 } 1606 is_fallback_set(&self) -> bool1607 fn is_fallback_set(&self) -> bool { 1608 unsafe { 1609 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1610 glib::gobject_ffi::g_object_get_property( 1611 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1612 b"fallback-set\0".as_ptr() as *const _, 1613 value.to_glib_none_mut().0, 1614 ); 1615 value 1616 .get() 1617 .expect("Return Value for property `fallback-set` getter") 1618 } 1619 } 1620 set_fallback_set(&self, fallback_set: bool)1621 fn set_fallback_set(&self, fallback_set: bool) { 1622 unsafe { 1623 glib::gobject_ffi::g_object_set_property( 1624 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1625 b"fallback-set\0".as_ptr() as *const _, 1626 fallback_set.to_value().to_glib_none().0, 1627 ); 1628 } 1629 } 1630 family(&self) -> Option<glib::GString>1631 fn family(&self) -> Option<glib::GString> { 1632 unsafe { 1633 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1634 glib::gobject_ffi::g_object_get_property( 1635 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1636 b"family\0".as_ptr() as *const _, 1637 value.to_glib_none_mut().0, 1638 ); 1639 value 1640 .get() 1641 .expect("Return Value for property `family` getter") 1642 } 1643 } 1644 set_family(&self, family: Option<&str>)1645 fn set_family(&self, family: Option<&str>) { 1646 unsafe { 1647 glib::gobject_ffi::g_object_set_property( 1648 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1649 b"family\0".as_ptr() as *const _, 1650 family.to_value().to_glib_none().0, 1651 ); 1652 } 1653 } 1654 is_family_set(&self) -> bool1655 fn is_family_set(&self) -> bool { 1656 unsafe { 1657 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1658 glib::gobject_ffi::g_object_get_property( 1659 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1660 b"family-set\0".as_ptr() as *const _, 1661 value.to_glib_none_mut().0, 1662 ); 1663 value 1664 .get() 1665 .expect("Return Value for property `family-set` getter") 1666 } 1667 } 1668 set_family_set(&self, family_set: bool)1669 fn set_family_set(&self, family_set: bool) { 1670 unsafe { 1671 glib::gobject_ffi::g_object_set_property( 1672 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1673 b"family-set\0".as_ptr() as *const _, 1674 family_set.to_value().to_glib_none().0, 1675 ); 1676 } 1677 } 1678 font(&self) -> Option<glib::GString>1679 fn font(&self) -> Option<glib::GString> { 1680 unsafe { 1681 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1682 glib::gobject_ffi::g_object_get_property( 1683 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1684 b"font\0".as_ptr() as *const _, 1685 value.to_glib_none_mut().0, 1686 ); 1687 value 1688 .get() 1689 .expect("Return Value for property `font` getter") 1690 } 1691 } 1692 set_font(&self, font: Option<&str>)1693 fn set_font(&self, font: Option<&str>) { 1694 unsafe { 1695 glib::gobject_ffi::g_object_set_property( 1696 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1697 b"font\0".as_ptr() as *const _, 1698 font.to_value().to_glib_none().0, 1699 ); 1700 } 1701 } 1702 font_desc(&self) -> Option<pango::FontDescription>1703 fn font_desc(&self) -> Option<pango::FontDescription> { 1704 unsafe { 1705 let mut value = 1706 glib::Value::from_type(<pango::FontDescription as StaticType>::static_type()); 1707 glib::gobject_ffi::g_object_get_property( 1708 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1709 b"font-desc\0".as_ptr() as *const _, 1710 value.to_glib_none_mut().0, 1711 ); 1712 value 1713 .get() 1714 .expect("Return Value for property `font-desc` getter") 1715 } 1716 } 1717 set_font_desc(&self, font_desc: Option<&pango::FontDescription>)1718 fn set_font_desc(&self, font_desc: Option<&pango::FontDescription>) { 1719 unsafe { 1720 glib::gobject_ffi::g_object_set_property( 1721 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1722 b"font-desc\0".as_ptr() as *const _, 1723 font_desc.to_value().to_glib_none().0, 1724 ); 1725 } 1726 } 1727 font_features(&self) -> Option<glib::GString>1728 fn font_features(&self) -> Option<glib::GString> { 1729 unsafe { 1730 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1731 glib::gobject_ffi::g_object_get_property( 1732 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1733 b"font-features\0".as_ptr() as *const _, 1734 value.to_glib_none_mut().0, 1735 ); 1736 value 1737 .get() 1738 .expect("Return Value for property `font-features` getter") 1739 } 1740 } 1741 set_font_features(&self, font_features: Option<&str>)1742 fn set_font_features(&self, font_features: Option<&str>) { 1743 unsafe { 1744 glib::gobject_ffi::g_object_set_property( 1745 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1746 b"font-features\0".as_ptr() as *const _, 1747 font_features.to_value().to_glib_none().0, 1748 ); 1749 } 1750 } 1751 is_font_features_set(&self) -> bool1752 fn is_font_features_set(&self) -> bool { 1753 unsafe { 1754 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1755 glib::gobject_ffi::g_object_get_property( 1756 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1757 b"font-features-set\0".as_ptr() as *const _, 1758 value.to_glib_none_mut().0, 1759 ); 1760 value 1761 .get() 1762 .expect("Return Value for property `font-features-set` getter") 1763 } 1764 } 1765 set_font_features_set(&self, font_features_set: bool)1766 fn set_font_features_set(&self, font_features_set: bool) { 1767 unsafe { 1768 glib::gobject_ffi::g_object_set_property( 1769 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1770 b"font-features-set\0".as_ptr() as *const _, 1771 font_features_set.to_value().to_glib_none().0, 1772 ); 1773 } 1774 } 1775 set_foreground(&self, foreground: Option<&str>)1776 fn set_foreground(&self, foreground: Option<&str>) { 1777 unsafe { 1778 glib::gobject_ffi::g_object_set_property( 1779 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1780 b"foreground\0".as_ptr() as *const _, 1781 foreground.to_value().to_glib_none().0, 1782 ); 1783 } 1784 } 1785 foreground_rgba(&self) -> Option<gdk::RGBA>1786 fn foreground_rgba(&self) -> Option<gdk::RGBA> { 1787 unsafe { 1788 let mut value = glib::Value::from_type(<gdk::RGBA as StaticType>::static_type()); 1789 glib::gobject_ffi::g_object_get_property( 1790 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1791 b"foreground-rgba\0".as_ptr() as *const _, 1792 value.to_glib_none_mut().0, 1793 ); 1794 value 1795 .get() 1796 .expect("Return Value for property `foreground-rgba` getter") 1797 } 1798 } 1799 set_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>)1800 fn set_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>) { 1801 unsafe { 1802 glib::gobject_ffi::g_object_set_property( 1803 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1804 b"foreground-rgba\0".as_ptr() as *const _, 1805 foreground_rgba.to_value().to_glib_none().0, 1806 ); 1807 } 1808 } 1809 is_foreground_set(&self) -> bool1810 fn is_foreground_set(&self) -> bool { 1811 unsafe { 1812 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1813 glib::gobject_ffi::g_object_get_property( 1814 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1815 b"foreground-set\0".as_ptr() as *const _, 1816 value.to_glib_none_mut().0, 1817 ); 1818 value 1819 .get() 1820 .expect("Return Value for property `foreground-set` getter") 1821 } 1822 } 1823 set_foreground_set(&self, foreground_set: bool)1824 fn set_foreground_set(&self, foreground_set: bool) { 1825 unsafe { 1826 glib::gobject_ffi::g_object_set_property( 1827 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1828 b"foreground-set\0".as_ptr() as *const _, 1829 foreground_set.to_value().to_glib_none().0, 1830 ); 1831 } 1832 } 1833 indent(&self) -> i321834 fn indent(&self) -> i32 { 1835 unsafe { 1836 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 1837 glib::gobject_ffi::g_object_get_property( 1838 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1839 b"indent\0".as_ptr() as *const _, 1840 value.to_glib_none_mut().0, 1841 ); 1842 value 1843 .get() 1844 .expect("Return Value for property `indent` getter") 1845 } 1846 } 1847 set_indent(&self, indent: i32)1848 fn set_indent(&self, indent: i32) { 1849 unsafe { 1850 glib::gobject_ffi::g_object_set_property( 1851 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1852 b"indent\0".as_ptr() as *const _, 1853 indent.to_value().to_glib_none().0, 1854 ); 1855 } 1856 } 1857 is_indent_set(&self) -> bool1858 fn is_indent_set(&self) -> bool { 1859 unsafe { 1860 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1861 glib::gobject_ffi::g_object_get_property( 1862 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1863 b"indent-set\0".as_ptr() as *const _, 1864 value.to_glib_none_mut().0, 1865 ); 1866 value 1867 .get() 1868 .expect("Return Value for property `indent-set` getter") 1869 } 1870 } 1871 set_indent_set(&self, indent_set: bool)1872 fn set_indent_set(&self, indent_set: bool) { 1873 unsafe { 1874 glib::gobject_ffi::g_object_set_property( 1875 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1876 b"indent-set\0".as_ptr() as *const _, 1877 indent_set.to_value().to_glib_none().0, 1878 ); 1879 } 1880 } 1881 is_invisible(&self) -> bool1882 fn is_invisible(&self) -> bool { 1883 unsafe { 1884 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1885 glib::gobject_ffi::g_object_get_property( 1886 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1887 b"invisible\0".as_ptr() as *const _, 1888 value.to_glib_none_mut().0, 1889 ); 1890 value 1891 .get() 1892 .expect("Return Value for property `invisible` getter") 1893 } 1894 } 1895 set_invisible(&self, invisible: bool)1896 fn set_invisible(&self, invisible: bool) { 1897 unsafe { 1898 glib::gobject_ffi::g_object_set_property( 1899 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1900 b"invisible\0".as_ptr() as *const _, 1901 invisible.to_value().to_glib_none().0, 1902 ); 1903 } 1904 } 1905 is_invisible_set(&self) -> bool1906 fn is_invisible_set(&self) -> bool { 1907 unsafe { 1908 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1909 glib::gobject_ffi::g_object_get_property( 1910 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1911 b"invisible-set\0".as_ptr() as *const _, 1912 value.to_glib_none_mut().0, 1913 ); 1914 value 1915 .get() 1916 .expect("Return Value for property `invisible-set` getter") 1917 } 1918 } 1919 set_invisible_set(&self, invisible_set: bool)1920 fn set_invisible_set(&self, invisible_set: bool) { 1921 unsafe { 1922 glib::gobject_ffi::g_object_set_property( 1923 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1924 b"invisible-set\0".as_ptr() as *const _, 1925 invisible_set.to_value().to_glib_none().0, 1926 ); 1927 } 1928 } 1929 justification(&self) -> Justification1930 fn justification(&self) -> Justification { 1931 unsafe { 1932 let mut value = glib::Value::from_type(<Justification as StaticType>::static_type()); 1933 glib::gobject_ffi::g_object_get_property( 1934 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1935 b"justification\0".as_ptr() as *const _, 1936 value.to_glib_none_mut().0, 1937 ); 1938 value 1939 .get() 1940 .expect("Return Value for property `justification` getter") 1941 } 1942 } 1943 set_justification(&self, justification: Justification)1944 fn set_justification(&self, justification: Justification) { 1945 unsafe { 1946 glib::gobject_ffi::g_object_set_property( 1947 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1948 b"justification\0".as_ptr() as *const _, 1949 justification.to_value().to_glib_none().0, 1950 ); 1951 } 1952 } 1953 is_justification_set(&self) -> bool1954 fn is_justification_set(&self) -> bool { 1955 unsafe { 1956 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1957 glib::gobject_ffi::g_object_get_property( 1958 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1959 b"justification-set\0".as_ptr() as *const _, 1960 value.to_glib_none_mut().0, 1961 ); 1962 value 1963 .get() 1964 .expect("Return Value for property `justification-set` getter") 1965 } 1966 } 1967 set_justification_set(&self, justification_set: bool)1968 fn set_justification_set(&self, justification_set: bool) { 1969 unsafe { 1970 glib::gobject_ffi::g_object_set_property( 1971 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1972 b"justification-set\0".as_ptr() as *const _, 1973 justification_set.to_value().to_glib_none().0, 1974 ); 1975 } 1976 } 1977 language(&self) -> Option<glib::GString>1978 fn language(&self) -> Option<glib::GString> { 1979 unsafe { 1980 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1981 glib::gobject_ffi::g_object_get_property( 1982 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1983 b"language\0".as_ptr() as *const _, 1984 value.to_glib_none_mut().0, 1985 ); 1986 value 1987 .get() 1988 .expect("Return Value for property `language` getter") 1989 } 1990 } 1991 set_language(&self, language: Option<&str>)1992 fn set_language(&self, language: Option<&str>) { 1993 unsafe { 1994 glib::gobject_ffi::g_object_set_property( 1995 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1996 b"language\0".as_ptr() as *const _, 1997 language.to_value().to_glib_none().0, 1998 ); 1999 } 2000 } 2001 is_language_set(&self) -> bool2002 fn is_language_set(&self) -> bool { 2003 unsafe { 2004 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2005 glib::gobject_ffi::g_object_get_property( 2006 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2007 b"language-set\0".as_ptr() as *const _, 2008 value.to_glib_none_mut().0, 2009 ); 2010 value 2011 .get() 2012 .expect("Return Value for property `language-set` getter") 2013 } 2014 } 2015 set_language_set(&self, language_set: bool)2016 fn set_language_set(&self, language_set: bool) { 2017 unsafe { 2018 glib::gobject_ffi::g_object_set_property( 2019 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2020 b"language-set\0".as_ptr() as *const _, 2021 language_set.to_value().to_glib_none().0, 2022 ); 2023 } 2024 } 2025 left_margin(&self) -> i322026 fn left_margin(&self) -> i32 { 2027 unsafe { 2028 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 2029 glib::gobject_ffi::g_object_get_property( 2030 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2031 b"left-margin\0".as_ptr() as *const _, 2032 value.to_glib_none_mut().0, 2033 ); 2034 value 2035 .get() 2036 .expect("Return Value for property `left-margin` getter") 2037 } 2038 } 2039 set_left_margin(&self, left_margin: i32)2040 fn set_left_margin(&self, left_margin: i32) { 2041 unsafe { 2042 glib::gobject_ffi::g_object_set_property( 2043 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2044 b"left-margin\0".as_ptr() as *const _, 2045 left_margin.to_value().to_glib_none().0, 2046 ); 2047 } 2048 } 2049 is_left_margin_set(&self) -> bool2050 fn is_left_margin_set(&self) -> bool { 2051 unsafe { 2052 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2053 glib::gobject_ffi::g_object_get_property( 2054 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2055 b"left-margin-set\0".as_ptr() as *const _, 2056 value.to_glib_none_mut().0, 2057 ); 2058 value 2059 .get() 2060 .expect("Return Value for property `left-margin-set` getter") 2061 } 2062 } 2063 set_left_margin_set(&self, left_margin_set: bool)2064 fn set_left_margin_set(&self, left_margin_set: bool) { 2065 unsafe { 2066 glib::gobject_ffi::g_object_set_property( 2067 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2068 b"left-margin-set\0".as_ptr() as *const _, 2069 left_margin_set.to_value().to_glib_none().0, 2070 ); 2071 } 2072 } 2073 letter_spacing(&self) -> i322074 fn letter_spacing(&self) -> i32 { 2075 unsafe { 2076 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 2077 glib::gobject_ffi::g_object_get_property( 2078 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2079 b"letter-spacing\0".as_ptr() as *const _, 2080 value.to_glib_none_mut().0, 2081 ); 2082 value 2083 .get() 2084 .expect("Return Value for property `letter-spacing` getter") 2085 } 2086 } 2087 set_letter_spacing(&self, letter_spacing: i32)2088 fn set_letter_spacing(&self, letter_spacing: i32) { 2089 unsafe { 2090 glib::gobject_ffi::g_object_set_property( 2091 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2092 b"letter-spacing\0".as_ptr() as *const _, 2093 letter_spacing.to_value().to_glib_none().0, 2094 ); 2095 } 2096 } 2097 is_letter_spacing_set(&self) -> bool2098 fn is_letter_spacing_set(&self) -> bool { 2099 unsafe { 2100 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2101 glib::gobject_ffi::g_object_get_property( 2102 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2103 b"letter-spacing-set\0".as_ptr() as *const _, 2104 value.to_glib_none_mut().0, 2105 ); 2106 value 2107 .get() 2108 .expect("Return Value for property `letter-spacing-set` getter") 2109 } 2110 } 2111 set_letter_spacing_set(&self, letter_spacing_set: bool)2112 fn set_letter_spacing_set(&self, letter_spacing_set: bool) { 2113 unsafe { 2114 glib::gobject_ffi::g_object_set_property( 2115 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2116 b"letter-spacing-set\0".as_ptr() as *const _, 2117 letter_spacing_set.to_value().to_glib_none().0, 2118 ); 2119 } 2120 } 2121 name(&self) -> Option<glib::GString>2122 fn name(&self) -> Option<glib::GString> { 2123 unsafe { 2124 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 2125 glib::gobject_ffi::g_object_get_property( 2126 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2127 b"name\0".as_ptr() as *const _, 2128 value.to_glib_none_mut().0, 2129 ); 2130 value 2131 .get() 2132 .expect("Return Value for property `name` getter") 2133 } 2134 } 2135 set_paragraph_background(&self, paragraph_background: Option<&str>)2136 fn set_paragraph_background(&self, paragraph_background: Option<&str>) { 2137 unsafe { 2138 glib::gobject_ffi::g_object_set_property( 2139 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2140 b"paragraph-background\0".as_ptr() as *const _, 2141 paragraph_background.to_value().to_glib_none().0, 2142 ); 2143 } 2144 } 2145 paragraph_background_rgba(&self) -> Option<gdk::RGBA>2146 fn paragraph_background_rgba(&self) -> Option<gdk::RGBA> { 2147 unsafe { 2148 let mut value = glib::Value::from_type(<gdk::RGBA as StaticType>::static_type()); 2149 glib::gobject_ffi::g_object_get_property( 2150 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2151 b"paragraph-background-rgba\0".as_ptr() as *const _, 2152 value.to_glib_none_mut().0, 2153 ); 2154 value 2155 .get() 2156 .expect("Return Value for property `paragraph-background-rgba` getter") 2157 } 2158 } 2159 set_paragraph_background_rgba(&self, paragraph_background_rgba: Option<&gdk::RGBA>)2160 fn set_paragraph_background_rgba(&self, paragraph_background_rgba: Option<&gdk::RGBA>) { 2161 unsafe { 2162 glib::gobject_ffi::g_object_set_property( 2163 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2164 b"paragraph-background-rgba\0".as_ptr() as *const _, 2165 paragraph_background_rgba.to_value().to_glib_none().0, 2166 ); 2167 } 2168 } 2169 is_paragraph_background_set(&self) -> bool2170 fn is_paragraph_background_set(&self) -> bool { 2171 unsafe { 2172 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2173 glib::gobject_ffi::g_object_get_property( 2174 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2175 b"paragraph-background-set\0".as_ptr() as *const _, 2176 value.to_glib_none_mut().0, 2177 ); 2178 value 2179 .get() 2180 .expect("Return Value for property `paragraph-background-set` getter") 2181 } 2182 } 2183 set_paragraph_background_set(&self, paragraph_background_set: bool)2184 fn set_paragraph_background_set(&self, paragraph_background_set: bool) { 2185 unsafe { 2186 glib::gobject_ffi::g_object_set_property( 2187 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2188 b"paragraph-background-set\0".as_ptr() as *const _, 2189 paragraph_background_set.to_value().to_glib_none().0, 2190 ); 2191 } 2192 } 2193 pixels_above_lines(&self) -> i322194 fn pixels_above_lines(&self) -> i32 { 2195 unsafe { 2196 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 2197 glib::gobject_ffi::g_object_get_property( 2198 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2199 b"pixels-above-lines\0".as_ptr() as *const _, 2200 value.to_glib_none_mut().0, 2201 ); 2202 value 2203 .get() 2204 .expect("Return Value for property `pixels-above-lines` getter") 2205 } 2206 } 2207 set_pixels_above_lines(&self, pixels_above_lines: i32)2208 fn set_pixels_above_lines(&self, pixels_above_lines: i32) { 2209 unsafe { 2210 glib::gobject_ffi::g_object_set_property( 2211 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2212 b"pixels-above-lines\0".as_ptr() as *const _, 2213 pixels_above_lines.to_value().to_glib_none().0, 2214 ); 2215 } 2216 } 2217 is_pixels_above_lines_set(&self) -> bool2218 fn is_pixels_above_lines_set(&self) -> bool { 2219 unsafe { 2220 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2221 glib::gobject_ffi::g_object_get_property( 2222 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2223 b"pixels-above-lines-set\0".as_ptr() as *const _, 2224 value.to_glib_none_mut().0, 2225 ); 2226 value 2227 .get() 2228 .expect("Return Value for property `pixels-above-lines-set` getter") 2229 } 2230 } 2231 set_pixels_above_lines_set(&self, pixels_above_lines_set: bool)2232 fn set_pixels_above_lines_set(&self, pixels_above_lines_set: bool) { 2233 unsafe { 2234 glib::gobject_ffi::g_object_set_property( 2235 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2236 b"pixels-above-lines-set\0".as_ptr() as *const _, 2237 pixels_above_lines_set.to_value().to_glib_none().0, 2238 ); 2239 } 2240 } 2241 pixels_below_lines(&self) -> i322242 fn pixels_below_lines(&self) -> i32 { 2243 unsafe { 2244 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 2245 glib::gobject_ffi::g_object_get_property( 2246 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2247 b"pixels-below-lines\0".as_ptr() as *const _, 2248 value.to_glib_none_mut().0, 2249 ); 2250 value 2251 .get() 2252 .expect("Return Value for property `pixels-below-lines` getter") 2253 } 2254 } 2255 set_pixels_below_lines(&self, pixels_below_lines: i32)2256 fn set_pixels_below_lines(&self, pixels_below_lines: i32) { 2257 unsafe { 2258 glib::gobject_ffi::g_object_set_property( 2259 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2260 b"pixels-below-lines\0".as_ptr() as *const _, 2261 pixels_below_lines.to_value().to_glib_none().0, 2262 ); 2263 } 2264 } 2265 is_pixels_below_lines_set(&self) -> bool2266 fn is_pixels_below_lines_set(&self) -> bool { 2267 unsafe { 2268 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2269 glib::gobject_ffi::g_object_get_property( 2270 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2271 b"pixels-below-lines-set\0".as_ptr() as *const _, 2272 value.to_glib_none_mut().0, 2273 ); 2274 value 2275 .get() 2276 .expect("Return Value for property `pixels-below-lines-set` getter") 2277 } 2278 } 2279 set_pixels_below_lines_set(&self, pixels_below_lines_set: bool)2280 fn set_pixels_below_lines_set(&self, pixels_below_lines_set: bool) { 2281 unsafe { 2282 glib::gobject_ffi::g_object_set_property( 2283 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2284 b"pixels-below-lines-set\0".as_ptr() as *const _, 2285 pixels_below_lines_set.to_value().to_glib_none().0, 2286 ); 2287 } 2288 } 2289 pixels_inside_wrap(&self) -> i322290 fn pixels_inside_wrap(&self) -> i32 { 2291 unsafe { 2292 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 2293 glib::gobject_ffi::g_object_get_property( 2294 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2295 b"pixels-inside-wrap\0".as_ptr() as *const _, 2296 value.to_glib_none_mut().0, 2297 ); 2298 value 2299 .get() 2300 .expect("Return Value for property `pixels-inside-wrap` getter") 2301 } 2302 } 2303 set_pixels_inside_wrap(&self, pixels_inside_wrap: i32)2304 fn set_pixels_inside_wrap(&self, pixels_inside_wrap: i32) { 2305 unsafe { 2306 glib::gobject_ffi::g_object_set_property( 2307 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2308 b"pixels-inside-wrap\0".as_ptr() as *const _, 2309 pixels_inside_wrap.to_value().to_glib_none().0, 2310 ); 2311 } 2312 } 2313 is_pixels_inside_wrap_set(&self) -> bool2314 fn is_pixels_inside_wrap_set(&self) -> bool { 2315 unsafe { 2316 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2317 glib::gobject_ffi::g_object_get_property( 2318 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2319 b"pixels-inside-wrap-set\0".as_ptr() as *const _, 2320 value.to_glib_none_mut().0, 2321 ); 2322 value 2323 .get() 2324 .expect("Return Value for property `pixels-inside-wrap-set` getter") 2325 } 2326 } 2327 set_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool)2328 fn set_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool) { 2329 unsafe { 2330 glib::gobject_ffi::g_object_set_property( 2331 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2332 b"pixels-inside-wrap-set\0".as_ptr() as *const _, 2333 pixels_inside_wrap_set.to_value().to_glib_none().0, 2334 ); 2335 } 2336 } 2337 right_margin(&self) -> i322338 fn right_margin(&self) -> i32 { 2339 unsafe { 2340 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 2341 glib::gobject_ffi::g_object_get_property( 2342 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2343 b"right-margin\0".as_ptr() as *const _, 2344 value.to_glib_none_mut().0, 2345 ); 2346 value 2347 .get() 2348 .expect("Return Value for property `right-margin` getter") 2349 } 2350 } 2351 set_right_margin(&self, right_margin: i32)2352 fn set_right_margin(&self, right_margin: i32) { 2353 unsafe { 2354 glib::gobject_ffi::g_object_set_property( 2355 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2356 b"right-margin\0".as_ptr() as *const _, 2357 right_margin.to_value().to_glib_none().0, 2358 ); 2359 } 2360 } 2361 is_right_margin_set(&self) -> bool2362 fn is_right_margin_set(&self) -> bool { 2363 unsafe { 2364 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2365 glib::gobject_ffi::g_object_get_property( 2366 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2367 b"right-margin-set\0".as_ptr() as *const _, 2368 value.to_glib_none_mut().0, 2369 ); 2370 value 2371 .get() 2372 .expect("Return Value for property `right-margin-set` getter") 2373 } 2374 } 2375 set_right_margin_set(&self, right_margin_set: bool)2376 fn set_right_margin_set(&self, right_margin_set: bool) { 2377 unsafe { 2378 glib::gobject_ffi::g_object_set_property( 2379 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2380 b"right-margin-set\0".as_ptr() as *const _, 2381 right_margin_set.to_value().to_glib_none().0, 2382 ); 2383 } 2384 } 2385 rise(&self) -> i322386 fn rise(&self) -> i32 { 2387 unsafe { 2388 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 2389 glib::gobject_ffi::g_object_get_property( 2390 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2391 b"rise\0".as_ptr() as *const _, 2392 value.to_glib_none_mut().0, 2393 ); 2394 value 2395 .get() 2396 .expect("Return Value for property `rise` getter") 2397 } 2398 } 2399 set_rise(&self, rise: i32)2400 fn set_rise(&self, rise: i32) { 2401 unsafe { 2402 glib::gobject_ffi::g_object_set_property( 2403 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2404 b"rise\0".as_ptr() as *const _, 2405 rise.to_value().to_glib_none().0, 2406 ); 2407 } 2408 } 2409 is_rise_set(&self) -> bool2410 fn is_rise_set(&self) -> bool { 2411 unsafe { 2412 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2413 glib::gobject_ffi::g_object_get_property( 2414 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2415 b"rise-set\0".as_ptr() as *const _, 2416 value.to_glib_none_mut().0, 2417 ); 2418 value 2419 .get() 2420 .expect("Return Value for property `rise-set` getter") 2421 } 2422 } 2423 set_rise_set(&self, rise_set: bool)2424 fn set_rise_set(&self, rise_set: bool) { 2425 unsafe { 2426 glib::gobject_ffi::g_object_set_property( 2427 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2428 b"rise-set\0".as_ptr() as *const _, 2429 rise_set.to_value().to_glib_none().0, 2430 ); 2431 } 2432 } 2433 scale(&self) -> f642434 fn scale(&self) -> f64 { 2435 unsafe { 2436 let mut value = glib::Value::from_type(<f64 as StaticType>::static_type()); 2437 glib::gobject_ffi::g_object_get_property( 2438 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2439 b"scale\0".as_ptr() as *const _, 2440 value.to_glib_none_mut().0, 2441 ); 2442 value 2443 .get() 2444 .expect("Return Value for property `scale` getter") 2445 } 2446 } 2447 set_scale(&self, scale: f64)2448 fn set_scale(&self, scale: f64) { 2449 unsafe { 2450 glib::gobject_ffi::g_object_set_property( 2451 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2452 b"scale\0".as_ptr() as *const _, 2453 scale.to_value().to_glib_none().0, 2454 ); 2455 } 2456 } 2457 is_scale_set(&self) -> bool2458 fn is_scale_set(&self) -> bool { 2459 unsafe { 2460 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2461 glib::gobject_ffi::g_object_get_property( 2462 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2463 b"scale-set\0".as_ptr() as *const _, 2464 value.to_glib_none_mut().0, 2465 ); 2466 value 2467 .get() 2468 .expect("Return Value for property `scale-set` getter") 2469 } 2470 } 2471 set_scale_set(&self, scale_set: bool)2472 fn set_scale_set(&self, scale_set: bool) { 2473 unsafe { 2474 glib::gobject_ffi::g_object_set_property( 2475 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2476 b"scale-set\0".as_ptr() as *const _, 2477 scale_set.to_value().to_glib_none().0, 2478 ); 2479 } 2480 } 2481 size(&self) -> i322482 fn size(&self) -> i32 { 2483 unsafe { 2484 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 2485 glib::gobject_ffi::g_object_get_property( 2486 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2487 b"size\0".as_ptr() as *const _, 2488 value.to_glib_none_mut().0, 2489 ); 2490 value 2491 .get() 2492 .expect("Return Value for property `size` getter") 2493 } 2494 } 2495 set_size(&self, size: i32)2496 fn set_size(&self, size: i32) { 2497 unsafe { 2498 glib::gobject_ffi::g_object_set_property( 2499 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2500 b"size\0".as_ptr() as *const _, 2501 size.to_value().to_glib_none().0, 2502 ); 2503 } 2504 } 2505 size_points(&self) -> f642506 fn size_points(&self) -> f64 { 2507 unsafe { 2508 let mut value = glib::Value::from_type(<f64 as StaticType>::static_type()); 2509 glib::gobject_ffi::g_object_get_property( 2510 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2511 b"size-points\0".as_ptr() as *const _, 2512 value.to_glib_none_mut().0, 2513 ); 2514 value 2515 .get() 2516 .expect("Return Value for property `size-points` getter") 2517 } 2518 } 2519 set_size_points(&self, size_points: f64)2520 fn set_size_points(&self, size_points: f64) { 2521 unsafe { 2522 glib::gobject_ffi::g_object_set_property( 2523 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2524 b"size-points\0".as_ptr() as *const _, 2525 size_points.to_value().to_glib_none().0, 2526 ); 2527 } 2528 } 2529 is_size_set(&self) -> bool2530 fn is_size_set(&self) -> bool { 2531 unsafe { 2532 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2533 glib::gobject_ffi::g_object_get_property( 2534 self.to_glib_none().0 as *mut glib::gobject_ffi::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 } 2542 } 2543 set_size_set(&self, size_set: bool)2544 fn set_size_set(&self, size_set: bool) { 2545 unsafe { 2546 glib::gobject_ffi::g_object_set_property( 2547 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2548 b"size-set\0".as_ptr() as *const _, 2549 size_set.to_value().to_glib_none().0, 2550 ); 2551 } 2552 } 2553 stretch(&self) -> pango::Stretch2554 fn stretch(&self) -> pango::Stretch { 2555 unsafe { 2556 let mut value = glib::Value::from_type(<pango::Stretch as StaticType>::static_type()); 2557 glib::gobject_ffi::g_object_get_property( 2558 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2559 b"stretch\0".as_ptr() as *const _, 2560 value.to_glib_none_mut().0, 2561 ); 2562 value 2563 .get() 2564 .expect("Return Value for property `stretch` getter") 2565 } 2566 } 2567 set_stretch(&self, stretch: pango::Stretch)2568 fn set_stretch(&self, stretch: pango::Stretch) { 2569 unsafe { 2570 glib::gobject_ffi::g_object_set_property( 2571 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2572 b"stretch\0".as_ptr() as *const _, 2573 stretch.to_value().to_glib_none().0, 2574 ); 2575 } 2576 } 2577 is_stretch_set(&self) -> bool2578 fn is_stretch_set(&self) -> bool { 2579 unsafe { 2580 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2581 glib::gobject_ffi::g_object_get_property( 2582 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2583 b"stretch-set\0".as_ptr() as *const _, 2584 value.to_glib_none_mut().0, 2585 ); 2586 value 2587 .get() 2588 .expect("Return Value for property `stretch-set` getter") 2589 } 2590 } 2591 set_stretch_set(&self, stretch_set: bool)2592 fn set_stretch_set(&self, stretch_set: bool) { 2593 unsafe { 2594 glib::gobject_ffi::g_object_set_property( 2595 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2596 b"stretch-set\0".as_ptr() as *const _, 2597 stretch_set.to_value().to_glib_none().0, 2598 ); 2599 } 2600 } 2601 is_strikethrough(&self) -> bool2602 fn is_strikethrough(&self) -> bool { 2603 unsafe { 2604 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2605 glib::gobject_ffi::g_object_get_property( 2606 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2607 b"strikethrough\0".as_ptr() as *const _, 2608 value.to_glib_none_mut().0, 2609 ); 2610 value 2611 .get() 2612 .expect("Return Value for property `strikethrough` getter") 2613 } 2614 } 2615 set_strikethrough(&self, strikethrough: bool)2616 fn set_strikethrough(&self, strikethrough: bool) { 2617 unsafe { 2618 glib::gobject_ffi::g_object_set_property( 2619 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2620 b"strikethrough\0".as_ptr() as *const _, 2621 strikethrough.to_value().to_glib_none().0, 2622 ); 2623 } 2624 } 2625 strikethrough_rgba(&self) -> Option<gdk::RGBA>2626 fn strikethrough_rgba(&self) -> Option<gdk::RGBA> { 2627 unsafe { 2628 let mut value = glib::Value::from_type(<gdk::RGBA as StaticType>::static_type()); 2629 glib::gobject_ffi::g_object_get_property( 2630 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2631 b"strikethrough-rgba\0".as_ptr() as *const _, 2632 value.to_glib_none_mut().0, 2633 ); 2634 value 2635 .get() 2636 .expect("Return Value for property `strikethrough-rgba` getter") 2637 } 2638 } 2639 set_strikethrough_rgba(&self, strikethrough_rgba: Option<&gdk::RGBA>)2640 fn set_strikethrough_rgba(&self, strikethrough_rgba: Option<&gdk::RGBA>) { 2641 unsafe { 2642 glib::gobject_ffi::g_object_set_property( 2643 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2644 b"strikethrough-rgba\0".as_ptr() as *const _, 2645 strikethrough_rgba.to_value().to_glib_none().0, 2646 ); 2647 } 2648 } 2649 is_strikethrough_rgba_set(&self) -> bool2650 fn is_strikethrough_rgba_set(&self) -> bool { 2651 unsafe { 2652 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2653 glib::gobject_ffi::g_object_get_property( 2654 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2655 b"strikethrough-rgba-set\0".as_ptr() as *const _, 2656 value.to_glib_none_mut().0, 2657 ); 2658 value 2659 .get() 2660 .expect("Return Value for property `strikethrough-rgba-set` getter") 2661 } 2662 } 2663 set_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool)2664 fn set_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool) { 2665 unsafe { 2666 glib::gobject_ffi::g_object_set_property( 2667 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2668 b"strikethrough-rgba-set\0".as_ptr() as *const _, 2669 strikethrough_rgba_set.to_value().to_glib_none().0, 2670 ); 2671 } 2672 } 2673 is_strikethrough_set(&self) -> bool2674 fn is_strikethrough_set(&self) -> bool { 2675 unsafe { 2676 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2677 glib::gobject_ffi::g_object_get_property( 2678 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2679 b"strikethrough-set\0".as_ptr() as *const _, 2680 value.to_glib_none_mut().0, 2681 ); 2682 value 2683 .get() 2684 .expect("Return Value for property `strikethrough-set` getter") 2685 } 2686 } 2687 set_strikethrough_set(&self, strikethrough_set: bool)2688 fn set_strikethrough_set(&self, strikethrough_set: bool) { 2689 unsafe { 2690 glib::gobject_ffi::g_object_set_property( 2691 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2692 b"strikethrough-set\0".as_ptr() as *const _, 2693 strikethrough_set.to_value().to_glib_none().0, 2694 ); 2695 } 2696 } 2697 style(&self) -> pango::Style2698 fn style(&self) -> pango::Style { 2699 unsafe { 2700 let mut value = glib::Value::from_type(<pango::Style as StaticType>::static_type()); 2701 glib::gobject_ffi::g_object_get_property( 2702 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2703 b"style\0".as_ptr() as *const _, 2704 value.to_glib_none_mut().0, 2705 ); 2706 value 2707 .get() 2708 .expect("Return Value for property `style` getter") 2709 } 2710 } 2711 set_style(&self, style: pango::Style)2712 fn set_style(&self, style: pango::Style) { 2713 unsafe { 2714 glib::gobject_ffi::g_object_set_property( 2715 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2716 b"style\0".as_ptr() as *const _, 2717 style.to_value().to_glib_none().0, 2718 ); 2719 } 2720 } 2721 is_style_set(&self) -> bool2722 fn is_style_set(&self) -> bool { 2723 unsafe { 2724 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2725 glib::gobject_ffi::g_object_get_property( 2726 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2727 b"style-set\0".as_ptr() as *const _, 2728 value.to_glib_none_mut().0, 2729 ); 2730 value 2731 .get() 2732 .expect("Return Value for property `style-set` getter") 2733 } 2734 } 2735 set_style_set(&self, style_set: bool)2736 fn set_style_set(&self, style_set: bool) { 2737 unsafe { 2738 glib::gobject_ffi::g_object_set_property( 2739 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2740 b"style-set\0".as_ptr() as *const _, 2741 style_set.to_value().to_glib_none().0, 2742 ); 2743 } 2744 } 2745 tabs(&self) -> Option<pango::TabArray>2746 fn tabs(&self) -> Option<pango::TabArray> { 2747 unsafe { 2748 let mut value = glib::Value::from_type(<pango::TabArray as StaticType>::static_type()); 2749 glib::gobject_ffi::g_object_get_property( 2750 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2751 b"tabs\0".as_ptr() as *const _, 2752 value.to_glib_none_mut().0, 2753 ); 2754 value 2755 .get() 2756 .expect("Return Value for property `tabs` getter") 2757 } 2758 } 2759 set_tabs(&self, tabs: Option<&pango::TabArray>)2760 fn set_tabs(&self, tabs: Option<&pango::TabArray>) { 2761 unsafe { 2762 glib::gobject_ffi::g_object_set_property( 2763 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2764 b"tabs\0".as_ptr() as *const _, 2765 tabs.to_value().to_glib_none().0, 2766 ); 2767 } 2768 } 2769 is_tabs_set(&self) -> bool2770 fn is_tabs_set(&self) -> bool { 2771 unsafe { 2772 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2773 glib::gobject_ffi::g_object_get_property( 2774 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2775 b"tabs-set\0".as_ptr() as *const _, 2776 value.to_glib_none_mut().0, 2777 ); 2778 value 2779 .get() 2780 .expect("Return Value for property `tabs-set` getter") 2781 } 2782 } 2783 set_tabs_set(&self, tabs_set: bool)2784 fn set_tabs_set(&self, tabs_set: bool) { 2785 unsafe { 2786 glib::gobject_ffi::g_object_set_property( 2787 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2788 b"tabs-set\0".as_ptr() as *const _, 2789 tabs_set.to_value().to_glib_none().0, 2790 ); 2791 } 2792 } 2793 underline(&self) -> pango::Underline2794 fn underline(&self) -> pango::Underline { 2795 unsafe { 2796 let mut value = glib::Value::from_type(<pango::Underline as StaticType>::static_type()); 2797 glib::gobject_ffi::g_object_get_property( 2798 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2799 b"underline\0".as_ptr() as *const _, 2800 value.to_glib_none_mut().0, 2801 ); 2802 value 2803 .get() 2804 .expect("Return Value for property `underline` getter") 2805 } 2806 } 2807 set_underline(&self, underline: pango::Underline)2808 fn set_underline(&self, underline: pango::Underline) { 2809 unsafe { 2810 glib::gobject_ffi::g_object_set_property( 2811 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2812 b"underline\0".as_ptr() as *const _, 2813 underline.to_value().to_glib_none().0, 2814 ); 2815 } 2816 } 2817 underline_rgba(&self) -> Option<gdk::RGBA>2818 fn underline_rgba(&self) -> Option<gdk::RGBA> { 2819 unsafe { 2820 let mut value = glib::Value::from_type(<gdk::RGBA as StaticType>::static_type()); 2821 glib::gobject_ffi::g_object_get_property( 2822 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2823 b"underline-rgba\0".as_ptr() as *const _, 2824 value.to_glib_none_mut().0, 2825 ); 2826 value 2827 .get() 2828 .expect("Return Value for property `underline-rgba` getter") 2829 } 2830 } 2831 set_underline_rgba(&self, underline_rgba: Option<&gdk::RGBA>)2832 fn set_underline_rgba(&self, underline_rgba: Option<&gdk::RGBA>) { 2833 unsafe { 2834 glib::gobject_ffi::g_object_set_property( 2835 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2836 b"underline-rgba\0".as_ptr() as *const _, 2837 underline_rgba.to_value().to_glib_none().0, 2838 ); 2839 } 2840 } 2841 is_underline_rgba_set(&self) -> bool2842 fn is_underline_rgba_set(&self) -> bool { 2843 unsafe { 2844 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2845 glib::gobject_ffi::g_object_get_property( 2846 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2847 b"underline-rgba-set\0".as_ptr() as *const _, 2848 value.to_glib_none_mut().0, 2849 ); 2850 value 2851 .get() 2852 .expect("Return Value for property `underline-rgba-set` getter") 2853 } 2854 } 2855 set_underline_rgba_set(&self, underline_rgba_set: bool)2856 fn set_underline_rgba_set(&self, underline_rgba_set: bool) { 2857 unsafe { 2858 glib::gobject_ffi::g_object_set_property( 2859 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2860 b"underline-rgba-set\0".as_ptr() as *const _, 2861 underline_rgba_set.to_value().to_glib_none().0, 2862 ); 2863 } 2864 } 2865 is_underline_set(&self) -> bool2866 fn is_underline_set(&self) -> bool { 2867 unsafe { 2868 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2869 glib::gobject_ffi::g_object_get_property( 2870 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2871 b"underline-set\0".as_ptr() as *const _, 2872 value.to_glib_none_mut().0, 2873 ); 2874 value 2875 .get() 2876 .expect("Return Value for property `underline-set` getter") 2877 } 2878 } 2879 set_underline_set(&self, underline_set: bool)2880 fn set_underline_set(&self, underline_set: bool) { 2881 unsafe { 2882 glib::gobject_ffi::g_object_set_property( 2883 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2884 b"underline-set\0".as_ptr() as *const _, 2885 underline_set.to_value().to_glib_none().0, 2886 ); 2887 } 2888 } 2889 variant(&self) -> pango::Variant2890 fn variant(&self) -> pango::Variant { 2891 unsafe { 2892 let mut value = glib::Value::from_type(<pango::Variant as StaticType>::static_type()); 2893 glib::gobject_ffi::g_object_get_property( 2894 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2895 b"variant\0".as_ptr() as *const _, 2896 value.to_glib_none_mut().0, 2897 ); 2898 value 2899 .get() 2900 .expect("Return Value for property `variant` getter") 2901 } 2902 } 2903 set_variant(&self, variant: pango::Variant)2904 fn set_variant(&self, variant: pango::Variant) { 2905 unsafe { 2906 glib::gobject_ffi::g_object_set_property( 2907 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2908 b"variant\0".as_ptr() as *const _, 2909 variant.to_value().to_glib_none().0, 2910 ); 2911 } 2912 } 2913 is_variant_set(&self) -> bool2914 fn is_variant_set(&self) -> bool { 2915 unsafe { 2916 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2917 glib::gobject_ffi::g_object_get_property( 2918 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2919 b"variant-set\0".as_ptr() as *const _, 2920 value.to_glib_none_mut().0, 2921 ); 2922 value 2923 .get() 2924 .expect("Return Value for property `variant-set` getter") 2925 } 2926 } 2927 set_variant_set(&self, variant_set: bool)2928 fn set_variant_set(&self, variant_set: bool) { 2929 unsafe { 2930 glib::gobject_ffi::g_object_set_property( 2931 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2932 b"variant-set\0".as_ptr() as *const _, 2933 variant_set.to_value().to_glib_none().0, 2934 ); 2935 } 2936 } 2937 weight(&self) -> i322938 fn weight(&self) -> i32 { 2939 unsafe { 2940 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 2941 glib::gobject_ffi::g_object_get_property( 2942 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2943 b"weight\0".as_ptr() as *const _, 2944 value.to_glib_none_mut().0, 2945 ); 2946 value 2947 .get() 2948 .expect("Return Value for property `weight` getter") 2949 } 2950 } 2951 set_weight(&self, weight: i32)2952 fn set_weight(&self, weight: i32) { 2953 unsafe { 2954 glib::gobject_ffi::g_object_set_property( 2955 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2956 b"weight\0".as_ptr() as *const _, 2957 weight.to_value().to_glib_none().0, 2958 ); 2959 } 2960 } 2961 is_weight_set(&self) -> bool2962 fn is_weight_set(&self) -> bool { 2963 unsafe { 2964 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 2965 glib::gobject_ffi::g_object_get_property( 2966 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2967 b"weight-set\0".as_ptr() as *const _, 2968 value.to_glib_none_mut().0, 2969 ); 2970 value 2971 .get() 2972 .expect("Return Value for property `weight-set` getter") 2973 } 2974 } 2975 set_weight_set(&self, weight_set: bool)2976 fn set_weight_set(&self, weight_set: bool) { 2977 unsafe { 2978 glib::gobject_ffi::g_object_set_property( 2979 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2980 b"weight-set\0".as_ptr() as *const _, 2981 weight_set.to_value().to_glib_none().0, 2982 ); 2983 } 2984 } 2985 wrap_mode(&self) -> WrapMode2986 fn wrap_mode(&self) -> WrapMode { 2987 unsafe { 2988 let mut value = glib::Value::from_type(<WrapMode as StaticType>::static_type()); 2989 glib::gobject_ffi::g_object_get_property( 2990 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2991 b"wrap-mode\0".as_ptr() as *const _, 2992 value.to_glib_none_mut().0, 2993 ); 2994 value 2995 .get() 2996 .expect("Return Value for property `wrap-mode` getter") 2997 } 2998 } 2999 set_wrap_mode(&self, wrap_mode: WrapMode)3000 fn set_wrap_mode(&self, wrap_mode: WrapMode) { 3001 unsafe { 3002 glib::gobject_ffi::g_object_set_property( 3003 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 3004 b"wrap-mode\0".as_ptr() as *const _, 3005 wrap_mode.to_value().to_glib_none().0, 3006 ); 3007 } 3008 } 3009 wraps_mode_set(&self) -> bool3010 fn wraps_mode_set(&self) -> bool { 3011 unsafe { 3012 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 3013 glib::gobject_ffi::g_object_get_property( 3014 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 3015 b"wrap-mode-set\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-set` getter") 3021 } 3022 } 3023 set_wrap_mode_set(&self, wrap_mode_set: bool)3024 fn set_wrap_mode_set(&self, wrap_mode_set: bool) { 3025 unsafe { 3026 glib::gobject_ffi::g_object_set_property( 3027 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 3028 b"wrap-mode-set\0".as_ptr() as *const _, 3029 wrap_mode_set.to_value().to_glib_none().0, 3030 ); 3031 } 3032 } 3033 connect_event< F: Fn(&Self, &glib::Object, &gdk::Event, &TextIter) -> glib::signal::Inhibit + 'static, >( &self, f: F, ) -> SignalHandlerId3034 fn connect_event< 3035 F: Fn(&Self, &glib::Object, &gdk::Event, &TextIter) -> glib::signal::Inhibit + 'static, 3036 >( 3037 &self, 3038 f: F, 3039 ) -> SignalHandlerId { 3040 unsafe extern "C" fn event_trampoline< 3041 P: IsA<TextTag>, 3042 F: Fn(&P, &glib::Object, &gdk::Event, &TextIter) -> glib::signal::Inhibit + 'static, 3043 >( 3044 this: *mut ffi::GtkTextTag, 3045 object: *mut glib::gobject_ffi::GObject, 3046 event: *mut gdk::ffi::GdkEvent, 3047 iter: *mut ffi::GtkTextIter, 3048 f: glib::ffi::gpointer, 3049 ) -> glib::ffi::gboolean { 3050 let f: &F = &*(f as *const F); 3051 f( 3052 TextTag::from_glib_borrow(this).unsafe_cast_ref(), 3053 &from_glib_borrow(object), 3054 &from_glib_none(event), 3055 &from_glib_borrow(iter), 3056 ) 3057 .into_glib() 3058 } 3059 unsafe { 3060 let f: Box_<F> = Box_::new(f); 3061 connect_raw( 3062 self.as_ptr() as *mut _, 3063 b"event\0".as_ptr() as *const _, 3064 Some(transmute::<_, unsafe extern "C" fn()>( 3065 event_trampoline::<Self, F> as *const (), 3066 )), 3067 Box_::into_raw(f), 3068 ) 3069 } 3070 } 3071 connect_accumulative_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3072 fn connect_accumulative_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3073 unsafe extern "C" fn notify_accumulative_margin_trampoline< 3074 P: IsA<TextTag>, 3075 F: Fn(&P) + 'static, 3076 >( 3077 this: *mut ffi::GtkTextTag, 3078 _param_spec: glib::ffi::gpointer, 3079 f: glib::ffi::gpointer, 3080 ) { 3081 let f: &F = &*(f as *const F); 3082 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3083 } 3084 unsafe { 3085 let f: Box_<F> = Box_::new(f); 3086 connect_raw( 3087 self.as_ptr() as *mut _, 3088 b"notify::accumulative-margin\0".as_ptr() as *const _, 3089 Some(transmute::<_, unsafe extern "C" fn()>( 3090 notify_accumulative_margin_trampoline::<Self, F> as *const (), 3091 )), 3092 Box_::into_raw(f), 3093 ) 3094 } 3095 } 3096 connect_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3097 fn connect_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3098 unsafe extern "C" fn notify_background_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3099 this: *mut ffi::GtkTextTag, 3100 _param_spec: glib::ffi::gpointer, 3101 f: glib::ffi::gpointer, 3102 ) { 3103 let f: &F = &*(f as *const F); 3104 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3105 } 3106 unsafe { 3107 let f: Box_<F> = Box_::new(f); 3108 connect_raw( 3109 self.as_ptr() as *mut _, 3110 b"notify::background\0".as_ptr() as *const _, 3111 Some(transmute::<_, unsafe extern "C" fn()>( 3112 notify_background_trampoline::<Self, F> as *const (), 3113 )), 3114 Box_::into_raw(f), 3115 ) 3116 } 3117 } 3118 connect_background_full_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3119 fn connect_background_full_height_notify<F: Fn(&Self) + 'static>( 3120 &self, 3121 f: F, 3122 ) -> SignalHandlerId { 3123 unsafe extern "C" fn notify_background_full_height_trampoline< 3124 P: IsA<TextTag>, 3125 F: Fn(&P) + 'static, 3126 >( 3127 this: *mut ffi::GtkTextTag, 3128 _param_spec: glib::ffi::gpointer, 3129 f: glib::ffi::gpointer, 3130 ) { 3131 let f: &F = &*(f as *const F); 3132 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3133 } 3134 unsafe { 3135 let f: Box_<F> = Box_::new(f); 3136 connect_raw( 3137 self.as_ptr() as *mut _, 3138 b"notify::background-full-height\0".as_ptr() as *const _, 3139 Some(transmute::<_, unsafe extern "C" fn()>( 3140 notify_background_full_height_trampoline::<Self, F> as *const (), 3141 )), 3142 Box_::into_raw(f), 3143 ) 3144 } 3145 } 3146 connect_background_full_height_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3147 fn connect_background_full_height_set_notify<F: Fn(&Self) + 'static>( 3148 &self, 3149 f: F, 3150 ) -> SignalHandlerId { 3151 unsafe extern "C" fn notify_background_full_height_set_trampoline< 3152 P: IsA<TextTag>, 3153 F: Fn(&P) + 'static, 3154 >( 3155 this: *mut ffi::GtkTextTag, 3156 _param_spec: glib::ffi::gpointer, 3157 f: glib::ffi::gpointer, 3158 ) { 3159 let f: &F = &*(f as *const F); 3160 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 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-set\0".as_ptr() as *const _, 3167 Some(transmute::<_, unsafe extern "C" fn()>( 3168 notify_background_full_height_set_trampoline::<Self, F> as *const (), 3169 )), 3170 Box_::into_raw(f), 3171 ) 3172 } 3173 } 3174 connect_background_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3175 fn connect_background_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3176 unsafe extern "C" fn notify_background_rgba_trampoline< 3177 P: IsA<TextTag>, 3178 F: Fn(&P) + 'static, 3179 >( 3180 this: *mut ffi::GtkTextTag, 3181 _param_spec: glib::ffi::gpointer, 3182 f: glib::ffi::gpointer, 3183 ) { 3184 let f: &F = &*(f as *const F); 3185 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3186 } 3187 unsafe { 3188 let f: Box_<F> = Box_::new(f); 3189 connect_raw( 3190 self.as_ptr() as *mut _, 3191 b"notify::background-rgba\0".as_ptr() as *const _, 3192 Some(transmute::<_, unsafe extern "C" fn()>( 3193 notify_background_rgba_trampoline::<Self, F> as *const (), 3194 )), 3195 Box_::into_raw(f), 3196 ) 3197 } 3198 } 3199 connect_background_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3200 fn connect_background_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3201 unsafe extern "C" fn notify_background_set_trampoline< 3202 P: IsA<TextTag>, 3203 F: Fn(&P) + 'static, 3204 >( 3205 this: *mut ffi::GtkTextTag, 3206 _param_spec: glib::ffi::gpointer, 3207 f: glib::ffi::gpointer, 3208 ) { 3209 let f: &F = &*(f as *const F); 3210 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3211 } 3212 unsafe { 3213 let f: Box_<F> = Box_::new(f); 3214 connect_raw( 3215 self.as_ptr() as *mut _, 3216 b"notify::background-set\0".as_ptr() as *const _, 3217 Some(transmute::<_, unsafe extern "C" fn()>( 3218 notify_background_set_trampoline::<Self, F> as *const (), 3219 )), 3220 Box_::into_raw(f), 3221 ) 3222 } 3223 } 3224 connect_direction_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3225 fn connect_direction_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3226 unsafe extern "C" fn notify_direction_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3227 this: *mut ffi::GtkTextTag, 3228 _param_spec: glib::ffi::gpointer, 3229 f: glib::ffi::gpointer, 3230 ) { 3231 let f: &F = &*(f as *const F); 3232 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3233 } 3234 unsafe { 3235 let f: Box_<F> = Box_::new(f); 3236 connect_raw( 3237 self.as_ptr() as *mut _, 3238 b"notify::direction\0".as_ptr() as *const _, 3239 Some(transmute::<_, unsafe extern "C" fn()>( 3240 notify_direction_trampoline::<Self, F> as *const (), 3241 )), 3242 Box_::into_raw(f), 3243 ) 3244 } 3245 } 3246 connect_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3247 fn connect_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3248 unsafe extern "C" fn notify_editable_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3249 this: *mut ffi::GtkTextTag, 3250 _param_spec: glib::ffi::gpointer, 3251 f: glib::ffi::gpointer, 3252 ) { 3253 let f: &F = &*(f as *const F); 3254 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3255 } 3256 unsafe { 3257 let f: Box_<F> = Box_::new(f); 3258 connect_raw( 3259 self.as_ptr() as *mut _, 3260 b"notify::editable\0".as_ptr() as *const _, 3261 Some(transmute::<_, unsafe extern "C" fn()>( 3262 notify_editable_trampoline::<Self, F> as *const (), 3263 )), 3264 Box_::into_raw(f), 3265 ) 3266 } 3267 } 3268 connect_editable_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3269 fn connect_editable_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3270 unsafe extern "C" fn notify_editable_set_trampoline< 3271 P: IsA<TextTag>, 3272 F: Fn(&P) + 'static, 3273 >( 3274 this: *mut ffi::GtkTextTag, 3275 _param_spec: glib::ffi::gpointer, 3276 f: glib::ffi::gpointer, 3277 ) { 3278 let f: &F = &*(f as *const F); 3279 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3280 } 3281 unsafe { 3282 let f: Box_<F> = Box_::new(f); 3283 connect_raw( 3284 self.as_ptr() as *mut _, 3285 b"notify::editable-set\0".as_ptr() as *const _, 3286 Some(transmute::<_, unsafe extern "C" fn()>( 3287 notify_editable_set_trampoline::<Self, F> as *const (), 3288 )), 3289 Box_::into_raw(f), 3290 ) 3291 } 3292 } 3293 connect_fallback_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3294 fn connect_fallback_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3295 unsafe extern "C" fn notify_fallback_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3296 this: *mut ffi::GtkTextTag, 3297 _param_spec: glib::ffi::gpointer, 3298 f: glib::ffi::gpointer, 3299 ) { 3300 let f: &F = &*(f as *const F); 3301 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3302 } 3303 unsafe { 3304 let f: Box_<F> = Box_::new(f); 3305 connect_raw( 3306 self.as_ptr() as *mut _, 3307 b"notify::fallback\0".as_ptr() as *const _, 3308 Some(transmute::<_, unsafe extern "C" fn()>( 3309 notify_fallback_trampoline::<Self, F> as *const (), 3310 )), 3311 Box_::into_raw(f), 3312 ) 3313 } 3314 } 3315 connect_fallback_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3316 fn connect_fallback_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3317 unsafe extern "C" fn notify_fallback_set_trampoline< 3318 P: IsA<TextTag>, 3319 F: Fn(&P) + 'static, 3320 >( 3321 this: *mut ffi::GtkTextTag, 3322 _param_spec: glib::ffi::gpointer, 3323 f: glib::ffi::gpointer, 3324 ) { 3325 let f: &F = &*(f as *const F); 3326 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3327 } 3328 unsafe { 3329 let f: Box_<F> = Box_::new(f); 3330 connect_raw( 3331 self.as_ptr() as *mut _, 3332 b"notify::fallback-set\0".as_ptr() as *const _, 3333 Some(transmute::<_, unsafe extern "C" fn()>( 3334 notify_fallback_set_trampoline::<Self, F> as *const (), 3335 )), 3336 Box_::into_raw(f), 3337 ) 3338 } 3339 } 3340 connect_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3341 fn connect_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3342 unsafe extern "C" fn notify_family_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3343 this: *mut ffi::GtkTextTag, 3344 _param_spec: glib::ffi::gpointer, 3345 f: glib::ffi::gpointer, 3346 ) { 3347 let f: &F = &*(f as *const F); 3348 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3349 } 3350 unsafe { 3351 let f: Box_<F> = Box_::new(f); 3352 connect_raw( 3353 self.as_ptr() as *mut _, 3354 b"notify::family\0".as_ptr() as *const _, 3355 Some(transmute::<_, unsafe extern "C" fn()>( 3356 notify_family_trampoline::<Self, F> as *const (), 3357 )), 3358 Box_::into_raw(f), 3359 ) 3360 } 3361 } 3362 connect_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3363 fn connect_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3364 unsafe extern "C" fn notify_family_set_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3365 this: *mut ffi::GtkTextTag, 3366 _param_spec: glib::ffi::gpointer, 3367 f: glib::ffi::gpointer, 3368 ) { 3369 let f: &F = &*(f as *const F); 3370 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3371 } 3372 unsafe { 3373 let f: Box_<F> = Box_::new(f); 3374 connect_raw( 3375 self.as_ptr() as *mut _, 3376 b"notify::family-set\0".as_ptr() as *const _, 3377 Some(transmute::<_, unsafe extern "C" fn()>( 3378 notify_family_set_trampoline::<Self, F> as *const (), 3379 )), 3380 Box_::into_raw(f), 3381 ) 3382 } 3383 } 3384 connect_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3385 fn connect_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3386 unsafe extern "C" fn notify_font_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3387 this: *mut ffi::GtkTextTag, 3388 _param_spec: glib::ffi::gpointer, 3389 f: glib::ffi::gpointer, 3390 ) { 3391 let f: &F = &*(f as *const F); 3392 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3393 } 3394 unsafe { 3395 let f: Box_<F> = Box_::new(f); 3396 connect_raw( 3397 self.as_ptr() as *mut _, 3398 b"notify::font\0".as_ptr() as *const _, 3399 Some(transmute::<_, unsafe extern "C" fn()>( 3400 notify_font_trampoline::<Self, F> as *const (), 3401 )), 3402 Box_::into_raw(f), 3403 ) 3404 } 3405 } 3406 connect_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3407 fn connect_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3408 unsafe extern "C" fn notify_font_desc_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3409 this: *mut ffi::GtkTextTag, 3410 _param_spec: glib::ffi::gpointer, 3411 f: glib::ffi::gpointer, 3412 ) { 3413 let f: &F = &*(f as *const F); 3414 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3415 } 3416 unsafe { 3417 let f: Box_<F> = Box_::new(f); 3418 connect_raw( 3419 self.as_ptr() as *mut _, 3420 b"notify::font-desc\0".as_ptr() as *const _, 3421 Some(transmute::<_, unsafe extern "C" fn()>( 3422 notify_font_desc_trampoline::<Self, F> as *const (), 3423 )), 3424 Box_::into_raw(f), 3425 ) 3426 } 3427 } 3428 connect_font_features_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3429 fn connect_font_features_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3430 unsafe extern "C" fn notify_font_features_trampoline< 3431 P: IsA<TextTag>, 3432 F: Fn(&P) + 'static, 3433 >( 3434 this: *mut ffi::GtkTextTag, 3435 _param_spec: glib::ffi::gpointer, 3436 f: glib::ffi::gpointer, 3437 ) { 3438 let f: &F = &*(f as *const F); 3439 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3440 } 3441 unsafe { 3442 let f: Box_<F> = Box_::new(f); 3443 connect_raw( 3444 self.as_ptr() as *mut _, 3445 b"notify::font-features\0".as_ptr() as *const _, 3446 Some(transmute::<_, unsafe extern "C" fn()>( 3447 notify_font_features_trampoline::<Self, F> as *const (), 3448 )), 3449 Box_::into_raw(f), 3450 ) 3451 } 3452 } 3453 connect_font_features_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3454 fn connect_font_features_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3455 unsafe extern "C" fn notify_font_features_set_trampoline< 3456 P: IsA<TextTag>, 3457 F: Fn(&P) + 'static, 3458 >( 3459 this: *mut ffi::GtkTextTag, 3460 _param_spec: glib::ffi::gpointer, 3461 f: glib::ffi::gpointer, 3462 ) { 3463 let f: &F = &*(f as *const F); 3464 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3465 } 3466 unsafe { 3467 let f: Box_<F> = Box_::new(f); 3468 connect_raw( 3469 self.as_ptr() as *mut _, 3470 b"notify::font-features-set\0".as_ptr() as *const _, 3471 Some(transmute::<_, unsafe extern "C" fn()>( 3472 notify_font_features_set_trampoline::<Self, F> as *const (), 3473 )), 3474 Box_::into_raw(f), 3475 ) 3476 } 3477 } 3478 connect_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3479 fn connect_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3480 unsafe extern "C" fn notify_foreground_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3481 this: *mut ffi::GtkTextTag, 3482 _param_spec: glib::ffi::gpointer, 3483 f: glib::ffi::gpointer, 3484 ) { 3485 let f: &F = &*(f as *const F); 3486 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3487 } 3488 unsafe { 3489 let f: Box_<F> = Box_::new(f); 3490 connect_raw( 3491 self.as_ptr() as *mut _, 3492 b"notify::foreground\0".as_ptr() as *const _, 3493 Some(transmute::<_, unsafe extern "C" fn()>( 3494 notify_foreground_trampoline::<Self, F> as *const (), 3495 )), 3496 Box_::into_raw(f), 3497 ) 3498 } 3499 } 3500 connect_foreground_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3501 fn connect_foreground_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3502 unsafe extern "C" fn notify_foreground_rgba_trampoline< 3503 P: IsA<TextTag>, 3504 F: Fn(&P) + 'static, 3505 >( 3506 this: *mut ffi::GtkTextTag, 3507 _param_spec: glib::ffi::gpointer, 3508 f: glib::ffi::gpointer, 3509 ) { 3510 let f: &F = &*(f as *const F); 3511 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3512 } 3513 unsafe { 3514 let f: Box_<F> = Box_::new(f); 3515 connect_raw( 3516 self.as_ptr() as *mut _, 3517 b"notify::foreground-rgba\0".as_ptr() as *const _, 3518 Some(transmute::<_, unsafe extern "C" fn()>( 3519 notify_foreground_rgba_trampoline::<Self, F> as *const (), 3520 )), 3521 Box_::into_raw(f), 3522 ) 3523 } 3524 } 3525 connect_foreground_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3526 fn connect_foreground_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3527 unsafe extern "C" fn notify_foreground_set_trampoline< 3528 P: IsA<TextTag>, 3529 F: Fn(&P) + 'static, 3530 >( 3531 this: *mut ffi::GtkTextTag, 3532 _param_spec: glib::ffi::gpointer, 3533 f: glib::ffi::gpointer, 3534 ) { 3535 let f: &F = &*(f as *const F); 3536 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3537 } 3538 unsafe { 3539 let f: Box_<F> = Box_::new(f); 3540 connect_raw( 3541 self.as_ptr() as *mut _, 3542 b"notify::foreground-set\0".as_ptr() as *const _, 3543 Some(transmute::<_, unsafe extern "C" fn()>( 3544 notify_foreground_set_trampoline::<Self, F> as *const (), 3545 )), 3546 Box_::into_raw(f), 3547 ) 3548 } 3549 } 3550 connect_indent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3551 fn connect_indent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3552 unsafe extern "C" fn notify_indent_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3553 this: *mut ffi::GtkTextTag, 3554 _param_spec: glib::ffi::gpointer, 3555 f: glib::ffi::gpointer, 3556 ) { 3557 let f: &F = &*(f as *const F); 3558 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3559 } 3560 unsafe { 3561 let f: Box_<F> = Box_::new(f); 3562 connect_raw( 3563 self.as_ptr() as *mut _, 3564 b"notify::indent\0".as_ptr() as *const _, 3565 Some(transmute::<_, unsafe extern "C" fn()>( 3566 notify_indent_trampoline::<Self, F> as *const (), 3567 )), 3568 Box_::into_raw(f), 3569 ) 3570 } 3571 } 3572 connect_indent_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3573 fn connect_indent_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3574 unsafe extern "C" fn notify_indent_set_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3575 this: *mut ffi::GtkTextTag, 3576 _param_spec: glib::ffi::gpointer, 3577 f: glib::ffi::gpointer, 3578 ) { 3579 let f: &F = &*(f as *const F); 3580 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3581 } 3582 unsafe { 3583 let f: Box_<F> = Box_::new(f); 3584 connect_raw( 3585 self.as_ptr() as *mut _, 3586 b"notify::indent-set\0".as_ptr() as *const _, 3587 Some(transmute::<_, unsafe extern "C" fn()>( 3588 notify_indent_set_trampoline::<Self, F> as *const (), 3589 )), 3590 Box_::into_raw(f), 3591 ) 3592 } 3593 } 3594 connect_invisible_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3595 fn connect_invisible_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3596 unsafe extern "C" fn notify_invisible_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3597 this: *mut ffi::GtkTextTag, 3598 _param_spec: glib::ffi::gpointer, 3599 f: glib::ffi::gpointer, 3600 ) { 3601 let f: &F = &*(f as *const F); 3602 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3603 } 3604 unsafe { 3605 let f: Box_<F> = Box_::new(f); 3606 connect_raw( 3607 self.as_ptr() as *mut _, 3608 b"notify::invisible\0".as_ptr() as *const _, 3609 Some(transmute::<_, unsafe extern "C" fn()>( 3610 notify_invisible_trampoline::<Self, F> as *const (), 3611 )), 3612 Box_::into_raw(f), 3613 ) 3614 } 3615 } 3616 connect_invisible_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3617 fn connect_invisible_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3618 unsafe extern "C" fn notify_invisible_set_trampoline< 3619 P: IsA<TextTag>, 3620 F: Fn(&P) + 'static, 3621 >( 3622 this: *mut ffi::GtkTextTag, 3623 _param_spec: glib::ffi::gpointer, 3624 f: glib::ffi::gpointer, 3625 ) { 3626 let f: &F = &*(f as *const F); 3627 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3628 } 3629 unsafe { 3630 let f: Box_<F> = Box_::new(f); 3631 connect_raw( 3632 self.as_ptr() as *mut _, 3633 b"notify::invisible-set\0".as_ptr() as *const _, 3634 Some(transmute::<_, unsafe extern "C" fn()>( 3635 notify_invisible_set_trampoline::<Self, F> as *const (), 3636 )), 3637 Box_::into_raw(f), 3638 ) 3639 } 3640 } 3641 connect_justification_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3642 fn connect_justification_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3643 unsafe extern "C" fn notify_justification_trampoline< 3644 P: IsA<TextTag>, 3645 F: Fn(&P) + 'static, 3646 >( 3647 this: *mut ffi::GtkTextTag, 3648 _param_spec: glib::ffi::gpointer, 3649 f: glib::ffi::gpointer, 3650 ) { 3651 let f: &F = &*(f as *const F); 3652 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3653 } 3654 unsafe { 3655 let f: Box_<F> = Box_::new(f); 3656 connect_raw( 3657 self.as_ptr() as *mut _, 3658 b"notify::justification\0".as_ptr() as *const _, 3659 Some(transmute::<_, unsafe extern "C" fn()>( 3660 notify_justification_trampoline::<Self, F> as *const (), 3661 )), 3662 Box_::into_raw(f), 3663 ) 3664 } 3665 } 3666 connect_justification_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3667 fn connect_justification_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3668 unsafe extern "C" fn notify_justification_set_trampoline< 3669 P: IsA<TextTag>, 3670 F: Fn(&P) + 'static, 3671 >( 3672 this: *mut ffi::GtkTextTag, 3673 _param_spec: glib::ffi::gpointer, 3674 f: glib::ffi::gpointer, 3675 ) { 3676 let f: &F = &*(f as *const F); 3677 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3678 } 3679 unsafe { 3680 let f: Box_<F> = Box_::new(f); 3681 connect_raw( 3682 self.as_ptr() as *mut _, 3683 b"notify::justification-set\0".as_ptr() as *const _, 3684 Some(transmute::<_, unsafe extern "C" fn()>( 3685 notify_justification_set_trampoline::<Self, F> as *const (), 3686 )), 3687 Box_::into_raw(f), 3688 ) 3689 } 3690 } 3691 connect_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3692 fn connect_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3693 unsafe extern "C" fn notify_language_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3694 this: *mut ffi::GtkTextTag, 3695 _param_spec: glib::ffi::gpointer, 3696 f: glib::ffi::gpointer, 3697 ) { 3698 let f: &F = &*(f as *const F); 3699 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3700 } 3701 unsafe { 3702 let f: Box_<F> = Box_::new(f); 3703 connect_raw( 3704 self.as_ptr() as *mut _, 3705 b"notify::language\0".as_ptr() as *const _, 3706 Some(transmute::<_, unsafe extern "C" fn()>( 3707 notify_language_trampoline::<Self, F> as *const (), 3708 )), 3709 Box_::into_raw(f), 3710 ) 3711 } 3712 } 3713 connect_language_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3714 fn connect_language_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3715 unsafe extern "C" fn notify_language_set_trampoline< 3716 P: IsA<TextTag>, 3717 F: Fn(&P) + 'static, 3718 >( 3719 this: *mut ffi::GtkTextTag, 3720 _param_spec: glib::ffi::gpointer, 3721 f: glib::ffi::gpointer, 3722 ) { 3723 let f: &F = &*(f as *const F); 3724 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3725 } 3726 unsafe { 3727 let f: Box_<F> = Box_::new(f); 3728 connect_raw( 3729 self.as_ptr() as *mut _, 3730 b"notify::language-set\0".as_ptr() as *const _, 3731 Some(transmute::<_, unsafe extern "C" fn()>( 3732 notify_language_set_trampoline::<Self, F> as *const (), 3733 )), 3734 Box_::into_raw(f), 3735 ) 3736 } 3737 } 3738 connect_left_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3739 fn connect_left_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3740 unsafe extern "C" fn notify_left_margin_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 3741 this: *mut ffi::GtkTextTag, 3742 _param_spec: glib::ffi::gpointer, 3743 f: glib::ffi::gpointer, 3744 ) { 3745 let f: &F = &*(f as *const F); 3746 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3747 } 3748 unsafe { 3749 let f: Box_<F> = Box_::new(f); 3750 connect_raw( 3751 self.as_ptr() as *mut _, 3752 b"notify::left-margin\0".as_ptr() as *const _, 3753 Some(transmute::<_, unsafe extern "C" fn()>( 3754 notify_left_margin_trampoline::<Self, F> as *const (), 3755 )), 3756 Box_::into_raw(f), 3757 ) 3758 } 3759 } 3760 connect_left_margin_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3761 fn connect_left_margin_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3762 unsafe extern "C" fn notify_left_margin_set_trampoline< 3763 P: IsA<TextTag>, 3764 F: Fn(&P) + 'static, 3765 >( 3766 this: *mut ffi::GtkTextTag, 3767 _param_spec: glib::ffi::gpointer, 3768 f: glib::ffi::gpointer, 3769 ) { 3770 let f: &F = &*(f as *const F); 3771 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3772 } 3773 unsafe { 3774 let f: Box_<F> = Box_::new(f); 3775 connect_raw( 3776 self.as_ptr() as *mut _, 3777 b"notify::left-margin-set\0".as_ptr() as *const _, 3778 Some(transmute::<_, unsafe extern "C" fn()>( 3779 notify_left_margin_set_trampoline::<Self, F> as *const (), 3780 )), 3781 Box_::into_raw(f), 3782 ) 3783 } 3784 } 3785 connect_letter_spacing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3786 fn connect_letter_spacing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3787 unsafe extern "C" fn notify_letter_spacing_trampoline< 3788 P: IsA<TextTag>, 3789 F: Fn(&P) + 'static, 3790 >( 3791 this: *mut ffi::GtkTextTag, 3792 _param_spec: glib::ffi::gpointer, 3793 f: glib::ffi::gpointer, 3794 ) { 3795 let f: &F = &*(f as *const F); 3796 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3797 } 3798 unsafe { 3799 let f: Box_<F> = Box_::new(f); 3800 connect_raw( 3801 self.as_ptr() as *mut _, 3802 b"notify::letter-spacing\0".as_ptr() as *const _, 3803 Some(transmute::<_, unsafe extern "C" fn()>( 3804 notify_letter_spacing_trampoline::<Self, F> as *const (), 3805 )), 3806 Box_::into_raw(f), 3807 ) 3808 } 3809 } 3810 connect_letter_spacing_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3811 fn connect_letter_spacing_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3812 unsafe extern "C" fn notify_letter_spacing_set_trampoline< 3813 P: IsA<TextTag>, 3814 F: Fn(&P) + 'static, 3815 >( 3816 this: *mut ffi::GtkTextTag, 3817 _param_spec: glib::ffi::gpointer, 3818 f: glib::ffi::gpointer, 3819 ) { 3820 let f: &F = &*(f as *const F); 3821 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3822 } 3823 unsafe { 3824 let f: Box_<F> = Box_::new(f); 3825 connect_raw( 3826 self.as_ptr() as *mut _, 3827 b"notify::letter-spacing-set\0".as_ptr() as *const _, 3828 Some(transmute::<_, unsafe extern "C" fn()>( 3829 notify_letter_spacing_set_trampoline::<Self, F> as *const (), 3830 )), 3831 Box_::into_raw(f), 3832 ) 3833 } 3834 } 3835 connect_paragraph_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3836 fn connect_paragraph_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3837 unsafe extern "C" fn notify_paragraph_background_trampoline< 3838 P: IsA<TextTag>, 3839 F: Fn(&P) + 'static, 3840 >( 3841 this: *mut ffi::GtkTextTag, 3842 _param_spec: glib::ffi::gpointer, 3843 f: glib::ffi::gpointer, 3844 ) { 3845 let f: &F = &*(f as *const F); 3846 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3847 } 3848 unsafe { 3849 let f: Box_<F> = Box_::new(f); 3850 connect_raw( 3851 self.as_ptr() as *mut _, 3852 b"notify::paragraph-background\0".as_ptr() as *const _, 3853 Some(transmute::<_, unsafe extern "C" fn()>( 3854 notify_paragraph_background_trampoline::<Self, F> as *const (), 3855 )), 3856 Box_::into_raw(f), 3857 ) 3858 } 3859 } 3860 connect_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3861 fn connect_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>( 3862 &self, 3863 f: F, 3864 ) -> SignalHandlerId { 3865 unsafe extern "C" fn notify_paragraph_background_rgba_trampoline< 3866 P: IsA<TextTag>, 3867 F: Fn(&P) + 'static, 3868 >( 3869 this: *mut ffi::GtkTextTag, 3870 _param_spec: glib::ffi::gpointer, 3871 f: glib::ffi::gpointer, 3872 ) { 3873 let f: &F = &*(f as *const F); 3874 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3875 } 3876 unsafe { 3877 let f: Box_<F> = Box_::new(f); 3878 connect_raw( 3879 self.as_ptr() as *mut _, 3880 b"notify::paragraph-background-rgba\0".as_ptr() as *const _, 3881 Some(transmute::<_, unsafe extern "C" fn()>( 3882 notify_paragraph_background_rgba_trampoline::<Self, F> as *const (), 3883 )), 3884 Box_::into_raw(f), 3885 ) 3886 } 3887 } 3888 connect_paragraph_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3889 fn connect_paragraph_background_set_notify<F: Fn(&Self) + 'static>( 3890 &self, 3891 f: F, 3892 ) -> SignalHandlerId { 3893 unsafe extern "C" fn notify_paragraph_background_set_trampoline< 3894 P: IsA<TextTag>, 3895 F: Fn(&P) + 'static, 3896 >( 3897 this: *mut ffi::GtkTextTag, 3898 _param_spec: glib::ffi::gpointer, 3899 f: glib::ffi::gpointer, 3900 ) { 3901 let f: &F = &*(f as *const F); 3902 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3903 } 3904 unsafe { 3905 let f: Box_<F> = Box_::new(f); 3906 connect_raw( 3907 self.as_ptr() as *mut _, 3908 b"notify::paragraph-background-set\0".as_ptr() as *const _, 3909 Some(transmute::<_, unsafe extern "C" fn()>( 3910 notify_paragraph_background_set_trampoline::<Self, F> as *const (), 3911 )), 3912 Box_::into_raw(f), 3913 ) 3914 } 3915 } 3916 connect_pixels_above_lines_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3917 fn connect_pixels_above_lines_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3918 unsafe extern "C" fn notify_pixels_above_lines_trampoline< 3919 P: IsA<TextTag>, 3920 F: Fn(&P) + 'static, 3921 >( 3922 this: *mut ffi::GtkTextTag, 3923 _param_spec: glib::ffi::gpointer, 3924 f: glib::ffi::gpointer, 3925 ) { 3926 let f: &F = &*(f as *const F); 3927 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3928 } 3929 unsafe { 3930 let f: Box_<F> = Box_::new(f); 3931 connect_raw( 3932 self.as_ptr() as *mut _, 3933 b"notify::pixels-above-lines\0".as_ptr() as *const _, 3934 Some(transmute::<_, unsafe extern "C" fn()>( 3935 notify_pixels_above_lines_trampoline::<Self, F> as *const (), 3936 )), 3937 Box_::into_raw(f), 3938 ) 3939 } 3940 } 3941 connect_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3942 fn connect_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>( 3943 &self, 3944 f: F, 3945 ) -> SignalHandlerId { 3946 unsafe extern "C" fn notify_pixels_above_lines_set_trampoline< 3947 P: IsA<TextTag>, 3948 F: Fn(&P) + 'static, 3949 >( 3950 this: *mut ffi::GtkTextTag, 3951 _param_spec: glib::ffi::gpointer, 3952 f: glib::ffi::gpointer, 3953 ) { 3954 let f: &F = &*(f as *const F); 3955 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3956 } 3957 unsafe { 3958 let f: Box_<F> = Box_::new(f); 3959 connect_raw( 3960 self.as_ptr() as *mut _, 3961 b"notify::pixels-above-lines-set\0".as_ptr() as *const _, 3962 Some(transmute::<_, unsafe extern "C" fn()>( 3963 notify_pixels_above_lines_set_trampoline::<Self, F> as *const (), 3964 )), 3965 Box_::into_raw(f), 3966 ) 3967 } 3968 } 3969 connect_pixels_below_lines_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3970 fn connect_pixels_below_lines_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3971 unsafe extern "C" fn notify_pixels_below_lines_trampoline< 3972 P: IsA<TextTag>, 3973 F: Fn(&P) + 'static, 3974 >( 3975 this: *mut ffi::GtkTextTag, 3976 _param_spec: glib::ffi::gpointer, 3977 f: glib::ffi::gpointer, 3978 ) { 3979 let f: &F = &*(f as *const F); 3980 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 3981 } 3982 unsafe { 3983 let f: Box_<F> = Box_::new(f); 3984 connect_raw( 3985 self.as_ptr() as *mut _, 3986 b"notify::pixels-below-lines\0".as_ptr() as *const _, 3987 Some(transmute::<_, unsafe extern "C" fn()>( 3988 notify_pixels_below_lines_trampoline::<Self, F> as *const (), 3989 )), 3990 Box_::into_raw(f), 3991 ) 3992 } 3993 } 3994 connect_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3995 fn connect_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>( 3996 &self, 3997 f: F, 3998 ) -> SignalHandlerId { 3999 unsafe extern "C" fn notify_pixels_below_lines_set_trampoline< 4000 P: IsA<TextTag>, 4001 F: Fn(&P) + 'static, 4002 >( 4003 this: *mut ffi::GtkTextTag, 4004 _param_spec: glib::ffi::gpointer, 4005 f: glib::ffi::gpointer, 4006 ) { 4007 let f: &F = &*(f as *const F); 4008 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4009 } 4010 unsafe { 4011 let f: Box_<F> = Box_::new(f); 4012 connect_raw( 4013 self.as_ptr() as *mut _, 4014 b"notify::pixels-below-lines-set\0".as_ptr() as *const _, 4015 Some(transmute::<_, unsafe extern "C" fn()>( 4016 notify_pixels_below_lines_set_trampoline::<Self, F> as *const (), 4017 )), 4018 Box_::into_raw(f), 4019 ) 4020 } 4021 } 4022 connect_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4023 fn connect_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4024 unsafe extern "C" fn notify_pixels_inside_wrap_trampoline< 4025 P: IsA<TextTag>, 4026 F: Fn(&P) + 'static, 4027 >( 4028 this: *mut ffi::GtkTextTag, 4029 _param_spec: glib::ffi::gpointer, 4030 f: glib::ffi::gpointer, 4031 ) { 4032 let f: &F = &*(f as *const F); 4033 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4034 } 4035 unsafe { 4036 let f: Box_<F> = Box_::new(f); 4037 connect_raw( 4038 self.as_ptr() as *mut _, 4039 b"notify::pixels-inside-wrap\0".as_ptr() as *const _, 4040 Some(transmute::<_, unsafe extern "C" fn()>( 4041 notify_pixels_inside_wrap_trampoline::<Self, F> as *const (), 4042 )), 4043 Box_::into_raw(f), 4044 ) 4045 } 4046 } 4047 connect_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4048 fn connect_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>( 4049 &self, 4050 f: F, 4051 ) -> SignalHandlerId { 4052 unsafe extern "C" fn notify_pixels_inside_wrap_set_trampoline< 4053 P: IsA<TextTag>, 4054 F: Fn(&P) + 'static, 4055 >( 4056 this: *mut ffi::GtkTextTag, 4057 _param_spec: glib::ffi::gpointer, 4058 f: glib::ffi::gpointer, 4059 ) { 4060 let f: &F = &*(f as *const F); 4061 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4062 } 4063 unsafe { 4064 let f: Box_<F> = Box_::new(f); 4065 connect_raw( 4066 self.as_ptr() as *mut _, 4067 b"notify::pixels-inside-wrap-set\0".as_ptr() as *const _, 4068 Some(transmute::<_, unsafe extern "C" fn()>( 4069 notify_pixels_inside_wrap_set_trampoline::<Self, F> as *const (), 4070 )), 4071 Box_::into_raw(f), 4072 ) 4073 } 4074 } 4075 connect_right_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4076 fn connect_right_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4077 unsafe extern "C" fn notify_right_margin_trampoline< 4078 P: IsA<TextTag>, 4079 F: Fn(&P) + 'static, 4080 >( 4081 this: *mut ffi::GtkTextTag, 4082 _param_spec: glib::ffi::gpointer, 4083 f: glib::ffi::gpointer, 4084 ) { 4085 let f: &F = &*(f as *const F); 4086 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4087 } 4088 unsafe { 4089 let f: Box_<F> = Box_::new(f); 4090 connect_raw( 4091 self.as_ptr() as *mut _, 4092 b"notify::right-margin\0".as_ptr() as *const _, 4093 Some(transmute::<_, unsafe extern "C" fn()>( 4094 notify_right_margin_trampoline::<Self, F> as *const (), 4095 )), 4096 Box_::into_raw(f), 4097 ) 4098 } 4099 } 4100 connect_right_margin_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4101 fn connect_right_margin_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4102 unsafe extern "C" fn notify_right_margin_set_trampoline< 4103 P: IsA<TextTag>, 4104 F: Fn(&P) + 'static, 4105 >( 4106 this: *mut ffi::GtkTextTag, 4107 _param_spec: glib::ffi::gpointer, 4108 f: glib::ffi::gpointer, 4109 ) { 4110 let f: &F = &*(f as *const F); 4111 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4112 } 4113 unsafe { 4114 let f: Box_<F> = Box_::new(f); 4115 connect_raw( 4116 self.as_ptr() as *mut _, 4117 b"notify::right-margin-set\0".as_ptr() as *const _, 4118 Some(transmute::<_, unsafe extern "C" fn()>( 4119 notify_right_margin_set_trampoline::<Self, F> as *const (), 4120 )), 4121 Box_::into_raw(f), 4122 ) 4123 } 4124 } 4125 connect_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4126 fn connect_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4127 unsafe extern "C" fn notify_rise_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4128 this: *mut ffi::GtkTextTag, 4129 _param_spec: glib::ffi::gpointer, 4130 f: glib::ffi::gpointer, 4131 ) { 4132 let f: &F = &*(f as *const F); 4133 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4134 } 4135 unsafe { 4136 let f: Box_<F> = Box_::new(f); 4137 connect_raw( 4138 self.as_ptr() as *mut _, 4139 b"notify::rise\0".as_ptr() as *const _, 4140 Some(transmute::<_, unsafe extern "C" fn()>( 4141 notify_rise_trampoline::<Self, F> as *const (), 4142 )), 4143 Box_::into_raw(f), 4144 ) 4145 } 4146 } 4147 connect_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4148 fn connect_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4149 unsafe extern "C" fn notify_rise_set_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4150 this: *mut ffi::GtkTextTag, 4151 _param_spec: glib::ffi::gpointer, 4152 f: glib::ffi::gpointer, 4153 ) { 4154 let f: &F = &*(f as *const F); 4155 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4156 } 4157 unsafe { 4158 let f: Box_<F> = Box_::new(f); 4159 connect_raw( 4160 self.as_ptr() as *mut _, 4161 b"notify::rise-set\0".as_ptr() as *const _, 4162 Some(transmute::<_, unsafe extern "C" fn()>( 4163 notify_rise_set_trampoline::<Self, F> as *const (), 4164 )), 4165 Box_::into_raw(f), 4166 ) 4167 } 4168 } 4169 connect_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4170 fn connect_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4171 unsafe extern "C" fn notify_scale_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4172 this: *mut ffi::GtkTextTag, 4173 _param_spec: glib::ffi::gpointer, 4174 f: glib::ffi::gpointer, 4175 ) { 4176 let f: &F = &*(f as *const F); 4177 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4178 } 4179 unsafe { 4180 let f: Box_<F> = Box_::new(f); 4181 connect_raw( 4182 self.as_ptr() as *mut _, 4183 b"notify::scale\0".as_ptr() as *const _, 4184 Some(transmute::<_, unsafe extern "C" fn()>( 4185 notify_scale_trampoline::<Self, F> as *const (), 4186 )), 4187 Box_::into_raw(f), 4188 ) 4189 } 4190 } 4191 connect_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4192 fn connect_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4193 unsafe extern "C" fn notify_scale_set_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4194 this: *mut ffi::GtkTextTag, 4195 _param_spec: glib::ffi::gpointer, 4196 f: glib::ffi::gpointer, 4197 ) { 4198 let f: &F = &*(f as *const F); 4199 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4200 } 4201 unsafe { 4202 let f: Box_<F> = Box_::new(f); 4203 connect_raw( 4204 self.as_ptr() as *mut _, 4205 b"notify::scale-set\0".as_ptr() as *const _, 4206 Some(transmute::<_, unsafe extern "C" fn()>( 4207 notify_scale_set_trampoline::<Self, F> as *const (), 4208 )), 4209 Box_::into_raw(f), 4210 ) 4211 } 4212 } 4213 connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4214 fn connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4215 unsafe extern "C" fn notify_size_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4216 this: *mut ffi::GtkTextTag, 4217 _param_spec: glib::ffi::gpointer, 4218 f: glib::ffi::gpointer, 4219 ) { 4220 let f: &F = &*(f as *const F); 4221 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4222 } 4223 unsafe { 4224 let f: Box_<F> = Box_::new(f); 4225 connect_raw( 4226 self.as_ptr() as *mut _, 4227 b"notify::size\0".as_ptr() as *const _, 4228 Some(transmute::<_, unsafe extern "C" fn()>( 4229 notify_size_trampoline::<Self, F> as *const (), 4230 )), 4231 Box_::into_raw(f), 4232 ) 4233 } 4234 } 4235 connect_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4236 fn connect_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4237 unsafe extern "C" fn notify_size_points_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4238 this: *mut ffi::GtkTextTag, 4239 _param_spec: glib::ffi::gpointer, 4240 f: glib::ffi::gpointer, 4241 ) { 4242 let f: &F = &*(f as *const F); 4243 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4244 } 4245 unsafe { 4246 let f: Box_<F> = Box_::new(f); 4247 connect_raw( 4248 self.as_ptr() as *mut _, 4249 b"notify::size-points\0".as_ptr() as *const _, 4250 Some(transmute::<_, unsafe extern "C" fn()>( 4251 notify_size_points_trampoline::<Self, F> as *const (), 4252 )), 4253 Box_::into_raw(f), 4254 ) 4255 } 4256 } 4257 connect_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4258 fn connect_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4259 unsafe extern "C" fn notify_size_set_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4260 this: *mut ffi::GtkTextTag, 4261 _param_spec: glib::ffi::gpointer, 4262 f: glib::ffi::gpointer, 4263 ) { 4264 let f: &F = &*(f as *const F); 4265 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4266 } 4267 unsafe { 4268 let f: Box_<F> = Box_::new(f); 4269 connect_raw( 4270 self.as_ptr() as *mut _, 4271 b"notify::size-set\0".as_ptr() as *const _, 4272 Some(transmute::<_, unsafe extern "C" fn()>( 4273 notify_size_set_trampoline::<Self, F> as *const (), 4274 )), 4275 Box_::into_raw(f), 4276 ) 4277 } 4278 } 4279 connect_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4280 fn connect_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4281 unsafe extern "C" fn notify_stretch_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4282 this: *mut ffi::GtkTextTag, 4283 _param_spec: glib::ffi::gpointer, 4284 f: glib::ffi::gpointer, 4285 ) { 4286 let f: &F = &*(f as *const F); 4287 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4288 } 4289 unsafe { 4290 let f: Box_<F> = Box_::new(f); 4291 connect_raw( 4292 self.as_ptr() as *mut _, 4293 b"notify::stretch\0".as_ptr() as *const _, 4294 Some(transmute::<_, unsafe extern "C" fn()>( 4295 notify_stretch_trampoline::<Self, F> as *const (), 4296 )), 4297 Box_::into_raw(f), 4298 ) 4299 } 4300 } 4301 connect_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4302 fn connect_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4303 unsafe extern "C" fn notify_stretch_set_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4304 this: *mut ffi::GtkTextTag, 4305 _param_spec: glib::ffi::gpointer, 4306 f: glib::ffi::gpointer, 4307 ) { 4308 let f: &F = &*(f as *const F); 4309 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4310 } 4311 unsafe { 4312 let f: Box_<F> = Box_::new(f); 4313 connect_raw( 4314 self.as_ptr() as *mut _, 4315 b"notify::stretch-set\0".as_ptr() as *const _, 4316 Some(transmute::<_, unsafe extern "C" fn()>( 4317 notify_stretch_set_trampoline::<Self, F> as *const (), 4318 )), 4319 Box_::into_raw(f), 4320 ) 4321 } 4322 } 4323 connect_strikethrough_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4324 fn connect_strikethrough_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4325 unsafe extern "C" fn notify_strikethrough_trampoline< 4326 P: IsA<TextTag>, 4327 F: Fn(&P) + 'static, 4328 >( 4329 this: *mut ffi::GtkTextTag, 4330 _param_spec: glib::ffi::gpointer, 4331 f: glib::ffi::gpointer, 4332 ) { 4333 let f: &F = &*(f as *const F); 4334 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4335 } 4336 unsafe { 4337 let f: Box_<F> = Box_::new(f); 4338 connect_raw( 4339 self.as_ptr() as *mut _, 4340 b"notify::strikethrough\0".as_ptr() as *const _, 4341 Some(transmute::<_, unsafe extern "C" fn()>( 4342 notify_strikethrough_trampoline::<Self, F> as *const (), 4343 )), 4344 Box_::into_raw(f), 4345 ) 4346 } 4347 } 4348 connect_strikethrough_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4349 fn connect_strikethrough_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4350 unsafe extern "C" fn notify_strikethrough_rgba_trampoline< 4351 P: IsA<TextTag>, 4352 F: Fn(&P) + 'static, 4353 >( 4354 this: *mut ffi::GtkTextTag, 4355 _param_spec: glib::ffi::gpointer, 4356 f: glib::ffi::gpointer, 4357 ) { 4358 let f: &F = &*(f as *const F); 4359 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4360 } 4361 unsafe { 4362 let f: Box_<F> = Box_::new(f); 4363 connect_raw( 4364 self.as_ptr() as *mut _, 4365 b"notify::strikethrough-rgba\0".as_ptr() as *const _, 4366 Some(transmute::<_, unsafe extern "C" fn()>( 4367 notify_strikethrough_rgba_trampoline::<Self, F> as *const (), 4368 )), 4369 Box_::into_raw(f), 4370 ) 4371 } 4372 } 4373 connect_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId4374 fn connect_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>( 4375 &self, 4376 f: F, 4377 ) -> SignalHandlerId { 4378 unsafe extern "C" fn notify_strikethrough_rgba_set_trampoline< 4379 P: IsA<TextTag>, 4380 F: Fn(&P) + 'static, 4381 >( 4382 this: *mut ffi::GtkTextTag, 4383 _param_spec: glib::ffi::gpointer, 4384 f: glib::ffi::gpointer, 4385 ) { 4386 let f: &F = &*(f as *const F); 4387 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4388 } 4389 unsafe { 4390 let f: Box_<F> = Box_::new(f); 4391 connect_raw( 4392 self.as_ptr() as *mut _, 4393 b"notify::strikethrough-rgba-set\0".as_ptr() as *const _, 4394 Some(transmute::<_, unsafe extern "C" fn()>( 4395 notify_strikethrough_rgba_set_trampoline::<Self, F> as *const (), 4396 )), 4397 Box_::into_raw(f), 4398 ) 4399 } 4400 } 4401 connect_strikethrough_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4402 fn connect_strikethrough_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4403 unsafe extern "C" fn notify_strikethrough_set_trampoline< 4404 P: IsA<TextTag>, 4405 F: Fn(&P) + 'static, 4406 >( 4407 this: *mut ffi::GtkTextTag, 4408 _param_spec: glib::ffi::gpointer, 4409 f: glib::ffi::gpointer, 4410 ) { 4411 let f: &F = &*(f as *const F); 4412 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4413 } 4414 unsafe { 4415 let f: Box_<F> = Box_::new(f); 4416 connect_raw( 4417 self.as_ptr() as *mut _, 4418 b"notify::strikethrough-set\0".as_ptr() as *const _, 4419 Some(transmute::<_, unsafe extern "C" fn()>( 4420 notify_strikethrough_set_trampoline::<Self, F> as *const (), 4421 )), 4422 Box_::into_raw(f), 4423 ) 4424 } 4425 } 4426 connect_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4427 fn connect_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4428 unsafe extern "C" fn notify_style_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4429 this: *mut ffi::GtkTextTag, 4430 _param_spec: glib::ffi::gpointer, 4431 f: glib::ffi::gpointer, 4432 ) { 4433 let f: &F = &*(f as *const F); 4434 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4435 } 4436 unsafe { 4437 let f: Box_<F> = Box_::new(f); 4438 connect_raw( 4439 self.as_ptr() as *mut _, 4440 b"notify::style\0".as_ptr() as *const _, 4441 Some(transmute::<_, unsafe extern "C" fn()>( 4442 notify_style_trampoline::<Self, F> as *const (), 4443 )), 4444 Box_::into_raw(f), 4445 ) 4446 } 4447 } 4448 connect_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4449 fn connect_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4450 unsafe extern "C" fn notify_style_set_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4451 this: *mut ffi::GtkTextTag, 4452 _param_spec: glib::ffi::gpointer, 4453 f: glib::ffi::gpointer, 4454 ) { 4455 let f: &F = &*(f as *const F); 4456 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4457 } 4458 unsafe { 4459 let f: Box_<F> = Box_::new(f); 4460 connect_raw( 4461 self.as_ptr() as *mut _, 4462 b"notify::style-set\0".as_ptr() as *const _, 4463 Some(transmute::<_, unsafe extern "C" fn()>( 4464 notify_style_set_trampoline::<Self, F> as *const (), 4465 )), 4466 Box_::into_raw(f), 4467 ) 4468 } 4469 } 4470 connect_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4471 fn connect_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4472 unsafe extern "C" fn notify_tabs_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4473 this: *mut ffi::GtkTextTag, 4474 _param_spec: glib::ffi::gpointer, 4475 f: glib::ffi::gpointer, 4476 ) { 4477 let f: &F = &*(f as *const F); 4478 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4479 } 4480 unsafe { 4481 let f: Box_<F> = Box_::new(f); 4482 connect_raw( 4483 self.as_ptr() as *mut _, 4484 b"notify::tabs\0".as_ptr() as *const _, 4485 Some(transmute::<_, unsafe extern "C" fn()>( 4486 notify_tabs_trampoline::<Self, F> as *const (), 4487 )), 4488 Box_::into_raw(f), 4489 ) 4490 } 4491 } 4492 connect_tabs_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4493 fn connect_tabs_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4494 unsafe extern "C" fn notify_tabs_set_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4495 this: *mut ffi::GtkTextTag, 4496 _param_spec: glib::ffi::gpointer, 4497 f: glib::ffi::gpointer, 4498 ) { 4499 let f: &F = &*(f as *const F); 4500 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4501 } 4502 unsafe { 4503 let f: Box_<F> = Box_::new(f); 4504 connect_raw( 4505 self.as_ptr() as *mut _, 4506 b"notify::tabs-set\0".as_ptr() as *const _, 4507 Some(transmute::<_, unsafe extern "C" fn()>( 4508 notify_tabs_set_trampoline::<Self, F> as *const (), 4509 )), 4510 Box_::into_raw(f), 4511 ) 4512 } 4513 } 4514 connect_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4515 fn connect_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4516 unsafe extern "C" fn notify_underline_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4517 this: *mut ffi::GtkTextTag, 4518 _param_spec: glib::ffi::gpointer, 4519 f: glib::ffi::gpointer, 4520 ) { 4521 let f: &F = &*(f as *const F); 4522 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4523 } 4524 unsafe { 4525 let f: Box_<F> = Box_::new(f); 4526 connect_raw( 4527 self.as_ptr() as *mut _, 4528 b"notify::underline\0".as_ptr() as *const _, 4529 Some(transmute::<_, unsafe extern "C" fn()>( 4530 notify_underline_trampoline::<Self, F> as *const (), 4531 )), 4532 Box_::into_raw(f), 4533 ) 4534 } 4535 } 4536 connect_underline_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4537 fn connect_underline_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4538 unsafe extern "C" fn notify_underline_rgba_trampoline< 4539 P: IsA<TextTag>, 4540 F: Fn(&P) + 'static, 4541 >( 4542 this: *mut ffi::GtkTextTag, 4543 _param_spec: glib::ffi::gpointer, 4544 f: glib::ffi::gpointer, 4545 ) { 4546 let f: &F = &*(f as *const F); 4547 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4548 } 4549 unsafe { 4550 let f: Box_<F> = Box_::new(f); 4551 connect_raw( 4552 self.as_ptr() as *mut _, 4553 b"notify::underline-rgba\0".as_ptr() as *const _, 4554 Some(transmute::<_, unsafe extern "C" fn()>( 4555 notify_underline_rgba_trampoline::<Self, F> as *const (), 4556 )), 4557 Box_::into_raw(f), 4558 ) 4559 } 4560 } 4561 connect_underline_rgba_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4562 fn connect_underline_rgba_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4563 unsafe extern "C" fn notify_underline_rgba_set_trampoline< 4564 P: IsA<TextTag>, 4565 F: Fn(&P) + 'static, 4566 >( 4567 this: *mut ffi::GtkTextTag, 4568 _param_spec: glib::ffi::gpointer, 4569 f: glib::ffi::gpointer, 4570 ) { 4571 let f: &F = &*(f as *const F); 4572 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4573 } 4574 unsafe { 4575 let f: Box_<F> = Box_::new(f); 4576 connect_raw( 4577 self.as_ptr() as *mut _, 4578 b"notify::underline-rgba-set\0".as_ptr() as *const _, 4579 Some(transmute::<_, unsafe extern "C" fn()>( 4580 notify_underline_rgba_set_trampoline::<Self, F> as *const (), 4581 )), 4582 Box_::into_raw(f), 4583 ) 4584 } 4585 } 4586 connect_underline_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4587 fn connect_underline_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4588 unsafe extern "C" fn notify_underline_set_trampoline< 4589 P: IsA<TextTag>, 4590 F: Fn(&P) + 'static, 4591 >( 4592 this: *mut ffi::GtkTextTag, 4593 _param_spec: glib::ffi::gpointer, 4594 f: glib::ffi::gpointer, 4595 ) { 4596 let f: &F = &*(f as *const F); 4597 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4598 } 4599 unsafe { 4600 let f: Box_<F> = Box_::new(f); 4601 connect_raw( 4602 self.as_ptr() as *mut _, 4603 b"notify::underline-set\0".as_ptr() as *const _, 4604 Some(transmute::<_, unsafe extern "C" fn()>( 4605 notify_underline_set_trampoline::<Self, F> as *const (), 4606 )), 4607 Box_::into_raw(f), 4608 ) 4609 } 4610 } 4611 connect_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4612 fn connect_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4613 unsafe extern "C" fn notify_variant_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4614 this: *mut ffi::GtkTextTag, 4615 _param_spec: glib::ffi::gpointer, 4616 f: glib::ffi::gpointer, 4617 ) { 4618 let f: &F = &*(f as *const F); 4619 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4620 } 4621 unsafe { 4622 let f: Box_<F> = Box_::new(f); 4623 connect_raw( 4624 self.as_ptr() as *mut _, 4625 b"notify::variant\0".as_ptr() as *const _, 4626 Some(transmute::<_, unsafe extern "C" fn()>( 4627 notify_variant_trampoline::<Self, F> as *const (), 4628 )), 4629 Box_::into_raw(f), 4630 ) 4631 } 4632 } 4633 connect_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4634 fn connect_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4635 unsafe extern "C" fn notify_variant_set_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4636 this: *mut ffi::GtkTextTag, 4637 _param_spec: glib::ffi::gpointer, 4638 f: glib::ffi::gpointer, 4639 ) { 4640 let f: &F = &*(f as *const F); 4641 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4642 } 4643 unsafe { 4644 let f: Box_<F> = Box_::new(f); 4645 connect_raw( 4646 self.as_ptr() as *mut _, 4647 b"notify::variant-set\0".as_ptr() as *const _, 4648 Some(transmute::<_, unsafe extern "C" fn()>( 4649 notify_variant_set_trampoline::<Self, F> as *const (), 4650 )), 4651 Box_::into_raw(f), 4652 ) 4653 } 4654 } 4655 connect_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4656 fn connect_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4657 unsafe extern "C" fn notify_weight_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4658 this: *mut ffi::GtkTextTag, 4659 _param_spec: glib::ffi::gpointer, 4660 f: glib::ffi::gpointer, 4661 ) { 4662 let f: &F = &*(f as *const F); 4663 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4664 } 4665 unsafe { 4666 let f: Box_<F> = Box_::new(f); 4667 connect_raw( 4668 self.as_ptr() as *mut _, 4669 b"notify::weight\0".as_ptr() as *const _, 4670 Some(transmute::<_, unsafe extern "C" fn()>( 4671 notify_weight_trampoline::<Self, F> as *const (), 4672 )), 4673 Box_::into_raw(f), 4674 ) 4675 } 4676 } 4677 connect_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4678 fn connect_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4679 unsafe extern "C" fn notify_weight_set_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4680 this: *mut ffi::GtkTextTag, 4681 _param_spec: glib::ffi::gpointer, 4682 f: glib::ffi::gpointer, 4683 ) { 4684 let f: &F = &*(f as *const F); 4685 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4686 } 4687 unsafe { 4688 let f: Box_<F> = Box_::new(f); 4689 connect_raw( 4690 self.as_ptr() as *mut _, 4691 b"notify::weight-set\0".as_ptr() as *const _, 4692 Some(transmute::<_, unsafe extern "C" fn()>( 4693 notify_weight_set_trampoline::<Self, F> as *const (), 4694 )), 4695 Box_::into_raw(f), 4696 ) 4697 } 4698 } 4699 connect_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4700 fn connect_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4701 unsafe extern "C" fn notify_wrap_mode_trampoline<P: IsA<TextTag>, F: Fn(&P) + 'static>( 4702 this: *mut ffi::GtkTextTag, 4703 _param_spec: glib::ffi::gpointer, 4704 f: glib::ffi::gpointer, 4705 ) { 4706 let f: &F = &*(f as *const F); 4707 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4708 } 4709 unsafe { 4710 let f: Box_<F> = Box_::new(f); 4711 connect_raw( 4712 self.as_ptr() as *mut _, 4713 b"notify::wrap-mode\0".as_ptr() as *const _, 4714 Some(transmute::<_, unsafe extern "C" fn()>( 4715 notify_wrap_mode_trampoline::<Self, F> as *const (), 4716 )), 4717 Box_::into_raw(f), 4718 ) 4719 } 4720 } 4721 connect_wrap_mode_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId4722 fn connect_wrap_mode_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 4723 unsafe extern "C" fn notify_wrap_mode_set_trampoline< 4724 P: IsA<TextTag>, 4725 F: Fn(&P) + 'static, 4726 >( 4727 this: *mut ffi::GtkTextTag, 4728 _param_spec: glib::ffi::gpointer, 4729 f: glib::ffi::gpointer, 4730 ) { 4731 let f: &F = &*(f as *const F); 4732 f(TextTag::from_glib_borrow(this).unsafe_cast_ref()) 4733 } 4734 unsafe { 4735 let f: Box_<F> = Box_::new(f); 4736 connect_raw( 4737 self.as_ptr() as *mut _, 4738 b"notify::wrap-mode-set\0".as_ptr() as *const _, 4739 Some(transmute::<_, unsafe extern "C" fn()>( 4740 notify_wrap_mode_set_trampoline::<Self, F> as *const (), 4741 )), 4742 Box_::into_raw(f), 4743 ) 4744 } 4745 } 4746 } 4747 4748 impl fmt::Display for TextTag { fmt(&self, f: &mut fmt::Formatter) -> fmt::Result4749 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 4750 f.write_str("TextTag") 4751 } 4752 } 4753