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::CellRenderer; 6 use crate::CellRendererMode; 7 use crate::TreePath; 8 use glib::object::Cast; 9 use glib::object::IsA; 10 use glib::signal::connect_raw; 11 use glib::signal::SignalHandlerId; 12 use glib::translate::*; 13 use glib::StaticType; 14 use glib::ToValue; 15 use std::boxed::Box as Box_; 16 use std::fmt; 17 use std::mem::transmute; 18 19 glib::wrapper! { 20 #[doc(alias = "GtkCellRendererText")] 21 pub struct CellRendererText(Object<ffi::GtkCellRendererText, ffi::GtkCellRendererTextClass>) @extends CellRenderer; 22 23 match fn { 24 type_ => || ffi::gtk_cell_renderer_text_get_type(), 25 } 26 } 27 28 impl CellRendererText { 29 #[doc(alias = "gtk_cell_renderer_text_new")] new() -> CellRendererText30 pub fn new() -> CellRendererText { 31 assert_initialized_main_thread!(); 32 unsafe { CellRenderer::from_glib_none(ffi::gtk_cell_renderer_text_new()).unsafe_cast() } 33 } 34 35 // rustdoc-stripper-ignore-next 36 /// Creates a new builder-pattern struct instance to construct [`CellRendererText`] objects. 37 /// 38 /// This method returns an instance of [`CellRendererTextBuilder`] which can be used to create [`CellRendererText`] objects. builder() -> CellRendererTextBuilder39 pub fn builder() -> CellRendererTextBuilder { 40 CellRendererTextBuilder::default() 41 } 42 } 43 44 impl Default for CellRendererText { default() -> Self45 fn default() -> Self { 46 Self::new() 47 } 48 } 49 50 #[derive(Clone, Default)] 51 // rustdoc-stripper-ignore-next 52 /// A [builder-pattern] type to construct [`CellRendererText`] objects. 53 /// 54 /// [builder-pattern]: https://doc.rust-lang.org/1.0.0/style/ownership/builders.html 55 pub struct CellRendererTextBuilder { 56 align_set: Option<bool>, 57 alignment: Option<pango::Alignment>, 58 attributes: Option<pango::AttrList>, 59 background: Option<String>, 60 background_rgba: Option<gdk::RGBA>, 61 background_set: Option<bool>, 62 editable: Option<bool>, 63 editable_set: Option<bool>, 64 ellipsize: Option<pango::EllipsizeMode>, 65 ellipsize_set: Option<bool>, 66 family: Option<String>, 67 family_set: Option<bool>, 68 font: Option<String>, 69 font_desc: Option<pango::FontDescription>, 70 foreground: Option<String>, 71 foreground_rgba: Option<gdk::RGBA>, 72 foreground_set: Option<bool>, 73 language: Option<String>, 74 language_set: Option<bool>, 75 markup: Option<String>, 76 max_width_chars: Option<i32>, 77 placeholder_text: Option<String>, 78 rise: Option<i32>, 79 rise_set: Option<bool>, 80 scale: Option<f64>, 81 scale_set: Option<bool>, 82 single_paragraph_mode: Option<bool>, 83 size: Option<i32>, 84 size_points: Option<f64>, 85 size_set: Option<bool>, 86 stretch: Option<pango::Stretch>, 87 stretch_set: Option<bool>, 88 strikethrough: Option<bool>, 89 strikethrough_set: Option<bool>, 90 style: Option<pango::Style>, 91 style_set: Option<bool>, 92 text: Option<String>, 93 underline: Option<pango::Underline>, 94 underline_set: Option<bool>, 95 variant: Option<pango::Variant>, 96 variant_set: Option<bool>, 97 weight: Option<i32>, 98 weight_set: Option<bool>, 99 width_chars: Option<i32>, 100 wrap_mode: Option<pango::WrapMode>, 101 wrap_width: Option<i32>, 102 cell_background: Option<String>, 103 cell_background_rgba: Option<gdk::RGBA>, 104 cell_background_set: Option<bool>, 105 height: Option<i32>, 106 is_expanded: Option<bool>, 107 is_expander: Option<bool>, 108 mode: Option<CellRendererMode>, 109 sensitive: Option<bool>, 110 visible: Option<bool>, 111 width: Option<i32>, 112 xalign: Option<f32>, 113 xpad: Option<u32>, 114 yalign: Option<f32>, 115 ypad: Option<u32>, 116 } 117 118 impl CellRendererTextBuilder { 119 // rustdoc-stripper-ignore-next 120 /// Create a new [`CellRendererTextBuilder`]. new() -> Self121 pub fn new() -> Self { 122 Self::default() 123 } 124 125 // rustdoc-stripper-ignore-next 126 /// Build the [`CellRendererText`]. build(self) -> CellRendererText127 pub fn build(self) -> CellRendererText { 128 let mut properties: Vec<(&str, &dyn ToValue)> = vec![]; 129 if let Some(ref align_set) = self.align_set { 130 properties.push(("align-set", align_set)); 131 } 132 if let Some(ref alignment) = self.alignment { 133 properties.push(("alignment", alignment)); 134 } 135 if let Some(ref attributes) = self.attributes { 136 properties.push(("attributes", attributes)); 137 } 138 if let Some(ref background) = self.background { 139 properties.push(("background", background)); 140 } 141 if let Some(ref background_rgba) = self.background_rgba { 142 properties.push(("background-rgba", background_rgba)); 143 } 144 if let Some(ref background_set) = self.background_set { 145 properties.push(("background-set", background_set)); 146 } 147 if let Some(ref editable) = self.editable { 148 properties.push(("editable", editable)); 149 } 150 if let Some(ref editable_set) = self.editable_set { 151 properties.push(("editable-set", editable_set)); 152 } 153 if let Some(ref ellipsize) = self.ellipsize { 154 properties.push(("ellipsize", ellipsize)); 155 } 156 if let Some(ref ellipsize_set) = self.ellipsize_set { 157 properties.push(("ellipsize-set", ellipsize_set)); 158 } 159 if let Some(ref family) = self.family { 160 properties.push(("family", family)); 161 } 162 if let Some(ref family_set) = self.family_set { 163 properties.push(("family-set", family_set)); 164 } 165 if let Some(ref font) = self.font { 166 properties.push(("font", font)); 167 } 168 if let Some(ref font_desc) = self.font_desc { 169 properties.push(("font-desc", font_desc)); 170 } 171 if let Some(ref foreground) = self.foreground { 172 properties.push(("foreground", foreground)); 173 } 174 if let Some(ref foreground_rgba) = self.foreground_rgba { 175 properties.push(("foreground-rgba", foreground_rgba)); 176 } 177 if let Some(ref foreground_set) = self.foreground_set { 178 properties.push(("foreground-set", foreground_set)); 179 } 180 if let Some(ref language) = self.language { 181 properties.push(("language", language)); 182 } 183 if let Some(ref language_set) = self.language_set { 184 properties.push(("language-set", language_set)); 185 } 186 if let Some(ref markup) = self.markup { 187 properties.push(("markup", markup)); 188 } 189 if let Some(ref max_width_chars) = self.max_width_chars { 190 properties.push(("max-width-chars", max_width_chars)); 191 } 192 if let Some(ref placeholder_text) = self.placeholder_text { 193 properties.push(("placeholder-text", placeholder_text)); 194 } 195 if let Some(ref rise) = self.rise { 196 properties.push(("rise", rise)); 197 } 198 if let Some(ref rise_set) = self.rise_set { 199 properties.push(("rise-set", rise_set)); 200 } 201 if let Some(ref scale) = self.scale { 202 properties.push(("scale", scale)); 203 } 204 if let Some(ref scale_set) = self.scale_set { 205 properties.push(("scale-set", scale_set)); 206 } 207 if let Some(ref single_paragraph_mode) = self.single_paragraph_mode { 208 properties.push(("single-paragraph-mode", single_paragraph_mode)); 209 } 210 if let Some(ref size) = self.size { 211 properties.push(("size", size)); 212 } 213 if let Some(ref size_points) = self.size_points { 214 properties.push(("size-points", size_points)); 215 } 216 if let Some(ref size_set) = self.size_set { 217 properties.push(("size-set", size_set)); 218 } 219 if let Some(ref stretch) = self.stretch { 220 properties.push(("stretch", stretch)); 221 } 222 if let Some(ref stretch_set) = self.stretch_set { 223 properties.push(("stretch-set", stretch_set)); 224 } 225 if let Some(ref strikethrough) = self.strikethrough { 226 properties.push(("strikethrough", strikethrough)); 227 } 228 if let Some(ref strikethrough_set) = self.strikethrough_set { 229 properties.push(("strikethrough-set", strikethrough_set)); 230 } 231 if let Some(ref style) = self.style { 232 properties.push(("style", style)); 233 } 234 if let Some(ref style_set) = self.style_set { 235 properties.push(("style-set", style_set)); 236 } 237 if let Some(ref text) = self.text { 238 properties.push(("text", text)); 239 } 240 if let Some(ref underline) = self.underline { 241 properties.push(("underline", underline)); 242 } 243 if let Some(ref underline_set) = self.underline_set { 244 properties.push(("underline-set", underline_set)); 245 } 246 if let Some(ref variant) = self.variant { 247 properties.push(("variant", variant)); 248 } 249 if let Some(ref variant_set) = self.variant_set { 250 properties.push(("variant-set", variant_set)); 251 } 252 if let Some(ref weight) = self.weight { 253 properties.push(("weight", weight)); 254 } 255 if let Some(ref weight_set) = self.weight_set { 256 properties.push(("weight-set", weight_set)); 257 } 258 if let Some(ref width_chars) = self.width_chars { 259 properties.push(("width-chars", width_chars)); 260 } 261 if let Some(ref wrap_mode) = self.wrap_mode { 262 properties.push(("wrap-mode", wrap_mode)); 263 } 264 if let Some(ref wrap_width) = self.wrap_width { 265 properties.push(("wrap-width", wrap_width)); 266 } 267 if let Some(ref cell_background) = self.cell_background { 268 properties.push(("cell-background", cell_background)); 269 } 270 if let Some(ref cell_background_rgba) = self.cell_background_rgba { 271 properties.push(("cell-background-rgba", cell_background_rgba)); 272 } 273 if let Some(ref cell_background_set) = self.cell_background_set { 274 properties.push(("cell-background-set", cell_background_set)); 275 } 276 if let Some(ref height) = self.height { 277 properties.push(("height", height)); 278 } 279 if let Some(ref is_expanded) = self.is_expanded { 280 properties.push(("is-expanded", is_expanded)); 281 } 282 if let Some(ref is_expander) = self.is_expander { 283 properties.push(("is-expander", is_expander)); 284 } 285 if let Some(ref mode) = self.mode { 286 properties.push(("mode", mode)); 287 } 288 if let Some(ref sensitive) = self.sensitive { 289 properties.push(("sensitive", sensitive)); 290 } 291 if let Some(ref visible) = self.visible { 292 properties.push(("visible", visible)); 293 } 294 if let Some(ref width) = self.width { 295 properties.push(("width", width)); 296 } 297 if let Some(ref xalign) = self.xalign { 298 properties.push(("xalign", xalign)); 299 } 300 if let Some(ref xpad) = self.xpad { 301 properties.push(("xpad", xpad)); 302 } 303 if let Some(ref yalign) = self.yalign { 304 properties.push(("yalign", yalign)); 305 } 306 if let Some(ref ypad) = self.ypad { 307 properties.push(("ypad", ypad)); 308 } 309 glib::Object::new::<CellRendererText>(&properties) 310 .expect("Failed to create an instance of CellRendererText") 311 } 312 align_set(mut self, align_set: bool) -> Self313 pub fn align_set(mut self, align_set: bool) -> Self { 314 self.align_set = Some(align_set); 315 self 316 } 317 alignment(mut self, alignment: pango::Alignment) -> Self318 pub fn alignment(mut self, alignment: pango::Alignment) -> Self { 319 self.alignment = Some(alignment); 320 self 321 } 322 attributes(mut self, attributes: &pango::AttrList) -> Self323 pub fn attributes(mut self, attributes: &pango::AttrList) -> Self { 324 self.attributes = Some(attributes.clone()); 325 self 326 } 327 background(mut self, background: &str) -> Self328 pub fn background(mut self, background: &str) -> Self { 329 self.background = Some(background.to_string()); 330 self 331 } 332 background_rgba(mut self, background_rgba: &gdk::RGBA) -> Self333 pub fn background_rgba(mut self, background_rgba: &gdk::RGBA) -> Self { 334 self.background_rgba = Some(background_rgba.clone()); 335 self 336 } 337 background_set(mut self, background_set: bool) -> Self338 pub fn background_set(mut self, background_set: bool) -> Self { 339 self.background_set = Some(background_set); 340 self 341 } 342 editable(mut self, editable: bool) -> Self343 pub fn editable(mut self, editable: bool) -> Self { 344 self.editable = Some(editable); 345 self 346 } 347 editable_set(mut self, editable_set: bool) -> Self348 pub fn editable_set(mut self, editable_set: bool) -> Self { 349 self.editable_set = Some(editable_set); 350 self 351 } 352 ellipsize(mut self, ellipsize: pango::EllipsizeMode) -> Self353 pub fn ellipsize(mut self, ellipsize: pango::EllipsizeMode) -> Self { 354 self.ellipsize = Some(ellipsize); 355 self 356 } 357 ellipsize_set(mut self, ellipsize_set: bool) -> Self358 pub fn ellipsize_set(mut self, ellipsize_set: bool) -> Self { 359 self.ellipsize_set = Some(ellipsize_set); 360 self 361 } 362 family(mut self, family: &str) -> Self363 pub fn family(mut self, family: &str) -> Self { 364 self.family = Some(family.to_string()); 365 self 366 } 367 family_set(mut self, family_set: bool) -> Self368 pub fn family_set(mut self, family_set: bool) -> Self { 369 self.family_set = Some(family_set); 370 self 371 } 372 font(mut self, font: &str) -> Self373 pub fn font(mut self, font: &str) -> Self { 374 self.font = Some(font.to_string()); 375 self 376 } 377 font_desc(mut self, font_desc: &pango::FontDescription) -> Self378 pub fn font_desc(mut self, font_desc: &pango::FontDescription) -> Self { 379 self.font_desc = Some(font_desc.clone()); 380 self 381 } 382 foreground(mut self, foreground: &str) -> Self383 pub fn foreground(mut self, foreground: &str) -> Self { 384 self.foreground = Some(foreground.to_string()); 385 self 386 } 387 foreground_rgba(mut self, foreground_rgba: &gdk::RGBA) -> Self388 pub fn foreground_rgba(mut self, foreground_rgba: &gdk::RGBA) -> Self { 389 self.foreground_rgba = Some(foreground_rgba.clone()); 390 self 391 } 392 foreground_set(mut self, foreground_set: bool) -> Self393 pub fn foreground_set(mut self, foreground_set: bool) -> Self { 394 self.foreground_set = Some(foreground_set); 395 self 396 } 397 language(mut self, language: &str) -> Self398 pub fn language(mut self, language: &str) -> Self { 399 self.language = Some(language.to_string()); 400 self 401 } 402 language_set(mut self, language_set: bool) -> Self403 pub fn language_set(mut self, language_set: bool) -> Self { 404 self.language_set = Some(language_set); 405 self 406 } 407 markup(mut self, markup: &str) -> Self408 pub fn markup(mut self, markup: &str) -> Self { 409 self.markup = Some(markup.to_string()); 410 self 411 } 412 max_width_chars(mut self, max_width_chars: i32) -> Self413 pub fn max_width_chars(mut self, max_width_chars: i32) -> Self { 414 self.max_width_chars = Some(max_width_chars); 415 self 416 } 417 placeholder_text(mut self, placeholder_text: &str) -> Self418 pub fn placeholder_text(mut self, placeholder_text: &str) -> Self { 419 self.placeholder_text = Some(placeholder_text.to_string()); 420 self 421 } 422 rise(mut self, rise: i32) -> Self423 pub fn rise(mut self, rise: i32) -> Self { 424 self.rise = Some(rise); 425 self 426 } 427 rise_set(mut self, rise_set: bool) -> Self428 pub fn rise_set(mut self, rise_set: bool) -> Self { 429 self.rise_set = Some(rise_set); 430 self 431 } 432 scale(mut self, scale: f64) -> Self433 pub fn scale(mut self, scale: f64) -> Self { 434 self.scale = Some(scale); 435 self 436 } 437 scale_set(mut self, scale_set: bool) -> Self438 pub fn scale_set(mut self, scale_set: bool) -> Self { 439 self.scale_set = Some(scale_set); 440 self 441 } 442 single_paragraph_mode(mut self, single_paragraph_mode: bool) -> Self443 pub fn single_paragraph_mode(mut self, single_paragraph_mode: bool) -> Self { 444 self.single_paragraph_mode = Some(single_paragraph_mode); 445 self 446 } 447 size(mut self, size: i32) -> Self448 pub fn size(mut self, size: i32) -> Self { 449 self.size = Some(size); 450 self 451 } 452 size_points(mut self, size_points: f64) -> Self453 pub fn size_points(mut self, size_points: f64) -> Self { 454 self.size_points = Some(size_points); 455 self 456 } 457 size_set(mut self, size_set: bool) -> Self458 pub fn size_set(mut self, size_set: bool) -> Self { 459 self.size_set = Some(size_set); 460 self 461 } 462 stretch(mut self, stretch: pango::Stretch) -> Self463 pub fn stretch(mut self, stretch: pango::Stretch) -> Self { 464 self.stretch = Some(stretch); 465 self 466 } 467 stretch_set(mut self, stretch_set: bool) -> Self468 pub fn stretch_set(mut self, stretch_set: bool) -> Self { 469 self.stretch_set = Some(stretch_set); 470 self 471 } 472 strikethrough(mut self, strikethrough: bool) -> Self473 pub fn strikethrough(mut self, strikethrough: bool) -> Self { 474 self.strikethrough = Some(strikethrough); 475 self 476 } 477 strikethrough_set(mut self, strikethrough_set: bool) -> Self478 pub fn strikethrough_set(mut self, strikethrough_set: bool) -> Self { 479 self.strikethrough_set = Some(strikethrough_set); 480 self 481 } 482 style(mut self, style: pango::Style) -> Self483 pub fn style(mut self, style: pango::Style) -> Self { 484 self.style = Some(style); 485 self 486 } 487 style_set(mut self, style_set: bool) -> Self488 pub fn style_set(mut self, style_set: bool) -> Self { 489 self.style_set = Some(style_set); 490 self 491 } 492 text(mut self, text: &str) -> Self493 pub fn text(mut self, text: &str) -> Self { 494 self.text = Some(text.to_string()); 495 self 496 } 497 underline(mut self, underline: pango::Underline) -> Self498 pub fn underline(mut self, underline: pango::Underline) -> Self { 499 self.underline = Some(underline); 500 self 501 } 502 underline_set(mut self, underline_set: bool) -> Self503 pub fn underline_set(mut self, underline_set: bool) -> Self { 504 self.underline_set = Some(underline_set); 505 self 506 } 507 variant(mut self, variant: pango::Variant) -> Self508 pub fn variant(mut self, variant: pango::Variant) -> Self { 509 self.variant = Some(variant); 510 self 511 } 512 variant_set(mut self, variant_set: bool) -> Self513 pub fn variant_set(mut self, variant_set: bool) -> Self { 514 self.variant_set = Some(variant_set); 515 self 516 } 517 weight(mut self, weight: i32) -> Self518 pub fn weight(mut self, weight: i32) -> Self { 519 self.weight = Some(weight); 520 self 521 } 522 weight_set(mut self, weight_set: bool) -> Self523 pub fn weight_set(mut self, weight_set: bool) -> Self { 524 self.weight_set = Some(weight_set); 525 self 526 } 527 width_chars(mut self, width_chars: i32) -> Self528 pub fn width_chars(mut self, width_chars: i32) -> Self { 529 self.width_chars = Some(width_chars); 530 self 531 } 532 wrap_mode(mut self, wrap_mode: pango::WrapMode) -> Self533 pub fn wrap_mode(mut self, wrap_mode: pango::WrapMode) -> Self { 534 self.wrap_mode = Some(wrap_mode); 535 self 536 } 537 wrap_width(mut self, wrap_width: i32) -> Self538 pub fn wrap_width(mut self, wrap_width: i32) -> Self { 539 self.wrap_width = Some(wrap_width); 540 self 541 } 542 cell_background(mut self, cell_background: &str) -> Self543 pub fn cell_background(mut self, cell_background: &str) -> Self { 544 self.cell_background = Some(cell_background.to_string()); 545 self 546 } 547 cell_background_rgba(mut self, cell_background_rgba: &gdk::RGBA) -> Self548 pub fn cell_background_rgba(mut self, cell_background_rgba: &gdk::RGBA) -> Self { 549 self.cell_background_rgba = Some(cell_background_rgba.clone()); 550 self 551 } 552 cell_background_set(mut self, cell_background_set: bool) -> Self553 pub fn cell_background_set(mut self, cell_background_set: bool) -> Self { 554 self.cell_background_set = Some(cell_background_set); 555 self 556 } 557 height(mut self, height: i32) -> Self558 pub fn height(mut self, height: i32) -> Self { 559 self.height = Some(height); 560 self 561 } 562 is_expanded(mut self, is_expanded: bool) -> Self563 pub fn is_expanded(mut self, is_expanded: bool) -> Self { 564 self.is_expanded = Some(is_expanded); 565 self 566 } 567 is_expander(mut self, is_expander: bool) -> Self568 pub fn is_expander(mut self, is_expander: bool) -> Self { 569 self.is_expander = Some(is_expander); 570 self 571 } 572 mode(mut self, mode: CellRendererMode) -> Self573 pub fn mode(mut self, mode: CellRendererMode) -> Self { 574 self.mode = Some(mode); 575 self 576 } 577 sensitive(mut self, sensitive: bool) -> Self578 pub fn sensitive(mut self, sensitive: bool) -> Self { 579 self.sensitive = Some(sensitive); 580 self 581 } 582 visible(mut self, visible: bool) -> Self583 pub fn visible(mut self, visible: bool) -> Self { 584 self.visible = Some(visible); 585 self 586 } 587 width(mut self, width: i32) -> Self588 pub fn width(mut self, width: i32) -> Self { 589 self.width = Some(width); 590 self 591 } 592 xalign(mut self, xalign: f32) -> Self593 pub fn xalign(mut self, xalign: f32) -> Self { 594 self.xalign = Some(xalign); 595 self 596 } 597 xpad(mut self, xpad: u32) -> Self598 pub fn xpad(mut self, xpad: u32) -> Self { 599 self.xpad = Some(xpad); 600 self 601 } 602 yalign(mut self, yalign: f32) -> Self603 pub fn yalign(mut self, yalign: f32) -> Self { 604 self.yalign = Some(yalign); 605 self 606 } 607 ypad(mut self, ypad: u32) -> Self608 pub fn ypad(mut self, ypad: u32) -> Self { 609 self.ypad = Some(ypad); 610 self 611 } 612 } 613 614 pub const NONE_CELL_RENDERER_TEXT: Option<&CellRendererText> = None; 615 616 pub trait CellRendererTextExt: 'static { 617 #[doc(alias = "gtk_cell_renderer_text_set_fixed_height_from_font")] set_fixed_height_from_font(&self, number_of_rows: i32)618 fn set_fixed_height_from_font(&self, number_of_rows: i32); 619 620 #[doc(alias = "align-set")] is_align_set(&self) -> bool621 fn is_align_set(&self) -> bool; 622 623 #[doc(alias = "align-set")] set_align_set(&self, align_set: bool)624 fn set_align_set(&self, align_set: bool); 625 alignment(&self) -> pango::Alignment626 fn alignment(&self) -> pango::Alignment; 627 set_alignment(&self, alignment: pango::Alignment)628 fn set_alignment(&self, alignment: pango::Alignment); 629 attributes(&self) -> Option<pango::AttrList>630 fn attributes(&self) -> Option<pango::AttrList>; 631 set_attributes(&self, attributes: Option<&pango::AttrList>)632 fn set_attributes(&self, attributes: Option<&pango::AttrList>); 633 set_background(&self, background: Option<&str>)634 fn set_background(&self, background: Option<&str>); 635 636 #[doc(alias = "background-rgba")] background_rgba(&self) -> Option<gdk::RGBA>637 fn background_rgba(&self) -> Option<gdk::RGBA>; 638 639 #[doc(alias = "background-rgba")] set_background_rgba(&self, background_rgba: Option<&gdk::RGBA>)640 fn set_background_rgba(&self, background_rgba: Option<&gdk::RGBA>); 641 642 #[doc(alias = "background-set")] is_background_set(&self) -> bool643 fn is_background_set(&self) -> bool; 644 645 #[doc(alias = "background-set")] set_background_set(&self, background_set: bool)646 fn set_background_set(&self, background_set: bool); 647 is_editable(&self) -> bool648 fn is_editable(&self) -> bool; 649 set_editable(&self, editable: bool)650 fn set_editable(&self, editable: bool); 651 652 #[doc(alias = "editable-set")] is_editable_set(&self) -> bool653 fn is_editable_set(&self) -> bool; 654 655 #[doc(alias = "editable-set")] set_editable_set(&self, editable_set: bool)656 fn set_editable_set(&self, editable_set: bool); 657 ellipsize(&self) -> pango::EllipsizeMode658 fn ellipsize(&self) -> pango::EllipsizeMode; 659 set_ellipsize(&self, ellipsize: pango::EllipsizeMode)660 fn set_ellipsize(&self, ellipsize: pango::EllipsizeMode); 661 662 #[doc(alias = "ellipsize-set")] is_ellipsize_set(&self) -> bool663 fn is_ellipsize_set(&self) -> bool; 664 665 #[doc(alias = "ellipsize-set")] set_ellipsize_set(&self, ellipsize_set: bool)666 fn set_ellipsize_set(&self, ellipsize_set: bool); 667 family(&self) -> Option<glib::GString>668 fn family(&self) -> Option<glib::GString>; 669 set_family(&self, family: Option<&str>)670 fn set_family(&self, family: Option<&str>); 671 672 #[doc(alias = "family-set")] is_family_set(&self) -> bool673 fn is_family_set(&self) -> bool; 674 675 #[doc(alias = "family-set")] set_family_set(&self, family_set: bool)676 fn set_family_set(&self, family_set: bool); 677 font(&self) -> Option<glib::GString>678 fn font(&self) -> Option<glib::GString>; 679 set_font(&self, font: Option<&str>)680 fn set_font(&self, font: Option<&str>); 681 682 #[doc(alias = "font-desc")] font_desc(&self) -> Option<pango::FontDescription>683 fn font_desc(&self) -> Option<pango::FontDescription>; 684 685 #[doc(alias = "font-desc")] set_font_desc(&self, font_desc: Option<&pango::FontDescription>)686 fn set_font_desc(&self, font_desc: Option<&pango::FontDescription>); 687 set_foreground(&self, foreground: Option<&str>)688 fn set_foreground(&self, foreground: Option<&str>); 689 690 #[doc(alias = "foreground-rgba")] foreground_rgba(&self) -> Option<gdk::RGBA>691 fn foreground_rgba(&self) -> Option<gdk::RGBA>; 692 693 #[doc(alias = "foreground-rgba")] set_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>)694 fn set_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>); 695 696 #[doc(alias = "foreground-set")] is_foreground_set(&self) -> bool697 fn is_foreground_set(&self) -> bool; 698 699 #[doc(alias = "foreground-set")] set_foreground_set(&self, foreground_set: bool)700 fn set_foreground_set(&self, foreground_set: bool); 701 language(&self) -> Option<glib::GString>702 fn language(&self) -> Option<glib::GString>; 703 set_language(&self, language: Option<&str>)704 fn set_language(&self, language: Option<&str>); 705 706 #[doc(alias = "language-set")] is_language_set(&self) -> bool707 fn is_language_set(&self) -> bool; 708 709 #[doc(alias = "language-set")] set_language_set(&self, language_set: bool)710 fn set_language_set(&self, language_set: bool); 711 set_markup(&self, markup: Option<&str>)712 fn set_markup(&self, markup: Option<&str>); 713 714 #[doc(alias = "max-width-chars")] max_width_chars(&self) -> i32715 fn max_width_chars(&self) -> i32; 716 717 #[doc(alias = "max-width-chars")] set_max_width_chars(&self, max_width_chars: i32)718 fn set_max_width_chars(&self, max_width_chars: i32); 719 720 #[doc(alias = "placeholder-text")] placeholder_text(&self) -> Option<glib::GString>721 fn placeholder_text(&self) -> Option<glib::GString>; 722 723 #[doc(alias = "placeholder-text")] set_placeholder_text(&self, placeholder_text: Option<&str>)724 fn set_placeholder_text(&self, placeholder_text: Option<&str>); 725 rise(&self) -> i32726 fn rise(&self) -> i32; 727 set_rise(&self, rise: i32)728 fn set_rise(&self, rise: i32); 729 730 #[doc(alias = "rise-set")] is_rise_set(&self) -> bool731 fn is_rise_set(&self) -> bool; 732 733 #[doc(alias = "rise-set")] set_rise_set(&self, rise_set: bool)734 fn set_rise_set(&self, rise_set: bool); 735 scale(&self) -> f64736 fn scale(&self) -> f64; 737 set_scale(&self, scale: f64)738 fn set_scale(&self, scale: f64); 739 740 #[doc(alias = "scale-set")] is_scale_set(&self) -> bool741 fn is_scale_set(&self) -> bool; 742 743 #[doc(alias = "scale-set")] set_scale_set(&self, scale_set: bool)744 fn set_scale_set(&self, scale_set: bool); 745 746 #[doc(alias = "single-paragraph-mode")] is_single_paragraph_mode(&self) -> bool747 fn is_single_paragraph_mode(&self) -> bool; 748 749 #[doc(alias = "single-paragraph-mode")] set_single_paragraph_mode(&self, single_paragraph_mode: bool)750 fn set_single_paragraph_mode(&self, single_paragraph_mode: bool); 751 size(&self) -> i32752 fn size(&self) -> i32; 753 set_size(&self, size: i32)754 fn set_size(&self, size: i32); 755 756 #[doc(alias = "size-points")] size_points(&self) -> f64757 fn size_points(&self) -> f64; 758 759 #[doc(alias = "size-points")] set_size_points(&self, size_points: f64)760 fn set_size_points(&self, size_points: f64); 761 762 #[doc(alias = "size-set")] is_size_set(&self) -> bool763 fn is_size_set(&self) -> bool; 764 765 #[doc(alias = "size-set")] set_size_set(&self, size_set: bool)766 fn set_size_set(&self, size_set: bool); 767 stretch(&self) -> pango::Stretch768 fn stretch(&self) -> pango::Stretch; 769 set_stretch(&self, stretch: pango::Stretch)770 fn set_stretch(&self, stretch: pango::Stretch); 771 772 #[doc(alias = "stretch-set")] is_stretch_set(&self) -> bool773 fn is_stretch_set(&self) -> bool; 774 775 #[doc(alias = "stretch-set")] set_stretch_set(&self, stretch_set: bool)776 fn set_stretch_set(&self, stretch_set: bool); 777 is_strikethrough(&self) -> bool778 fn is_strikethrough(&self) -> bool; 779 set_strikethrough(&self, strikethrough: bool)780 fn set_strikethrough(&self, strikethrough: bool); 781 782 #[doc(alias = "strikethrough-set")] is_strikethrough_set(&self) -> bool783 fn is_strikethrough_set(&self) -> bool; 784 785 #[doc(alias = "strikethrough-set")] set_strikethrough_set(&self, strikethrough_set: bool)786 fn set_strikethrough_set(&self, strikethrough_set: bool); 787 style(&self) -> pango::Style788 fn style(&self) -> pango::Style; 789 set_style(&self, style: pango::Style)790 fn set_style(&self, style: pango::Style); 791 792 #[doc(alias = "style-set")] is_style_set(&self) -> bool793 fn is_style_set(&self) -> bool; 794 795 #[doc(alias = "style-set")] set_style_set(&self, style_set: bool)796 fn set_style_set(&self, style_set: bool); 797 text(&self) -> Option<glib::GString>798 fn text(&self) -> Option<glib::GString>; 799 set_text(&self, text: Option<&str>)800 fn set_text(&self, text: Option<&str>); 801 underline(&self) -> pango::Underline802 fn underline(&self) -> pango::Underline; 803 set_underline(&self, underline: pango::Underline)804 fn set_underline(&self, underline: pango::Underline); 805 806 #[doc(alias = "underline-set")] is_underline_set(&self) -> bool807 fn is_underline_set(&self) -> bool; 808 809 #[doc(alias = "underline-set")] set_underline_set(&self, underline_set: bool)810 fn set_underline_set(&self, underline_set: bool); 811 variant(&self) -> pango::Variant812 fn variant(&self) -> pango::Variant; 813 set_variant(&self, variant: pango::Variant)814 fn set_variant(&self, variant: pango::Variant); 815 816 #[doc(alias = "variant-set")] is_variant_set(&self) -> bool817 fn is_variant_set(&self) -> bool; 818 819 #[doc(alias = "variant-set")] set_variant_set(&self, variant_set: bool)820 fn set_variant_set(&self, variant_set: bool); 821 weight(&self) -> i32822 fn weight(&self) -> i32; 823 set_weight(&self, weight: i32)824 fn set_weight(&self, weight: i32); 825 826 #[doc(alias = "weight-set")] is_weight_set(&self) -> bool827 fn is_weight_set(&self) -> bool; 828 829 #[doc(alias = "weight-set")] set_weight_set(&self, weight_set: bool)830 fn set_weight_set(&self, weight_set: bool); 831 832 #[doc(alias = "width-chars")] width_chars(&self) -> i32833 fn width_chars(&self) -> i32; 834 835 #[doc(alias = "width-chars")] set_width_chars(&self, width_chars: i32)836 fn set_width_chars(&self, width_chars: i32); 837 838 #[doc(alias = "wrap-mode")] wrap_mode(&self) -> pango::WrapMode839 fn wrap_mode(&self) -> pango::WrapMode; 840 841 #[doc(alias = "wrap-mode")] set_wrap_mode(&self, wrap_mode: pango::WrapMode)842 fn set_wrap_mode(&self, wrap_mode: pango::WrapMode); 843 844 #[doc(alias = "wrap-width")] wrap_width(&self) -> i32845 fn wrap_width(&self) -> i32; 846 847 #[doc(alias = "wrap-width")] set_wrap_width(&self, wrap_width: i32)848 fn set_wrap_width(&self, wrap_width: i32); 849 850 #[doc(alias = "edited")] connect_edited<F: Fn(&Self, TreePath, &str) + 'static>(&self, f: F) -> SignalHandlerId851 fn connect_edited<F: Fn(&Self, TreePath, &str) + 'static>(&self, f: F) -> SignalHandlerId; 852 853 #[doc(alias = "align-set")] connect_align_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId854 fn connect_align_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 855 856 #[doc(alias = "alignment")] connect_alignment_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId857 fn connect_alignment_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 858 859 #[doc(alias = "attributes")] connect_attributes_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId860 fn connect_attributes_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 861 862 #[doc(alias = "background")] connect_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId863 fn connect_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 864 865 #[doc(alias = "background-rgba")] connect_background_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId866 fn connect_background_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 867 868 #[doc(alias = "background-set")] connect_background_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId869 fn connect_background_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 870 871 #[doc(alias = "editable")] connect_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId872 fn connect_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 873 874 #[doc(alias = "editable-set")] connect_editable_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId875 fn connect_editable_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 876 877 #[doc(alias = "ellipsize")] connect_ellipsize_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId878 fn connect_ellipsize_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 879 880 #[doc(alias = "ellipsize-set")] connect_ellipsize_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId881 fn connect_ellipsize_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 882 883 #[doc(alias = "family")] connect_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId884 fn connect_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 885 886 #[doc(alias = "family-set")] connect_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId887 fn connect_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 888 889 #[doc(alias = "font")] connect_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId890 fn connect_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 891 892 #[doc(alias = "font-desc")] connect_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId893 fn connect_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 894 895 #[doc(alias = "foreground")] connect_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId896 fn connect_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 897 898 #[doc(alias = "foreground-rgba")] connect_foreground_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId899 fn connect_foreground_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 900 901 #[doc(alias = "foreground-set")] connect_foreground_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId902 fn connect_foreground_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 903 904 #[doc(alias = "language")] connect_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId905 fn connect_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 906 907 #[doc(alias = "language-set")] connect_language_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId908 fn connect_language_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 909 910 #[doc(alias = "markup")] connect_markup_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId911 fn connect_markup_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 912 913 #[doc(alias = "max-width-chars")] connect_max_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId914 fn connect_max_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 915 916 #[doc(alias = "placeholder-text")] connect_placeholder_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId917 fn connect_placeholder_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 918 919 #[doc(alias = "rise")] connect_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId920 fn connect_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 921 922 #[doc(alias = "rise-set")] connect_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId923 fn connect_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 924 925 #[doc(alias = "scale")] connect_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId926 fn connect_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 927 928 #[doc(alias = "scale-set")] connect_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId929 fn connect_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 930 931 #[doc(alias = "single-paragraph-mode")] connect_single_paragraph_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId932 fn connect_single_paragraph_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) 933 -> SignalHandlerId; 934 935 #[doc(alias = "size")] connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId936 fn connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 937 938 #[doc(alias = "size-points")] connect_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId939 fn connect_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 940 941 #[doc(alias = "size-set")] connect_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId942 fn connect_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 943 944 #[doc(alias = "stretch")] connect_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId945 fn connect_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 946 947 #[doc(alias = "stretch-set")] connect_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId948 fn connect_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 949 950 #[doc(alias = "strikethrough")] connect_strikethrough_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId951 fn connect_strikethrough_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 952 953 #[doc(alias = "strikethrough-set")] connect_strikethrough_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId954 fn connect_strikethrough_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 955 956 #[doc(alias = "style")] connect_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId957 fn connect_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 958 959 #[doc(alias = "style-set")] connect_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId960 fn connect_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 961 962 #[doc(alias = "text")] connect_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId963 fn connect_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 964 965 #[doc(alias = "underline")] connect_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId966 fn connect_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 967 968 #[doc(alias = "underline-set")] connect_underline_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId969 fn connect_underline_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 970 971 #[doc(alias = "variant")] connect_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId972 fn connect_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 973 974 #[doc(alias = "variant-set")] connect_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId975 fn connect_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 976 977 #[doc(alias = "weight")] connect_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId978 fn connect_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 979 980 #[doc(alias = "weight-set")] connect_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId981 fn connect_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 982 983 #[doc(alias = "width-chars")] connect_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId984 fn connect_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 985 986 #[doc(alias = "wrap-mode")] connect_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId987 fn connect_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 988 989 #[doc(alias = "wrap-width")] connect_wrap_width_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId990 fn connect_wrap_width_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 991 } 992 993 impl<O: IsA<CellRendererText>> CellRendererTextExt for O { set_fixed_height_from_font(&self, number_of_rows: i32)994 fn set_fixed_height_from_font(&self, number_of_rows: i32) { 995 unsafe { 996 ffi::gtk_cell_renderer_text_set_fixed_height_from_font( 997 self.as_ref().to_glib_none().0, 998 number_of_rows, 999 ); 1000 } 1001 } 1002 is_align_set(&self) -> bool1003 fn is_align_set(&self) -> bool { 1004 unsafe { 1005 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1006 glib::gobject_ffi::g_object_get_property( 1007 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1008 b"align-set\0".as_ptr() as *const _, 1009 value.to_glib_none_mut().0, 1010 ); 1011 value 1012 .get() 1013 .expect("Return Value for property `align-set` getter") 1014 } 1015 } 1016 set_align_set(&self, align_set: bool)1017 fn set_align_set(&self, align_set: bool) { 1018 unsafe { 1019 glib::gobject_ffi::g_object_set_property( 1020 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1021 b"align-set\0".as_ptr() as *const _, 1022 align_set.to_value().to_glib_none().0, 1023 ); 1024 } 1025 } 1026 alignment(&self) -> pango::Alignment1027 fn alignment(&self) -> pango::Alignment { 1028 unsafe { 1029 let mut value = glib::Value::from_type(<pango::Alignment as StaticType>::static_type()); 1030 glib::gobject_ffi::g_object_get_property( 1031 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1032 b"alignment\0".as_ptr() as *const _, 1033 value.to_glib_none_mut().0, 1034 ); 1035 value 1036 .get() 1037 .expect("Return Value for property `alignment` getter") 1038 } 1039 } 1040 set_alignment(&self, alignment: pango::Alignment)1041 fn set_alignment(&self, alignment: pango::Alignment) { 1042 unsafe { 1043 glib::gobject_ffi::g_object_set_property( 1044 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1045 b"alignment\0".as_ptr() as *const _, 1046 alignment.to_value().to_glib_none().0, 1047 ); 1048 } 1049 } 1050 attributes(&self) -> Option<pango::AttrList>1051 fn attributes(&self) -> Option<pango::AttrList> { 1052 unsafe { 1053 let mut value = glib::Value::from_type(<pango::AttrList as StaticType>::static_type()); 1054 glib::gobject_ffi::g_object_get_property( 1055 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1056 b"attributes\0".as_ptr() as *const _, 1057 value.to_glib_none_mut().0, 1058 ); 1059 value 1060 .get() 1061 .expect("Return Value for property `attributes` getter") 1062 } 1063 } 1064 set_attributes(&self, attributes: Option<&pango::AttrList>)1065 fn set_attributes(&self, attributes: Option<&pango::AttrList>) { 1066 unsafe { 1067 glib::gobject_ffi::g_object_set_property( 1068 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1069 b"attributes\0".as_ptr() as *const _, 1070 attributes.to_value().to_glib_none().0, 1071 ); 1072 } 1073 } 1074 set_background(&self, background: Option<&str>)1075 fn set_background(&self, background: Option<&str>) { 1076 unsafe { 1077 glib::gobject_ffi::g_object_set_property( 1078 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1079 b"background\0".as_ptr() as *const _, 1080 background.to_value().to_glib_none().0, 1081 ); 1082 } 1083 } 1084 background_rgba(&self) -> Option<gdk::RGBA>1085 fn background_rgba(&self) -> Option<gdk::RGBA> { 1086 unsafe { 1087 let mut value = glib::Value::from_type(<gdk::RGBA as StaticType>::static_type()); 1088 glib::gobject_ffi::g_object_get_property( 1089 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1090 b"background-rgba\0".as_ptr() as *const _, 1091 value.to_glib_none_mut().0, 1092 ); 1093 value 1094 .get() 1095 .expect("Return Value for property `background-rgba` getter") 1096 } 1097 } 1098 set_background_rgba(&self, background_rgba: Option<&gdk::RGBA>)1099 fn set_background_rgba(&self, background_rgba: Option<&gdk::RGBA>) { 1100 unsafe { 1101 glib::gobject_ffi::g_object_set_property( 1102 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1103 b"background-rgba\0".as_ptr() as *const _, 1104 background_rgba.to_value().to_glib_none().0, 1105 ); 1106 } 1107 } 1108 is_background_set(&self) -> bool1109 fn is_background_set(&self) -> bool { 1110 unsafe { 1111 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1112 glib::gobject_ffi::g_object_get_property( 1113 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1114 b"background-set\0".as_ptr() as *const _, 1115 value.to_glib_none_mut().0, 1116 ); 1117 value 1118 .get() 1119 .expect("Return Value for property `background-set` getter") 1120 } 1121 } 1122 set_background_set(&self, background_set: bool)1123 fn set_background_set(&self, background_set: bool) { 1124 unsafe { 1125 glib::gobject_ffi::g_object_set_property( 1126 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1127 b"background-set\0".as_ptr() as *const _, 1128 background_set.to_value().to_glib_none().0, 1129 ); 1130 } 1131 } 1132 is_editable(&self) -> bool1133 fn is_editable(&self) -> bool { 1134 unsafe { 1135 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1136 glib::gobject_ffi::g_object_get_property( 1137 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1138 b"editable\0".as_ptr() as *const _, 1139 value.to_glib_none_mut().0, 1140 ); 1141 value 1142 .get() 1143 .expect("Return Value for property `editable` getter") 1144 } 1145 } 1146 set_editable(&self, editable: bool)1147 fn set_editable(&self, editable: bool) { 1148 unsafe { 1149 glib::gobject_ffi::g_object_set_property( 1150 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1151 b"editable\0".as_ptr() as *const _, 1152 editable.to_value().to_glib_none().0, 1153 ); 1154 } 1155 } 1156 is_editable_set(&self) -> bool1157 fn is_editable_set(&self) -> bool { 1158 unsafe { 1159 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1160 glib::gobject_ffi::g_object_get_property( 1161 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1162 b"editable-set\0".as_ptr() as *const _, 1163 value.to_glib_none_mut().0, 1164 ); 1165 value 1166 .get() 1167 .expect("Return Value for property `editable-set` getter") 1168 } 1169 } 1170 set_editable_set(&self, editable_set: bool)1171 fn set_editable_set(&self, editable_set: bool) { 1172 unsafe { 1173 glib::gobject_ffi::g_object_set_property( 1174 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1175 b"editable-set\0".as_ptr() as *const _, 1176 editable_set.to_value().to_glib_none().0, 1177 ); 1178 } 1179 } 1180 ellipsize(&self) -> pango::EllipsizeMode1181 fn ellipsize(&self) -> pango::EllipsizeMode { 1182 unsafe { 1183 let mut value = 1184 glib::Value::from_type(<pango::EllipsizeMode as StaticType>::static_type()); 1185 glib::gobject_ffi::g_object_get_property( 1186 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1187 b"ellipsize\0".as_ptr() as *const _, 1188 value.to_glib_none_mut().0, 1189 ); 1190 value 1191 .get() 1192 .expect("Return Value for property `ellipsize` getter") 1193 } 1194 } 1195 set_ellipsize(&self, ellipsize: pango::EllipsizeMode)1196 fn set_ellipsize(&self, ellipsize: pango::EllipsizeMode) { 1197 unsafe { 1198 glib::gobject_ffi::g_object_set_property( 1199 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1200 b"ellipsize\0".as_ptr() as *const _, 1201 ellipsize.to_value().to_glib_none().0, 1202 ); 1203 } 1204 } 1205 is_ellipsize_set(&self) -> bool1206 fn is_ellipsize_set(&self) -> bool { 1207 unsafe { 1208 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1209 glib::gobject_ffi::g_object_get_property( 1210 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1211 b"ellipsize-set\0".as_ptr() as *const _, 1212 value.to_glib_none_mut().0, 1213 ); 1214 value 1215 .get() 1216 .expect("Return Value for property `ellipsize-set` getter") 1217 } 1218 } 1219 set_ellipsize_set(&self, ellipsize_set: bool)1220 fn set_ellipsize_set(&self, ellipsize_set: bool) { 1221 unsafe { 1222 glib::gobject_ffi::g_object_set_property( 1223 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1224 b"ellipsize-set\0".as_ptr() as *const _, 1225 ellipsize_set.to_value().to_glib_none().0, 1226 ); 1227 } 1228 } 1229 family(&self) -> Option<glib::GString>1230 fn family(&self) -> Option<glib::GString> { 1231 unsafe { 1232 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1233 glib::gobject_ffi::g_object_get_property( 1234 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1235 b"family\0".as_ptr() as *const _, 1236 value.to_glib_none_mut().0, 1237 ); 1238 value 1239 .get() 1240 .expect("Return Value for property `family` getter") 1241 } 1242 } 1243 set_family(&self, family: Option<&str>)1244 fn set_family(&self, family: Option<&str>) { 1245 unsafe { 1246 glib::gobject_ffi::g_object_set_property( 1247 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1248 b"family\0".as_ptr() as *const _, 1249 family.to_value().to_glib_none().0, 1250 ); 1251 } 1252 } 1253 is_family_set(&self) -> bool1254 fn is_family_set(&self) -> bool { 1255 unsafe { 1256 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1257 glib::gobject_ffi::g_object_get_property( 1258 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1259 b"family-set\0".as_ptr() as *const _, 1260 value.to_glib_none_mut().0, 1261 ); 1262 value 1263 .get() 1264 .expect("Return Value for property `family-set` getter") 1265 } 1266 } 1267 set_family_set(&self, family_set: bool)1268 fn set_family_set(&self, family_set: bool) { 1269 unsafe { 1270 glib::gobject_ffi::g_object_set_property( 1271 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1272 b"family-set\0".as_ptr() as *const _, 1273 family_set.to_value().to_glib_none().0, 1274 ); 1275 } 1276 } 1277 font(&self) -> Option<glib::GString>1278 fn font(&self) -> Option<glib::GString> { 1279 unsafe { 1280 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1281 glib::gobject_ffi::g_object_get_property( 1282 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1283 b"font\0".as_ptr() as *const _, 1284 value.to_glib_none_mut().0, 1285 ); 1286 value 1287 .get() 1288 .expect("Return Value for property `font` getter") 1289 } 1290 } 1291 set_font(&self, font: Option<&str>)1292 fn set_font(&self, font: Option<&str>) { 1293 unsafe { 1294 glib::gobject_ffi::g_object_set_property( 1295 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1296 b"font\0".as_ptr() as *const _, 1297 font.to_value().to_glib_none().0, 1298 ); 1299 } 1300 } 1301 font_desc(&self) -> Option<pango::FontDescription>1302 fn font_desc(&self) -> Option<pango::FontDescription> { 1303 unsafe { 1304 let mut value = 1305 glib::Value::from_type(<pango::FontDescription as StaticType>::static_type()); 1306 glib::gobject_ffi::g_object_get_property( 1307 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1308 b"font-desc\0".as_ptr() as *const _, 1309 value.to_glib_none_mut().0, 1310 ); 1311 value 1312 .get() 1313 .expect("Return Value for property `font-desc` getter") 1314 } 1315 } 1316 set_font_desc(&self, font_desc: Option<&pango::FontDescription>)1317 fn set_font_desc(&self, font_desc: Option<&pango::FontDescription>) { 1318 unsafe { 1319 glib::gobject_ffi::g_object_set_property( 1320 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1321 b"font-desc\0".as_ptr() as *const _, 1322 font_desc.to_value().to_glib_none().0, 1323 ); 1324 } 1325 } 1326 set_foreground(&self, foreground: Option<&str>)1327 fn set_foreground(&self, foreground: Option<&str>) { 1328 unsafe { 1329 glib::gobject_ffi::g_object_set_property( 1330 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1331 b"foreground\0".as_ptr() as *const _, 1332 foreground.to_value().to_glib_none().0, 1333 ); 1334 } 1335 } 1336 foreground_rgba(&self) -> Option<gdk::RGBA>1337 fn foreground_rgba(&self) -> Option<gdk::RGBA> { 1338 unsafe { 1339 let mut value = glib::Value::from_type(<gdk::RGBA as StaticType>::static_type()); 1340 glib::gobject_ffi::g_object_get_property( 1341 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1342 b"foreground-rgba\0".as_ptr() as *const _, 1343 value.to_glib_none_mut().0, 1344 ); 1345 value 1346 .get() 1347 .expect("Return Value for property `foreground-rgba` getter") 1348 } 1349 } 1350 set_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>)1351 fn set_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>) { 1352 unsafe { 1353 glib::gobject_ffi::g_object_set_property( 1354 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1355 b"foreground-rgba\0".as_ptr() as *const _, 1356 foreground_rgba.to_value().to_glib_none().0, 1357 ); 1358 } 1359 } 1360 is_foreground_set(&self) -> bool1361 fn is_foreground_set(&self) -> bool { 1362 unsafe { 1363 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1364 glib::gobject_ffi::g_object_get_property( 1365 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1366 b"foreground-set\0".as_ptr() as *const _, 1367 value.to_glib_none_mut().0, 1368 ); 1369 value 1370 .get() 1371 .expect("Return Value for property `foreground-set` getter") 1372 } 1373 } 1374 set_foreground_set(&self, foreground_set: bool)1375 fn set_foreground_set(&self, foreground_set: bool) { 1376 unsafe { 1377 glib::gobject_ffi::g_object_set_property( 1378 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1379 b"foreground-set\0".as_ptr() as *const _, 1380 foreground_set.to_value().to_glib_none().0, 1381 ); 1382 } 1383 } 1384 language(&self) -> Option<glib::GString>1385 fn language(&self) -> Option<glib::GString> { 1386 unsafe { 1387 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1388 glib::gobject_ffi::g_object_get_property( 1389 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1390 b"language\0".as_ptr() as *const _, 1391 value.to_glib_none_mut().0, 1392 ); 1393 value 1394 .get() 1395 .expect("Return Value for property `language` getter") 1396 } 1397 } 1398 set_language(&self, language: Option<&str>)1399 fn set_language(&self, language: Option<&str>) { 1400 unsafe { 1401 glib::gobject_ffi::g_object_set_property( 1402 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1403 b"language\0".as_ptr() as *const _, 1404 language.to_value().to_glib_none().0, 1405 ); 1406 } 1407 } 1408 is_language_set(&self) -> bool1409 fn is_language_set(&self) -> bool { 1410 unsafe { 1411 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1412 glib::gobject_ffi::g_object_get_property( 1413 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1414 b"language-set\0".as_ptr() as *const _, 1415 value.to_glib_none_mut().0, 1416 ); 1417 value 1418 .get() 1419 .expect("Return Value for property `language-set` getter") 1420 } 1421 } 1422 set_language_set(&self, language_set: bool)1423 fn set_language_set(&self, language_set: bool) { 1424 unsafe { 1425 glib::gobject_ffi::g_object_set_property( 1426 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1427 b"language-set\0".as_ptr() as *const _, 1428 language_set.to_value().to_glib_none().0, 1429 ); 1430 } 1431 } 1432 set_markup(&self, markup: Option<&str>)1433 fn set_markup(&self, markup: Option<&str>) { 1434 unsafe { 1435 glib::gobject_ffi::g_object_set_property( 1436 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1437 b"markup\0".as_ptr() as *const _, 1438 markup.to_value().to_glib_none().0, 1439 ); 1440 } 1441 } 1442 max_width_chars(&self) -> i321443 fn max_width_chars(&self) -> i32 { 1444 unsafe { 1445 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 1446 glib::gobject_ffi::g_object_get_property( 1447 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1448 b"max-width-chars\0".as_ptr() as *const _, 1449 value.to_glib_none_mut().0, 1450 ); 1451 value 1452 .get() 1453 .expect("Return Value for property `max-width-chars` getter") 1454 } 1455 } 1456 set_max_width_chars(&self, max_width_chars: i32)1457 fn set_max_width_chars(&self, max_width_chars: i32) { 1458 unsafe { 1459 glib::gobject_ffi::g_object_set_property( 1460 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1461 b"max-width-chars\0".as_ptr() as *const _, 1462 max_width_chars.to_value().to_glib_none().0, 1463 ); 1464 } 1465 } 1466 placeholder_text(&self) -> Option<glib::GString>1467 fn placeholder_text(&self) -> Option<glib::GString> { 1468 unsafe { 1469 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1470 glib::gobject_ffi::g_object_get_property( 1471 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1472 b"placeholder-text\0".as_ptr() as *const _, 1473 value.to_glib_none_mut().0, 1474 ); 1475 value 1476 .get() 1477 .expect("Return Value for property `placeholder-text` getter") 1478 } 1479 } 1480 set_placeholder_text(&self, placeholder_text: Option<&str>)1481 fn set_placeholder_text(&self, placeholder_text: Option<&str>) { 1482 unsafe { 1483 glib::gobject_ffi::g_object_set_property( 1484 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1485 b"placeholder-text\0".as_ptr() as *const _, 1486 placeholder_text.to_value().to_glib_none().0, 1487 ); 1488 } 1489 } 1490 rise(&self) -> i321491 fn rise(&self) -> i32 { 1492 unsafe { 1493 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 1494 glib::gobject_ffi::g_object_get_property( 1495 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1496 b"rise\0".as_ptr() as *const _, 1497 value.to_glib_none_mut().0, 1498 ); 1499 value 1500 .get() 1501 .expect("Return Value for property `rise` getter") 1502 } 1503 } 1504 set_rise(&self, rise: i32)1505 fn set_rise(&self, rise: i32) { 1506 unsafe { 1507 glib::gobject_ffi::g_object_set_property( 1508 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1509 b"rise\0".as_ptr() as *const _, 1510 rise.to_value().to_glib_none().0, 1511 ); 1512 } 1513 } 1514 is_rise_set(&self) -> bool1515 fn is_rise_set(&self) -> bool { 1516 unsafe { 1517 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1518 glib::gobject_ffi::g_object_get_property( 1519 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1520 b"rise-set\0".as_ptr() as *const _, 1521 value.to_glib_none_mut().0, 1522 ); 1523 value 1524 .get() 1525 .expect("Return Value for property `rise-set` getter") 1526 } 1527 } 1528 set_rise_set(&self, rise_set: bool)1529 fn set_rise_set(&self, rise_set: bool) { 1530 unsafe { 1531 glib::gobject_ffi::g_object_set_property( 1532 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1533 b"rise-set\0".as_ptr() as *const _, 1534 rise_set.to_value().to_glib_none().0, 1535 ); 1536 } 1537 } 1538 scale(&self) -> f641539 fn scale(&self) -> f64 { 1540 unsafe { 1541 let mut value = glib::Value::from_type(<f64 as StaticType>::static_type()); 1542 glib::gobject_ffi::g_object_get_property( 1543 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1544 b"scale\0".as_ptr() as *const _, 1545 value.to_glib_none_mut().0, 1546 ); 1547 value 1548 .get() 1549 .expect("Return Value for property `scale` getter") 1550 } 1551 } 1552 set_scale(&self, scale: f64)1553 fn set_scale(&self, scale: f64) { 1554 unsafe { 1555 glib::gobject_ffi::g_object_set_property( 1556 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1557 b"scale\0".as_ptr() as *const _, 1558 scale.to_value().to_glib_none().0, 1559 ); 1560 } 1561 } 1562 is_scale_set(&self) -> bool1563 fn is_scale_set(&self) -> bool { 1564 unsafe { 1565 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1566 glib::gobject_ffi::g_object_get_property( 1567 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1568 b"scale-set\0".as_ptr() as *const _, 1569 value.to_glib_none_mut().0, 1570 ); 1571 value 1572 .get() 1573 .expect("Return Value for property `scale-set` getter") 1574 } 1575 } 1576 set_scale_set(&self, scale_set: bool)1577 fn set_scale_set(&self, scale_set: bool) { 1578 unsafe { 1579 glib::gobject_ffi::g_object_set_property( 1580 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1581 b"scale-set\0".as_ptr() as *const _, 1582 scale_set.to_value().to_glib_none().0, 1583 ); 1584 } 1585 } 1586 is_single_paragraph_mode(&self) -> bool1587 fn is_single_paragraph_mode(&self) -> bool { 1588 unsafe { 1589 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1590 glib::gobject_ffi::g_object_get_property( 1591 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1592 b"single-paragraph-mode\0".as_ptr() as *const _, 1593 value.to_glib_none_mut().0, 1594 ); 1595 value 1596 .get() 1597 .expect("Return Value for property `single-paragraph-mode` getter") 1598 } 1599 } 1600 set_single_paragraph_mode(&self, single_paragraph_mode: bool)1601 fn set_single_paragraph_mode(&self, single_paragraph_mode: bool) { 1602 unsafe { 1603 glib::gobject_ffi::g_object_set_property( 1604 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1605 b"single-paragraph-mode\0".as_ptr() as *const _, 1606 single_paragraph_mode.to_value().to_glib_none().0, 1607 ); 1608 } 1609 } 1610 size(&self) -> i321611 fn size(&self) -> i32 { 1612 unsafe { 1613 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 1614 glib::gobject_ffi::g_object_get_property( 1615 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1616 b"size\0".as_ptr() as *const _, 1617 value.to_glib_none_mut().0, 1618 ); 1619 value 1620 .get() 1621 .expect("Return Value for property `size` getter") 1622 } 1623 } 1624 set_size(&self, size: i32)1625 fn set_size(&self, size: i32) { 1626 unsafe { 1627 glib::gobject_ffi::g_object_set_property( 1628 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1629 b"size\0".as_ptr() as *const _, 1630 size.to_value().to_glib_none().0, 1631 ); 1632 } 1633 } 1634 size_points(&self) -> f641635 fn size_points(&self) -> f64 { 1636 unsafe { 1637 let mut value = glib::Value::from_type(<f64 as StaticType>::static_type()); 1638 glib::gobject_ffi::g_object_get_property( 1639 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1640 b"size-points\0".as_ptr() as *const _, 1641 value.to_glib_none_mut().0, 1642 ); 1643 value 1644 .get() 1645 .expect("Return Value for property `size-points` getter") 1646 } 1647 } 1648 set_size_points(&self, size_points: f64)1649 fn set_size_points(&self, size_points: f64) { 1650 unsafe { 1651 glib::gobject_ffi::g_object_set_property( 1652 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1653 b"size-points\0".as_ptr() as *const _, 1654 size_points.to_value().to_glib_none().0, 1655 ); 1656 } 1657 } 1658 is_size_set(&self) -> bool1659 fn is_size_set(&self) -> bool { 1660 unsafe { 1661 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1662 glib::gobject_ffi::g_object_get_property( 1663 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1664 b"size-set\0".as_ptr() as *const _, 1665 value.to_glib_none_mut().0, 1666 ); 1667 value 1668 .get() 1669 .expect("Return Value for property `size-set` getter") 1670 } 1671 } 1672 set_size_set(&self, size_set: bool)1673 fn set_size_set(&self, size_set: bool) { 1674 unsafe { 1675 glib::gobject_ffi::g_object_set_property( 1676 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1677 b"size-set\0".as_ptr() as *const _, 1678 size_set.to_value().to_glib_none().0, 1679 ); 1680 } 1681 } 1682 stretch(&self) -> pango::Stretch1683 fn stretch(&self) -> pango::Stretch { 1684 unsafe { 1685 let mut value = glib::Value::from_type(<pango::Stretch as StaticType>::static_type()); 1686 glib::gobject_ffi::g_object_get_property( 1687 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1688 b"stretch\0".as_ptr() as *const _, 1689 value.to_glib_none_mut().0, 1690 ); 1691 value 1692 .get() 1693 .expect("Return Value for property `stretch` getter") 1694 } 1695 } 1696 set_stretch(&self, stretch: pango::Stretch)1697 fn set_stretch(&self, stretch: pango::Stretch) { 1698 unsafe { 1699 glib::gobject_ffi::g_object_set_property( 1700 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1701 b"stretch\0".as_ptr() as *const _, 1702 stretch.to_value().to_glib_none().0, 1703 ); 1704 } 1705 } 1706 is_stretch_set(&self) -> bool1707 fn is_stretch_set(&self) -> bool { 1708 unsafe { 1709 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1710 glib::gobject_ffi::g_object_get_property( 1711 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1712 b"stretch-set\0".as_ptr() as *const _, 1713 value.to_glib_none_mut().0, 1714 ); 1715 value 1716 .get() 1717 .expect("Return Value for property `stretch-set` getter") 1718 } 1719 } 1720 set_stretch_set(&self, stretch_set: bool)1721 fn set_stretch_set(&self, stretch_set: bool) { 1722 unsafe { 1723 glib::gobject_ffi::g_object_set_property( 1724 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1725 b"stretch-set\0".as_ptr() as *const _, 1726 stretch_set.to_value().to_glib_none().0, 1727 ); 1728 } 1729 } 1730 is_strikethrough(&self) -> bool1731 fn is_strikethrough(&self) -> bool { 1732 unsafe { 1733 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1734 glib::gobject_ffi::g_object_get_property( 1735 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1736 b"strikethrough\0".as_ptr() as *const _, 1737 value.to_glib_none_mut().0, 1738 ); 1739 value 1740 .get() 1741 .expect("Return Value for property `strikethrough` getter") 1742 } 1743 } 1744 set_strikethrough(&self, strikethrough: bool)1745 fn set_strikethrough(&self, strikethrough: bool) { 1746 unsafe { 1747 glib::gobject_ffi::g_object_set_property( 1748 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1749 b"strikethrough\0".as_ptr() as *const _, 1750 strikethrough.to_value().to_glib_none().0, 1751 ); 1752 } 1753 } 1754 is_strikethrough_set(&self) -> bool1755 fn is_strikethrough_set(&self) -> bool { 1756 unsafe { 1757 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1758 glib::gobject_ffi::g_object_get_property( 1759 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1760 b"strikethrough-set\0".as_ptr() as *const _, 1761 value.to_glib_none_mut().0, 1762 ); 1763 value 1764 .get() 1765 .expect("Return Value for property `strikethrough-set` getter") 1766 } 1767 } 1768 set_strikethrough_set(&self, strikethrough_set: bool)1769 fn set_strikethrough_set(&self, strikethrough_set: bool) { 1770 unsafe { 1771 glib::gobject_ffi::g_object_set_property( 1772 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1773 b"strikethrough-set\0".as_ptr() as *const _, 1774 strikethrough_set.to_value().to_glib_none().0, 1775 ); 1776 } 1777 } 1778 style(&self) -> pango::Style1779 fn style(&self) -> pango::Style { 1780 unsafe { 1781 let mut value = glib::Value::from_type(<pango::Style as StaticType>::static_type()); 1782 glib::gobject_ffi::g_object_get_property( 1783 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1784 b"style\0".as_ptr() as *const _, 1785 value.to_glib_none_mut().0, 1786 ); 1787 value 1788 .get() 1789 .expect("Return Value for property `style` getter") 1790 } 1791 } 1792 set_style(&self, style: pango::Style)1793 fn set_style(&self, style: pango::Style) { 1794 unsafe { 1795 glib::gobject_ffi::g_object_set_property( 1796 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1797 b"style\0".as_ptr() as *const _, 1798 style.to_value().to_glib_none().0, 1799 ); 1800 } 1801 } 1802 is_style_set(&self) -> bool1803 fn is_style_set(&self) -> bool { 1804 unsafe { 1805 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1806 glib::gobject_ffi::g_object_get_property( 1807 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1808 b"style-set\0".as_ptr() as *const _, 1809 value.to_glib_none_mut().0, 1810 ); 1811 value 1812 .get() 1813 .expect("Return Value for property `style-set` getter") 1814 } 1815 } 1816 set_style_set(&self, style_set: bool)1817 fn set_style_set(&self, style_set: bool) { 1818 unsafe { 1819 glib::gobject_ffi::g_object_set_property( 1820 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1821 b"style-set\0".as_ptr() as *const _, 1822 style_set.to_value().to_glib_none().0, 1823 ); 1824 } 1825 } 1826 text(&self) -> Option<glib::GString>1827 fn text(&self) -> Option<glib::GString> { 1828 unsafe { 1829 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1830 glib::gobject_ffi::g_object_get_property( 1831 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1832 b"text\0".as_ptr() as *const _, 1833 value.to_glib_none_mut().0, 1834 ); 1835 value 1836 .get() 1837 .expect("Return Value for property `text` getter") 1838 } 1839 } 1840 set_text(&self, text: Option<&str>)1841 fn set_text(&self, text: Option<&str>) { 1842 unsafe { 1843 glib::gobject_ffi::g_object_set_property( 1844 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1845 b"text\0".as_ptr() as *const _, 1846 text.to_value().to_glib_none().0, 1847 ); 1848 } 1849 } 1850 underline(&self) -> pango::Underline1851 fn underline(&self) -> pango::Underline { 1852 unsafe { 1853 let mut value = glib::Value::from_type(<pango::Underline as StaticType>::static_type()); 1854 glib::gobject_ffi::g_object_get_property( 1855 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1856 b"underline\0".as_ptr() as *const _, 1857 value.to_glib_none_mut().0, 1858 ); 1859 value 1860 .get() 1861 .expect("Return Value for property `underline` getter") 1862 } 1863 } 1864 set_underline(&self, underline: pango::Underline)1865 fn set_underline(&self, underline: pango::Underline) { 1866 unsafe { 1867 glib::gobject_ffi::g_object_set_property( 1868 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1869 b"underline\0".as_ptr() as *const _, 1870 underline.to_value().to_glib_none().0, 1871 ); 1872 } 1873 } 1874 is_underline_set(&self) -> bool1875 fn is_underline_set(&self) -> bool { 1876 unsafe { 1877 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1878 glib::gobject_ffi::g_object_get_property( 1879 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1880 b"underline-set\0".as_ptr() as *const _, 1881 value.to_glib_none_mut().0, 1882 ); 1883 value 1884 .get() 1885 .expect("Return Value for property `underline-set` getter") 1886 } 1887 } 1888 set_underline_set(&self, underline_set: bool)1889 fn set_underline_set(&self, underline_set: bool) { 1890 unsafe { 1891 glib::gobject_ffi::g_object_set_property( 1892 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1893 b"underline-set\0".as_ptr() as *const _, 1894 underline_set.to_value().to_glib_none().0, 1895 ); 1896 } 1897 } 1898 variant(&self) -> pango::Variant1899 fn variant(&self) -> pango::Variant { 1900 unsafe { 1901 let mut value = glib::Value::from_type(<pango::Variant as StaticType>::static_type()); 1902 glib::gobject_ffi::g_object_get_property( 1903 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1904 b"variant\0".as_ptr() as *const _, 1905 value.to_glib_none_mut().0, 1906 ); 1907 value 1908 .get() 1909 .expect("Return Value for property `variant` getter") 1910 } 1911 } 1912 set_variant(&self, variant: pango::Variant)1913 fn set_variant(&self, variant: pango::Variant) { 1914 unsafe { 1915 glib::gobject_ffi::g_object_set_property( 1916 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1917 b"variant\0".as_ptr() as *const _, 1918 variant.to_value().to_glib_none().0, 1919 ); 1920 } 1921 } 1922 is_variant_set(&self) -> bool1923 fn is_variant_set(&self) -> bool { 1924 unsafe { 1925 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1926 glib::gobject_ffi::g_object_get_property( 1927 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1928 b"variant-set\0".as_ptr() as *const _, 1929 value.to_glib_none_mut().0, 1930 ); 1931 value 1932 .get() 1933 .expect("Return Value for property `variant-set` getter") 1934 } 1935 } 1936 set_variant_set(&self, variant_set: bool)1937 fn set_variant_set(&self, variant_set: bool) { 1938 unsafe { 1939 glib::gobject_ffi::g_object_set_property( 1940 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1941 b"variant-set\0".as_ptr() as *const _, 1942 variant_set.to_value().to_glib_none().0, 1943 ); 1944 } 1945 } 1946 weight(&self) -> i321947 fn weight(&self) -> i32 { 1948 unsafe { 1949 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 1950 glib::gobject_ffi::g_object_get_property( 1951 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1952 b"weight\0".as_ptr() as *const _, 1953 value.to_glib_none_mut().0, 1954 ); 1955 value 1956 .get() 1957 .expect("Return Value for property `weight` getter") 1958 } 1959 } 1960 set_weight(&self, weight: i32)1961 fn set_weight(&self, weight: i32) { 1962 unsafe { 1963 glib::gobject_ffi::g_object_set_property( 1964 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1965 b"weight\0".as_ptr() as *const _, 1966 weight.to_value().to_glib_none().0, 1967 ); 1968 } 1969 } 1970 is_weight_set(&self) -> bool1971 fn is_weight_set(&self) -> bool { 1972 unsafe { 1973 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1974 glib::gobject_ffi::g_object_get_property( 1975 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1976 b"weight-set\0".as_ptr() as *const _, 1977 value.to_glib_none_mut().0, 1978 ); 1979 value 1980 .get() 1981 .expect("Return Value for property `weight-set` getter") 1982 } 1983 } 1984 set_weight_set(&self, weight_set: bool)1985 fn set_weight_set(&self, weight_set: bool) { 1986 unsafe { 1987 glib::gobject_ffi::g_object_set_property( 1988 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1989 b"weight-set\0".as_ptr() as *const _, 1990 weight_set.to_value().to_glib_none().0, 1991 ); 1992 } 1993 } 1994 width_chars(&self) -> i321995 fn width_chars(&self) -> i32 { 1996 unsafe { 1997 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 1998 glib::gobject_ffi::g_object_get_property( 1999 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2000 b"width-chars\0".as_ptr() as *const _, 2001 value.to_glib_none_mut().0, 2002 ); 2003 value 2004 .get() 2005 .expect("Return Value for property `width-chars` getter") 2006 } 2007 } 2008 set_width_chars(&self, width_chars: i32)2009 fn set_width_chars(&self, width_chars: i32) { 2010 unsafe { 2011 glib::gobject_ffi::g_object_set_property( 2012 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2013 b"width-chars\0".as_ptr() as *const _, 2014 width_chars.to_value().to_glib_none().0, 2015 ); 2016 } 2017 } 2018 wrap_mode(&self) -> pango::WrapMode2019 fn wrap_mode(&self) -> pango::WrapMode { 2020 unsafe { 2021 let mut value = glib::Value::from_type(<pango::WrapMode as StaticType>::static_type()); 2022 glib::gobject_ffi::g_object_get_property( 2023 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2024 b"wrap-mode\0".as_ptr() as *const _, 2025 value.to_glib_none_mut().0, 2026 ); 2027 value 2028 .get() 2029 .expect("Return Value for property `wrap-mode` getter") 2030 } 2031 } 2032 set_wrap_mode(&self, wrap_mode: pango::WrapMode)2033 fn set_wrap_mode(&self, wrap_mode: pango::WrapMode) { 2034 unsafe { 2035 glib::gobject_ffi::g_object_set_property( 2036 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2037 b"wrap-mode\0".as_ptr() as *const _, 2038 wrap_mode.to_value().to_glib_none().0, 2039 ); 2040 } 2041 } 2042 wrap_width(&self) -> i322043 fn wrap_width(&self) -> i32 { 2044 unsafe { 2045 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 2046 glib::gobject_ffi::g_object_get_property( 2047 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2048 b"wrap-width\0".as_ptr() as *const _, 2049 value.to_glib_none_mut().0, 2050 ); 2051 value 2052 .get() 2053 .expect("Return Value for property `wrap-width` getter") 2054 } 2055 } 2056 set_wrap_width(&self, wrap_width: i32)2057 fn set_wrap_width(&self, wrap_width: i32) { 2058 unsafe { 2059 glib::gobject_ffi::g_object_set_property( 2060 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 2061 b"wrap-width\0".as_ptr() as *const _, 2062 wrap_width.to_value().to_glib_none().0, 2063 ); 2064 } 2065 } 2066 connect_edited<F: Fn(&Self, TreePath, &str) + 'static>(&self, f: F) -> SignalHandlerId2067 fn connect_edited<F: Fn(&Self, TreePath, &str) + 'static>(&self, f: F) -> SignalHandlerId { 2068 unsafe extern "C" fn edited_trampoline< 2069 P: IsA<CellRendererText>, 2070 F: Fn(&P, TreePath, &str) + 'static, 2071 >( 2072 this: *mut ffi::GtkCellRendererText, 2073 path: *mut libc::c_char, 2074 new_text: *mut libc::c_char, 2075 f: glib::ffi::gpointer, 2076 ) { 2077 let f: &F = &*(f as *const F); 2078 let path = from_glib_full(crate::ffi::gtk_tree_path_new_from_string(path)); 2079 f( 2080 CellRendererText::from_glib_borrow(this).unsafe_cast_ref(), 2081 path, 2082 &glib::GString::from_glib_borrow(new_text), 2083 ) 2084 } 2085 unsafe { 2086 let f: Box_<F> = Box_::new(f); 2087 connect_raw( 2088 self.as_ptr() as *mut _, 2089 b"edited\0".as_ptr() as *const _, 2090 Some(transmute::<_, unsafe extern "C" fn()>( 2091 edited_trampoline::<Self, F> as *const (), 2092 )), 2093 Box_::into_raw(f), 2094 ) 2095 } 2096 } 2097 connect_align_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2098 fn connect_align_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2099 unsafe extern "C" fn notify_align_set_trampoline< 2100 P: IsA<CellRendererText>, 2101 F: Fn(&P) + 'static, 2102 >( 2103 this: *mut ffi::GtkCellRendererText, 2104 _param_spec: glib::ffi::gpointer, 2105 f: glib::ffi::gpointer, 2106 ) { 2107 let f: &F = &*(f as *const F); 2108 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2109 } 2110 unsafe { 2111 let f: Box_<F> = Box_::new(f); 2112 connect_raw( 2113 self.as_ptr() as *mut _, 2114 b"notify::align-set\0".as_ptr() as *const _, 2115 Some(transmute::<_, unsafe extern "C" fn()>( 2116 notify_align_set_trampoline::<Self, F> as *const (), 2117 )), 2118 Box_::into_raw(f), 2119 ) 2120 } 2121 } 2122 connect_alignment_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2123 fn connect_alignment_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2124 unsafe extern "C" fn notify_alignment_trampoline< 2125 P: IsA<CellRendererText>, 2126 F: Fn(&P) + 'static, 2127 >( 2128 this: *mut ffi::GtkCellRendererText, 2129 _param_spec: glib::ffi::gpointer, 2130 f: glib::ffi::gpointer, 2131 ) { 2132 let f: &F = &*(f as *const F); 2133 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2134 } 2135 unsafe { 2136 let f: Box_<F> = Box_::new(f); 2137 connect_raw( 2138 self.as_ptr() as *mut _, 2139 b"notify::alignment\0".as_ptr() as *const _, 2140 Some(transmute::<_, unsafe extern "C" fn()>( 2141 notify_alignment_trampoline::<Self, F> as *const (), 2142 )), 2143 Box_::into_raw(f), 2144 ) 2145 } 2146 } 2147 connect_attributes_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2148 fn connect_attributes_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2149 unsafe extern "C" fn notify_attributes_trampoline< 2150 P: IsA<CellRendererText>, 2151 F: Fn(&P) + 'static, 2152 >( 2153 this: *mut ffi::GtkCellRendererText, 2154 _param_spec: glib::ffi::gpointer, 2155 f: glib::ffi::gpointer, 2156 ) { 2157 let f: &F = &*(f as *const F); 2158 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2159 } 2160 unsafe { 2161 let f: Box_<F> = Box_::new(f); 2162 connect_raw( 2163 self.as_ptr() as *mut _, 2164 b"notify::attributes\0".as_ptr() as *const _, 2165 Some(transmute::<_, unsafe extern "C" fn()>( 2166 notify_attributes_trampoline::<Self, F> as *const (), 2167 )), 2168 Box_::into_raw(f), 2169 ) 2170 } 2171 } 2172 connect_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2173 fn connect_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2174 unsafe extern "C" fn notify_background_trampoline< 2175 P: IsA<CellRendererText>, 2176 F: Fn(&P) + 'static, 2177 >( 2178 this: *mut ffi::GtkCellRendererText, 2179 _param_spec: glib::ffi::gpointer, 2180 f: glib::ffi::gpointer, 2181 ) { 2182 let f: &F = &*(f as *const F); 2183 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2184 } 2185 unsafe { 2186 let f: Box_<F> = Box_::new(f); 2187 connect_raw( 2188 self.as_ptr() as *mut _, 2189 b"notify::background\0".as_ptr() as *const _, 2190 Some(transmute::<_, unsafe extern "C" fn()>( 2191 notify_background_trampoline::<Self, F> as *const (), 2192 )), 2193 Box_::into_raw(f), 2194 ) 2195 } 2196 } 2197 connect_background_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2198 fn connect_background_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2199 unsafe extern "C" fn notify_background_rgba_trampoline< 2200 P: IsA<CellRendererText>, 2201 F: Fn(&P) + 'static, 2202 >( 2203 this: *mut ffi::GtkCellRendererText, 2204 _param_spec: glib::ffi::gpointer, 2205 f: glib::ffi::gpointer, 2206 ) { 2207 let f: &F = &*(f as *const F); 2208 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2209 } 2210 unsafe { 2211 let f: Box_<F> = Box_::new(f); 2212 connect_raw( 2213 self.as_ptr() as *mut _, 2214 b"notify::background-rgba\0".as_ptr() as *const _, 2215 Some(transmute::<_, unsafe extern "C" fn()>( 2216 notify_background_rgba_trampoline::<Self, F> as *const (), 2217 )), 2218 Box_::into_raw(f), 2219 ) 2220 } 2221 } 2222 connect_background_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2223 fn connect_background_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2224 unsafe extern "C" fn notify_background_set_trampoline< 2225 P: IsA<CellRendererText>, 2226 F: Fn(&P) + 'static, 2227 >( 2228 this: *mut ffi::GtkCellRendererText, 2229 _param_spec: glib::ffi::gpointer, 2230 f: glib::ffi::gpointer, 2231 ) { 2232 let f: &F = &*(f as *const F); 2233 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2234 } 2235 unsafe { 2236 let f: Box_<F> = Box_::new(f); 2237 connect_raw( 2238 self.as_ptr() as *mut _, 2239 b"notify::background-set\0".as_ptr() as *const _, 2240 Some(transmute::<_, unsafe extern "C" fn()>( 2241 notify_background_set_trampoline::<Self, F> as *const (), 2242 )), 2243 Box_::into_raw(f), 2244 ) 2245 } 2246 } 2247 connect_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2248 fn connect_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2249 unsafe extern "C" fn notify_editable_trampoline< 2250 P: IsA<CellRendererText>, 2251 F: Fn(&P) + 'static, 2252 >( 2253 this: *mut ffi::GtkCellRendererText, 2254 _param_spec: glib::ffi::gpointer, 2255 f: glib::ffi::gpointer, 2256 ) { 2257 let f: &F = &*(f as *const F); 2258 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2259 } 2260 unsafe { 2261 let f: Box_<F> = Box_::new(f); 2262 connect_raw( 2263 self.as_ptr() as *mut _, 2264 b"notify::editable\0".as_ptr() as *const _, 2265 Some(transmute::<_, unsafe extern "C" fn()>( 2266 notify_editable_trampoline::<Self, F> as *const (), 2267 )), 2268 Box_::into_raw(f), 2269 ) 2270 } 2271 } 2272 connect_editable_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2273 fn connect_editable_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2274 unsafe extern "C" fn notify_editable_set_trampoline< 2275 P: IsA<CellRendererText>, 2276 F: Fn(&P) + 'static, 2277 >( 2278 this: *mut ffi::GtkCellRendererText, 2279 _param_spec: glib::ffi::gpointer, 2280 f: glib::ffi::gpointer, 2281 ) { 2282 let f: &F = &*(f as *const F); 2283 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2284 } 2285 unsafe { 2286 let f: Box_<F> = Box_::new(f); 2287 connect_raw( 2288 self.as_ptr() as *mut _, 2289 b"notify::editable-set\0".as_ptr() as *const _, 2290 Some(transmute::<_, unsafe extern "C" fn()>( 2291 notify_editable_set_trampoline::<Self, F> as *const (), 2292 )), 2293 Box_::into_raw(f), 2294 ) 2295 } 2296 } 2297 connect_ellipsize_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2298 fn connect_ellipsize_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2299 unsafe extern "C" fn notify_ellipsize_trampoline< 2300 P: IsA<CellRendererText>, 2301 F: Fn(&P) + 'static, 2302 >( 2303 this: *mut ffi::GtkCellRendererText, 2304 _param_spec: glib::ffi::gpointer, 2305 f: glib::ffi::gpointer, 2306 ) { 2307 let f: &F = &*(f as *const F); 2308 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2309 } 2310 unsafe { 2311 let f: Box_<F> = Box_::new(f); 2312 connect_raw( 2313 self.as_ptr() as *mut _, 2314 b"notify::ellipsize\0".as_ptr() as *const _, 2315 Some(transmute::<_, unsafe extern "C" fn()>( 2316 notify_ellipsize_trampoline::<Self, F> as *const (), 2317 )), 2318 Box_::into_raw(f), 2319 ) 2320 } 2321 } 2322 connect_ellipsize_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2323 fn connect_ellipsize_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2324 unsafe extern "C" fn notify_ellipsize_set_trampoline< 2325 P: IsA<CellRendererText>, 2326 F: Fn(&P) + 'static, 2327 >( 2328 this: *mut ffi::GtkCellRendererText, 2329 _param_spec: glib::ffi::gpointer, 2330 f: glib::ffi::gpointer, 2331 ) { 2332 let f: &F = &*(f as *const F); 2333 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2334 } 2335 unsafe { 2336 let f: Box_<F> = Box_::new(f); 2337 connect_raw( 2338 self.as_ptr() as *mut _, 2339 b"notify::ellipsize-set\0".as_ptr() as *const _, 2340 Some(transmute::<_, unsafe extern "C" fn()>( 2341 notify_ellipsize_set_trampoline::<Self, F> as *const (), 2342 )), 2343 Box_::into_raw(f), 2344 ) 2345 } 2346 } 2347 connect_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2348 fn connect_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2349 unsafe extern "C" fn notify_family_trampoline< 2350 P: IsA<CellRendererText>, 2351 F: Fn(&P) + 'static, 2352 >( 2353 this: *mut ffi::GtkCellRendererText, 2354 _param_spec: glib::ffi::gpointer, 2355 f: glib::ffi::gpointer, 2356 ) { 2357 let f: &F = &*(f as *const F); 2358 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2359 } 2360 unsafe { 2361 let f: Box_<F> = Box_::new(f); 2362 connect_raw( 2363 self.as_ptr() as *mut _, 2364 b"notify::family\0".as_ptr() as *const _, 2365 Some(transmute::<_, unsafe extern "C" fn()>( 2366 notify_family_trampoline::<Self, F> as *const (), 2367 )), 2368 Box_::into_raw(f), 2369 ) 2370 } 2371 } 2372 connect_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2373 fn connect_family_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2374 unsafe extern "C" fn notify_family_set_trampoline< 2375 P: IsA<CellRendererText>, 2376 F: Fn(&P) + 'static, 2377 >( 2378 this: *mut ffi::GtkCellRendererText, 2379 _param_spec: glib::ffi::gpointer, 2380 f: glib::ffi::gpointer, 2381 ) { 2382 let f: &F = &*(f as *const F); 2383 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2384 } 2385 unsafe { 2386 let f: Box_<F> = Box_::new(f); 2387 connect_raw( 2388 self.as_ptr() as *mut _, 2389 b"notify::family-set\0".as_ptr() as *const _, 2390 Some(transmute::<_, unsafe extern "C" fn()>( 2391 notify_family_set_trampoline::<Self, F> as *const (), 2392 )), 2393 Box_::into_raw(f), 2394 ) 2395 } 2396 } 2397 connect_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2398 fn connect_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2399 unsafe extern "C" fn notify_font_trampoline< 2400 P: IsA<CellRendererText>, 2401 F: Fn(&P) + 'static, 2402 >( 2403 this: *mut ffi::GtkCellRendererText, 2404 _param_spec: glib::ffi::gpointer, 2405 f: glib::ffi::gpointer, 2406 ) { 2407 let f: &F = &*(f as *const F); 2408 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2409 } 2410 unsafe { 2411 let f: Box_<F> = Box_::new(f); 2412 connect_raw( 2413 self.as_ptr() as *mut _, 2414 b"notify::font\0".as_ptr() as *const _, 2415 Some(transmute::<_, unsafe extern "C" fn()>( 2416 notify_font_trampoline::<Self, F> as *const (), 2417 )), 2418 Box_::into_raw(f), 2419 ) 2420 } 2421 } 2422 connect_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2423 fn connect_font_desc_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2424 unsafe extern "C" fn notify_font_desc_trampoline< 2425 P: IsA<CellRendererText>, 2426 F: Fn(&P) + 'static, 2427 >( 2428 this: *mut ffi::GtkCellRendererText, 2429 _param_spec: glib::ffi::gpointer, 2430 f: glib::ffi::gpointer, 2431 ) { 2432 let f: &F = &*(f as *const F); 2433 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2434 } 2435 unsafe { 2436 let f: Box_<F> = Box_::new(f); 2437 connect_raw( 2438 self.as_ptr() as *mut _, 2439 b"notify::font-desc\0".as_ptr() as *const _, 2440 Some(transmute::<_, unsafe extern "C" fn()>( 2441 notify_font_desc_trampoline::<Self, F> as *const (), 2442 )), 2443 Box_::into_raw(f), 2444 ) 2445 } 2446 } 2447 connect_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2448 fn connect_foreground_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2449 unsafe extern "C" fn notify_foreground_trampoline< 2450 P: IsA<CellRendererText>, 2451 F: Fn(&P) + 'static, 2452 >( 2453 this: *mut ffi::GtkCellRendererText, 2454 _param_spec: glib::ffi::gpointer, 2455 f: glib::ffi::gpointer, 2456 ) { 2457 let f: &F = &*(f as *const F); 2458 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2459 } 2460 unsafe { 2461 let f: Box_<F> = Box_::new(f); 2462 connect_raw( 2463 self.as_ptr() as *mut _, 2464 b"notify::foreground\0".as_ptr() as *const _, 2465 Some(transmute::<_, unsafe extern "C" fn()>( 2466 notify_foreground_trampoline::<Self, F> as *const (), 2467 )), 2468 Box_::into_raw(f), 2469 ) 2470 } 2471 } 2472 connect_foreground_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2473 fn connect_foreground_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2474 unsafe extern "C" fn notify_foreground_rgba_trampoline< 2475 P: IsA<CellRendererText>, 2476 F: Fn(&P) + 'static, 2477 >( 2478 this: *mut ffi::GtkCellRendererText, 2479 _param_spec: glib::ffi::gpointer, 2480 f: glib::ffi::gpointer, 2481 ) { 2482 let f: &F = &*(f as *const F); 2483 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2484 } 2485 unsafe { 2486 let f: Box_<F> = Box_::new(f); 2487 connect_raw( 2488 self.as_ptr() as *mut _, 2489 b"notify::foreground-rgba\0".as_ptr() as *const _, 2490 Some(transmute::<_, unsafe extern "C" fn()>( 2491 notify_foreground_rgba_trampoline::<Self, F> as *const (), 2492 )), 2493 Box_::into_raw(f), 2494 ) 2495 } 2496 } 2497 connect_foreground_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2498 fn connect_foreground_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2499 unsafe extern "C" fn notify_foreground_set_trampoline< 2500 P: IsA<CellRendererText>, 2501 F: Fn(&P) + 'static, 2502 >( 2503 this: *mut ffi::GtkCellRendererText, 2504 _param_spec: glib::ffi::gpointer, 2505 f: glib::ffi::gpointer, 2506 ) { 2507 let f: &F = &*(f as *const F); 2508 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2509 } 2510 unsafe { 2511 let f: Box_<F> = Box_::new(f); 2512 connect_raw( 2513 self.as_ptr() as *mut _, 2514 b"notify::foreground-set\0".as_ptr() as *const _, 2515 Some(transmute::<_, unsafe extern "C" fn()>( 2516 notify_foreground_set_trampoline::<Self, F> as *const (), 2517 )), 2518 Box_::into_raw(f), 2519 ) 2520 } 2521 } 2522 connect_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2523 fn connect_language_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2524 unsafe extern "C" fn notify_language_trampoline< 2525 P: IsA<CellRendererText>, 2526 F: Fn(&P) + 'static, 2527 >( 2528 this: *mut ffi::GtkCellRendererText, 2529 _param_spec: glib::ffi::gpointer, 2530 f: glib::ffi::gpointer, 2531 ) { 2532 let f: &F = &*(f as *const F); 2533 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2534 } 2535 unsafe { 2536 let f: Box_<F> = Box_::new(f); 2537 connect_raw( 2538 self.as_ptr() as *mut _, 2539 b"notify::language\0".as_ptr() as *const _, 2540 Some(transmute::<_, unsafe extern "C" fn()>( 2541 notify_language_trampoline::<Self, F> as *const (), 2542 )), 2543 Box_::into_raw(f), 2544 ) 2545 } 2546 } 2547 connect_language_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2548 fn connect_language_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2549 unsafe extern "C" fn notify_language_set_trampoline< 2550 P: IsA<CellRendererText>, 2551 F: Fn(&P) + 'static, 2552 >( 2553 this: *mut ffi::GtkCellRendererText, 2554 _param_spec: glib::ffi::gpointer, 2555 f: glib::ffi::gpointer, 2556 ) { 2557 let f: &F = &*(f as *const F); 2558 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2559 } 2560 unsafe { 2561 let f: Box_<F> = Box_::new(f); 2562 connect_raw( 2563 self.as_ptr() as *mut _, 2564 b"notify::language-set\0".as_ptr() as *const _, 2565 Some(transmute::<_, unsafe extern "C" fn()>( 2566 notify_language_set_trampoline::<Self, F> as *const (), 2567 )), 2568 Box_::into_raw(f), 2569 ) 2570 } 2571 } 2572 connect_markup_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2573 fn connect_markup_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2574 unsafe extern "C" fn notify_markup_trampoline< 2575 P: IsA<CellRendererText>, 2576 F: Fn(&P) + 'static, 2577 >( 2578 this: *mut ffi::GtkCellRendererText, 2579 _param_spec: glib::ffi::gpointer, 2580 f: glib::ffi::gpointer, 2581 ) { 2582 let f: &F = &*(f as *const F); 2583 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2584 } 2585 unsafe { 2586 let f: Box_<F> = Box_::new(f); 2587 connect_raw( 2588 self.as_ptr() as *mut _, 2589 b"notify::markup\0".as_ptr() as *const _, 2590 Some(transmute::<_, unsafe extern "C" fn()>( 2591 notify_markup_trampoline::<Self, F> as *const (), 2592 )), 2593 Box_::into_raw(f), 2594 ) 2595 } 2596 } 2597 connect_max_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2598 fn connect_max_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2599 unsafe extern "C" fn notify_max_width_chars_trampoline< 2600 P: IsA<CellRendererText>, 2601 F: Fn(&P) + 'static, 2602 >( 2603 this: *mut ffi::GtkCellRendererText, 2604 _param_spec: glib::ffi::gpointer, 2605 f: glib::ffi::gpointer, 2606 ) { 2607 let f: &F = &*(f as *const F); 2608 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2609 } 2610 unsafe { 2611 let f: Box_<F> = Box_::new(f); 2612 connect_raw( 2613 self.as_ptr() as *mut _, 2614 b"notify::max-width-chars\0".as_ptr() as *const _, 2615 Some(transmute::<_, unsafe extern "C" fn()>( 2616 notify_max_width_chars_trampoline::<Self, F> as *const (), 2617 )), 2618 Box_::into_raw(f), 2619 ) 2620 } 2621 } 2622 connect_placeholder_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2623 fn connect_placeholder_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2624 unsafe extern "C" fn notify_placeholder_text_trampoline< 2625 P: IsA<CellRendererText>, 2626 F: Fn(&P) + 'static, 2627 >( 2628 this: *mut ffi::GtkCellRendererText, 2629 _param_spec: glib::ffi::gpointer, 2630 f: glib::ffi::gpointer, 2631 ) { 2632 let f: &F = &*(f as *const F); 2633 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2634 } 2635 unsafe { 2636 let f: Box_<F> = Box_::new(f); 2637 connect_raw( 2638 self.as_ptr() as *mut _, 2639 b"notify::placeholder-text\0".as_ptr() as *const _, 2640 Some(transmute::<_, unsafe extern "C" fn()>( 2641 notify_placeholder_text_trampoline::<Self, F> as *const (), 2642 )), 2643 Box_::into_raw(f), 2644 ) 2645 } 2646 } 2647 connect_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2648 fn connect_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2649 unsafe extern "C" fn notify_rise_trampoline< 2650 P: IsA<CellRendererText>, 2651 F: Fn(&P) + 'static, 2652 >( 2653 this: *mut ffi::GtkCellRendererText, 2654 _param_spec: glib::ffi::gpointer, 2655 f: glib::ffi::gpointer, 2656 ) { 2657 let f: &F = &*(f as *const F); 2658 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2659 } 2660 unsafe { 2661 let f: Box_<F> = Box_::new(f); 2662 connect_raw( 2663 self.as_ptr() as *mut _, 2664 b"notify::rise\0".as_ptr() as *const _, 2665 Some(transmute::<_, unsafe extern "C" fn()>( 2666 notify_rise_trampoline::<Self, F> as *const (), 2667 )), 2668 Box_::into_raw(f), 2669 ) 2670 } 2671 } 2672 connect_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2673 fn connect_rise_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2674 unsafe extern "C" fn notify_rise_set_trampoline< 2675 P: IsA<CellRendererText>, 2676 F: Fn(&P) + 'static, 2677 >( 2678 this: *mut ffi::GtkCellRendererText, 2679 _param_spec: glib::ffi::gpointer, 2680 f: glib::ffi::gpointer, 2681 ) { 2682 let f: &F = &*(f as *const F); 2683 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2684 } 2685 unsafe { 2686 let f: Box_<F> = Box_::new(f); 2687 connect_raw( 2688 self.as_ptr() as *mut _, 2689 b"notify::rise-set\0".as_ptr() as *const _, 2690 Some(transmute::<_, unsafe extern "C" fn()>( 2691 notify_rise_set_trampoline::<Self, F> as *const (), 2692 )), 2693 Box_::into_raw(f), 2694 ) 2695 } 2696 } 2697 connect_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2698 fn connect_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2699 unsafe extern "C" fn notify_scale_trampoline< 2700 P: IsA<CellRendererText>, 2701 F: Fn(&P) + 'static, 2702 >( 2703 this: *mut ffi::GtkCellRendererText, 2704 _param_spec: glib::ffi::gpointer, 2705 f: glib::ffi::gpointer, 2706 ) { 2707 let f: &F = &*(f as *const F); 2708 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2709 } 2710 unsafe { 2711 let f: Box_<F> = Box_::new(f); 2712 connect_raw( 2713 self.as_ptr() as *mut _, 2714 b"notify::scale\0".as_ptr() as *const _, 2715 Some(transmute::<_, unsafe extern "C" fn()>( 2716 notify_scale_trampoline::<Self, F> as *const (), 2717 )), 2718 Box_::into_raw(f), 2719 ) 2720 } 2721 } 2722 connect_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2723 fn connect_scale_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2724 unsafe extern "C" fn notify_scale_set_trampoline< 2725 P: IsA<CellRendererText>, 2726 F: Fn(&P) + 'static, 2727 >( 2728 this: *mut ffi::GtkCellRendererText, 2729 _param_spec: glib::ffi::gpointer, 2730 f: glib::ffi::gpointer, 2731 ) { 2732 let f: &F = &*(f as *const F); 2733 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2734 } 2735 unsafe { 2736 let f: Box_<F> = Box_::new(f); 2737 connect_raw( 2738 self.as_ptr() as *mut _, 2739 b"notify::scale-set\0".as_ptr() as *const _, 2740 Some(transmute::<_, unsafe extern "C" fn()>( 2741 notify_scale_set_trampoline::<Self, F> as *const (), 2742 )), 2743 Box_::into_raw(f), 2744 ) 2745 } 2746 } 2747 connect_single_paragraph_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2748 fn connect_single_paragraph_mode_notify<F: Fn(&Self) + 'static>( 2749 &self, 2750 f: F, 2751 ) -> SignalHandlerId { 2752 unsafe extern "C" fn notify_single_paragraph_mode_trampoline< 2753 P: IsA<CellRendererText>, 2754 F: Fn(&P) + 'static, 2755 >( 2756 this: *mut ffi::GtkCellRendererText, 2757 _param_spec: glib::ffi::gpointer, 2758 f: glib::ffi::gpointer, 2759 ) { 2760 let f: &F = &*(f as *const F); 2761 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2762 } 2763 unsafe { 2764 let f: Box_<F> = Box_::new(f); 2765 connect_raw( 2766 self.as_ptr() as *mut _, 2767 b"notify::single-paragraph-mode\0".as_ptr() as *const _, 2768 Some(transmute::<_, unsafe extern "C" fn()>( 2769 notify_single_paragraph_mode_trampoline::<Self, F> as *const (), 2770 )), 2771 Box_::into_raw(f), 2772 ) 2773 } 2774 } 2775 connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2776 fn connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2777 unsafe extern "C" fn notify_size_trampoline< 2778 P: IsA<CellRendererText>, 2779 F: Fn(&P) + 'static, 2780 >( 2781 this: *mut ffi::GtkCellRendererText, 2782 _param_spec: glib::ffi::gpointer, 2783 f: glib::ffi::gpointer, 2784 ) { 2785 let f: &F = &*(f as *const F); 2786 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2787 } 2788 unsafe { 2789 let f: Box_<F> = Box_::new(f); 2790 connect_raw( 2791 self.as_ptr() as *mut _, 2792 b"notify::size\0".as_ptr() as *const _, 2793 Some(transmute::<_, unsafe extern "C" fn()>( 2794 notify_size_trampoline::<Self, F> as *const (), 2795 )), 2796 Box_::into_raw(f), 2797 ) 2798 } 2799 } 2800 connect_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2801 fn connect_size_points_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2802 unsafe extern "C" fn notify_size_points_trampoline< 2803 P: IsA<CellRendererText>, 2804 F: Fn(&P) + 'static, 2805 >( 2806 this: *mut ffi::GtkCellRendererText, 2807 _param_spec: glib::ffi::gpointer, 2808 f: glib::ffi::gpointer, 2809 ) { 2810 let f: &F = &*(f as *const F); 2811 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2812 } 2813 unsafe { 2814 let f: Box_<F> = Box_::new(f); 2815 connect_raw( 2816 self.as_ptr() as *mut _, 2817 b"notify::size-points\0".as_ptr() as *const _, 2818 Some(transmute::<_, unsafe extern "C" fn()>( 2819 notify_size_points_trampoline::<Self, F> as *const (), 2820 )), 2821 Box_::into_raw(f), 2822 ) 2823 } 2824 } 2825 connect_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2826 fn connect_size_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2827 unsafe extern "C" fn notify_size_set_trampoline< 2828 P: IsA<CellRendererText>, 2829 F: Fn(&P) + 'static, 2830 >( 2831 this: *mut ffi::GtkCellRendererText, 2832 _param_spec: glib::ffi::gpointer, 2833 f: glib::ffi::gpointer, 2834 ) { 2835 let f: &F = &*(f as *const F); 2836 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2837 } 2838 unsafe { 2839 let f: Box_<F> = Box_::new(f); 2840 connect_raw( 2841 self.as_ptr() as *mut _, 2842 b"notify::size-set\0".as_ptr() as *const _, 2843 Some(transmute::<_, unsafe extern "C" fn()>( 2844 notify_size_set_trampoline::<Self, F> as *const (), 2845 )), 2846 Box_::into_raw(f), 2847 ) 2848 } 2849 } 2850 connect_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2851 fn connect_stretch_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2852 unsafe extern "C" fn notify_stretch_trampoline< 2853 P: IsA<CellRendererText>, 2854 F: Fn(&P) + 'static, 2855 >( 2856 this: *mut ffi::GtkCellRendererText, 2857 _param_spec: glib::ffi::gpointer, 2858 f: glib::ffi::gpointer, 2859 ) { 2860 let f: &F = &*(f as *const F); 2861 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2862 } 2863 unsafe { 2864 let f: Box_<F> = Box_::new(f); 2865 connect_raw( 2866 self.as_ptr() as *mut _, 2867 b"notify::stretch\0".as_ptr() as *const _, 2868 Some(transmute::<_, unsafe extern "C" fn()>( 2869 notify_stretch_trampoline::<Self, F> as *const (), 2870 )), 2871 Box_::into_raw(f), 2872 ) 2873 } 2874 } 2875 connect_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2876 fn connect_stretch_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2877 unsafe extern "C" fn notify_stretch_set_trampoline< 2878 P: IsA<CellRendererText>, 2879 F: Fn(&P) + 'static, 2880 >( 2881 this: *mut ffi::GtkCellRendererText, 2882 _param_spec: glib::ffi::gpointer, 2883 f: glib::ffi::gpointer, 2884 ) { 2885 let f: &F = &*(f as *const F); 2886 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2887 } 2888 unsafe { 2889 let f: Box_<F> = Box_::new(f); 2890 connect_raw( 2891 self.as_ptr() as *mut _, 2892 b"notify::stretch-set\0".as_ptr() as *const _, 2893 Some(transmute::<_, unsafe extern "C" fn()>( 2894 notify_stretch_set_trampoline::<Self, F> as *const (), 2895 )), 2896 Box_::into_raw(f), 2897 ) 2898 } 2899 } 2900 connect_strikethrough_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2901 fn connect_strikethrough_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2902 unsafe extern "C" fn notify_strikethrough_trampoline< 2903 P: IsA<CellRendererText>, 2904 F: Fn(&P) + 'static, 2905 >( 2906 this: *mut ffi::GtkCellRendererText, 2907 _param_spec: glib::ffi::gpointer, 2908 f: glib::ffi::gpointer, 2909 ) { 2910 let f: &F = &*(f as *const F); 2911 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2912 } 2913 unsafe { 2914 let f: Box_<F> = Box_::new(f); 2915 connect_raw( 2916 self.as_ptr() as *mut _, 2917 b"notify::strikethrough\0".as_ptr() as *const _, 2918 Some(transmute::<_, unsafe extern "C" fn()>( 2919 notify_strikethrough_trampoline::<Self, F> as *const (), 2920 )), 2921 Box_::into_raw(f), 2922 ) 2923 } 2924 } 2925 connect_strikethrough_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2926 fn connect_strikethrough_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2927 unsafe extern "C" fn notify_strikethrough_set_trampoline< 2928 P: IsA<CellRendererText>, 2929 F: Fn(&P) + 'static, 2930 >( 2931 this: *mut ffi::GtkCellRendererText, 2932 _param_spec: glib::ffi::gpointer, 2933 f: glib::ffi::gpointer, 2934 ) { 2935 let f: &F = &*(f as *const F); 2936 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2937 } 2938 unsafe { 2939 let f: Box_<F> = Box_::new(f); 2940 connect_raw( 2941 self.as_ptr() as *mut _, 2942 b"notify::strikethrough-set\0".as_ptr() as *const _, 2943 Some(transmute::<_, unsafe extern "C" fn()>( 2944 notify_strikethrough_set_trampoline::<Self, F> as *const (), 2945 )), 2946 Box_::into_raw(f), 2947 ) 2948 } 2949 } 2950 connect_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2951 fn connect_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2952 unsafe extern "C" fn notify_style_trampoline< 2953 P: IsA<CellRendererText>, 2954 F: Fn(&P) + 'static, 2955 >( 2956 this: *mut ffi::GtkCellRendererText, 2957 _param_spec: glib::ffi::gpointer, 2958 f: glib::ffi::gpointer, 2959 ) { 2960 let f: &F = &*(f as *const F); 2961 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2962 } 2963 unsafe { 2964 let f: Box_<F> = Box_::new(f); 2965 connect_raw( 2966 self.as_ptr() as *mut _, 2967 b"notify::style\0".as_ptr() as *const _, 2968 Some(transmute::<_, unsafe extern "C" fn()>( 2969 notify_style_trampoline::<Self, F> as *const (), 2970 )), 2971 Box_::into_raw(f), 2972 ) 2973 } 2974 } 2975 connect_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2976 fn connect_style_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2977 unsafe extern "C" fn notify_style_set_trampoline< 2978 P: IsA<CellRendererText>, 2979 F: Fn(&P) + 'static, 2980 >( 2981 this: *mut ffi::GtkCellRendererText, 2982 _param_spec: glib::ffi::gpointer, 2983 f: glib::ffi::gpointer, 2984 ) { 2985 let f: &F = &*(f as *const F); 2986 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 2987 } 2988 unsafe { 2989 let f: Box_<F> = Box_::new(f); 2990 connect_raw( 2991 self.as_ptr() as *mut _, 2992 b"notify::style-set\0".as_ptr() as *const _, 2993 Some(transmute::<_, unsafe extern "C" fn()>( 2994 notify_style_set_trampoline::<Self, F> as *const (), 2995 )), 2996 Box_::into_raw(f), 2997 ) 2998 } 2999 } 3000 connect_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3001 fn connect_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3002 unsafe extern "C" fn notify_text_trampoline< 3003 P: IsA<CellRendererText>, 3004 F: Fn(&P) + 'static, 3005 >( 3006 this: *mut ffi::GtkCellRendererText, 3007 _param_spec: glib::ffi::gpointer, 3008 f: glib::ffi::gpointer, 3009 ) { 3010 let f: &F = &*(f as *const F); 3011 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 3012 } 3013 unsafe { 3014 let f: Box_<F> = Box_::new(f); 3015 connect_raw( 3016 self.as_ptr() as *mut _, 3017 b"notify::text\0".as_ptr() as *const _, 3018 Some(transmute::<_, unsafe extern "C" fn()>( 3019 notify_text_trampoline::<Self, F> as *const (), 3020 )), 3021 Box_::into_raw(f), 3022 ) 3023 } 3024 } 3025 connect_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3026 fn connect_underline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3027 unsafe extern "C" fn notify_underline_trampoline< 3028 P: IsA<CellRendererText>, 3029 F: Fn(&P) + 'static, 3030 >( 3031 this: *mut ffi::GtkCellRendererText, 3032 _param_spec: glib::ffi::gpointer, 3033 f: glib::ffi::gpointer, 3034 ) { 3035 let f: &F = &*(f as *const F); 3036 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 3037 } 3038 unsafe { 3039 let f: Box_<F> = Box_::new(f); 3040 connect_raw( 3041 self.as_ptr() as *mut _, 3042 b"notify::underline\0".as_ptr() as *const _, 3043 Some(transmute::<_, unsafe extern "C" fn()>( 3044 notify_underline_trampoline::<Self, F> as *const (), 3045 )), 3046 Box_::into_raw(f), 3047 ) 3048 } 3049 } 3050 connect_underline_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3051 fn connect_underline_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3052 unsafe extern "C" fn notify_underline_set_trampoline< 3053 P: IsA<CellRendererText>, 3054 F: Fn(&P) + 'static, 3055 >( 3056 this: *mut ffi::GtkCellRendererText, 3057 _param_spec: glib::ffi::gpointer, 3058 f: glib::ffi::gpointer, 3059 ) { 3060 let f: &F = &*(f as *const F); 3061 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 3062 } 3063 unsafe { 3064 let f: Box_<F> = Box_::new(f); 3065 connect_raw( 3066 self.as_ptr() as *mut _, 3067 b"notify::underline-set\0".as_ptr() as *const _, 3068 Some(transmute::<_, unsafe extern "C" fn()>( 3069 notify_underline_set_trampoline::<Self, F> as *const (), 3070 )), 3071 Box_::into_raw(f), 3072 ) 3073 } 3074 } 3075 connect_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3076 fn connect_variant_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3077 unsafe extern "C" fn notify_variant_trampoline< 3078 P: IsA<CellRendererText>, 3079 F: Fn(&P) + 'static, 3080 >( 3081 this: *mut ffi::GtkCellRendererText, 3082 _param_spec: glib::ffi::gpointer, 3083 f: glib::ffi::gpointer, 3084 ) { 3085 let f: &F = &*(f as *const F); 3086 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 3087 } 3088 unsafe { 3089 let f: Box_<F> = Box_::new(f); 3090 connect_raw( 3091 self.as_ptr() as *mut _, 3092 b"notify::variant\0".as_ptr() as *const _, 3093 Some(transmute::<_, unsafe extern "C" fn()>( 3094 notify_variant_trampoline::<Self, F> as *const (), 3095 )), 3096 Box_::into_raw(f), 3097 ) 3098 } 3099 } 3100 connect_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3101 fn connect_variant_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3102 unsafe extern "C" fn notify_variant_set_trampoline< 3103 P: IsA<CellRendererText>, 3104 F: Fn(&P) + 'static, 3105 >( 3106 this: *mut ffi::GtkCellRendererText, 3107 _param_spec: glib::ffi::gpointer, 3108 f: glib::ffi::gpointer, 3109 ) { 3110 let f: &F = &*(f as *const F); 3111 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 3112 } 3113 unsafe { 3114 let f: Box_<F> = Box_::new(f); 3115 connect_raw( 3116 self.as_ptr() as *mut _, 3117 b"notify::variant-set\0".as_ptr() as *const _, 3118 Some(transmute::<_, unsafe extern "C" fn()>( 3119 notify_variant_set_trampoline::<Self, F> as *const (), 3120 )), 3121 Box_::into_raw(f), 3122 ) 3123 } 3124 } 3125 connect_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3126 fn connect_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3127 unsafe extern "C" fn notify_weight_trampoline< 3128 P: IsA<CellRendererText>, 3129 F: Fn(&P) + 'static, 3130 >( 3131 this: *mut ffi::GtkCellRendererText, 3132 _param_spec: glib::ffi::gpointer, 3133 f: glib::ffi::gpointer, 3134 ) { 3135 let f: &F = &*(f as *const F); 3136 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 3137 } 3138 unsafe { 3139 let f: Box_<F> = Box_::new(f); 3140 connect_raw( 3141 self.as_ptr() as *mut _, 3142 b"notify::weight\0".as_ptr() as *const _, 3143 Some(transmute::<_, unsafe extern "C" fn()>( 3144 notify_weight_trampoline::<Self, F> as *const (), 3145 )), 3146 Box_::into_raw(f), 3147 ) 3148 } 3149 } 3150 connect_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3151 fn connect_weight_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3152 unsafe extern "C" fn notify_weight_set_trampoline< 3153 P: IsA<CellRendererText>, 3154 F: Fn(&P) + 'static, 3155 >( 3156 this: *mut ffi::GtkCellRendererText, 3157 _param_spec: glib::ffi::gpointer, 3158 f: glib::ffi::gpointer, 3159 ) { 3160 let f: &F = &*(f as *const F); 3161 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 3162 } 3163 unsafe { 3164 let f: Box_<F> = Box_::new(f); 3165 connect_raw( 3166 self.as_ptr() as *mut _, 3167 b"notify::weight-set\0".as_ptr() as *const _, 3168 Some(transmute::<_, unsafe extern "C" fn()>( 3169 notify_weight_set_trampoline::<Self, F> as *const (), 3170 )), 3171 Box_::into_raw(f), 3172 ) 3173 } 3174 } 3175 connect_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3176 fn connect_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3177 unsafe extern "C" fn notify_width_chars_trampoline< 3178 P: IsA<CellRendererText>, 3179 F: Fn(&P) + 'static, 3180 >( 3181 this: *mut ffi::GtkCellRendererText, 3182 _param_spec: glib::ffi::gpointer, 3183 f: glib::ffi::gpointer, 3184 ) { 3185 let f: &F = &*(f as *const F); 3186 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 3187 } 3188 unsafe { 3189 let f: Box_<F> = Box_::new(f); 3190 connect_raw( 3191 self.as_ptr() as *mut _, 3192 b"notify::width-chars\0".as_ptr() as *const _, 3193 Some(transmute::<_, unsafe extern "C" fn()>( 3194 notify_width_chars_trampoline::<Self, F> as *const (), 3195 )), 3196 Box_::into_raw(f), 3197 ) 3198 } 3199 } 3200 connect_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3201 fn connect_wrap_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3202 unsafe extern "C" fn notify_wrap_mode_trampoline< 3203 P: IsA<CellRendererText>, 3204 F: Fn(&P) + 'static, 3205 >( 3206 this: *mut ffi::GtkCellRendererText, 3207 _param_spec: glib::ffi::gpointer, 3208 f: glib::ffi::gpointer, 3209 ) { 3210 let f: &F = &*(f as *const F); 3211 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 3212 } 3213 unsafe { 3214 let f: Box_<F> = Box_::new(f); 3215 connect_raw( 3216 self.as_ptr() as *mut _, 3217 b"notify::wrap-mode\0".as_ptr() as *const _, 3218 Some(transmute::<_, unsafe extern "C" fn()>( 3219 notify_wrap_mode_trampoline::<Self, F> as *const (), 3220 )), 3221 Box_::into_raw(f), 3222 ) 3223 } 3224 } 3225 connect_wrap_width_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3226 fn connect_wrap_width_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3227 unsafe extern "C" fn notify_wrap_width_trampoline< 3228 P: IsA<CellRendererText>, 3229 F: Fn(&P) + 'static, 3230 >( 3231 this: *mut ffi::GtkCellRendererText, 3232 _param_spec: glib::ffi::gpointer, 3233 f: glib::ffi::gpointer, 3234 ) { 3235 let f: &F = &*(f as *const F); 3236 f(CellRendererText::from_glib_borrow(this).unsafe_cast_ref()) 3237 } 3238 unsafe { 3239 let f: Box_<F> = Box_::new(f); 3240 connect_raw( 3241 self.as_ptr() as *mut _, 3242 b"notify::wrap-width\0".as_ptr() as *const _, 3243 Some(transmute::<_, unsafe extern "C" fn()>( 3244 notify_wrap_width_trampoline::<Self, F> as *const (), 3245 )), 3246 Box_::into_raw(f), 3247 ) 3248 } 3249 } 3250 } 3251 3252 impl fmt::Display for CellRendererText { fmt(&self, f: &mut fmt::Formatter) -> fmt::Result3253 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 3254 f.write_str("CellRendererText") 3255 } 3256 } 3257