1 // This file was generated by gir (https://github.com/gtk-rs/gir) 2 // from 3 // from gir-files (https://github.com/gtk-rs/gir-files.git) 4 // DO NOT EDIT 5 6 use glib::object::Cast; 7 use glib::object::IsA; 8 use glib::translate::*; 9 use glib::StaticType; 10 use glib::ToValue; 11 use std::fmt; 12 13 glib::wrapper! { 14 #[doc(alias = "HdyApplicationWindow")] 15 pub struct ApplicationWindow(Object<ffi::HdyApplicationWindow, ffi::HdyApplicationWindowClass>) @extends gtk::ApplicationWindow, gtk::Window, gtk::Bin, gtk::Container, gtk::Widget, @implements gtk::Buildable, gio::ActionGroup, gio::ActionMap; 16 17 match fn { 18 type_ => || ffi::hdy_application_window_get_type(), 19 } 20 } 21 22 impl ApplicationWindow { 23 #[doc(alias = "hdy_application_window_new")] new() -> ApplicationWindow24 pub fn new() -> ApplicationWindow { 25 assert_initialized_main_thread!(); 26 unsafe { gtk::Widget::from_glib_full(ffi::hdy_application_window_new()).unsafe_cast() } 27 } 28 29 // rustdoc-stripper-ignore-next 30 /// Creates a new builder-pattern struct instance to construct [`ApplicationWindow`] objects. 31 /// 32 /// This method returns an instance of [`ApplicationWindowBuilder`] which can be used to create [`ApplicationWindow`] objects. builder() -> ApplicationWindowBuilder33 pub fn builder() -> ApplicationWindowBuilder { 34 ApplicationWindowBuilder::default() 35 } 36 } 37 38 impl Default for ApplicationWindow { default() -> Self39 fn default() -> Self { 40 Self::new() 41 } 42 } 43 44 #[derive(Clone, Default)] 45 // rustdoc-stripper-ignore-next 46 /// A [builder-pattern] type to construct [`ApplicationWindow`] objects. 47 /// 48 /// [builder-pattern]: https://doc.rust-lang.org/1.0.0/style/ownership/builders.html 49 pub struct ApplicationWindowBuilder { 50 show_menubar: Option<bool>, 51 accept_focus: Option<bool>, 52 //application: /*Unknown type*/, 53 attached_to: Option<gtk::Widget>, 54 decorated: Option<bool>, 55 default_height: Option<i32>, 56 default_width: Option<i32>, 57 deletable: Option<bool>, 58 destroy_with_parent: Option<bool>, 59 focus_on_map: Option<bool>, 60 focus_visible: Option<bool>, 61 //gravity: /*Unknown type*/, 62 has_resize_grip: Option<bool>, 63 hide_titlebar_when_maximized: Option<bool>, 64 icon: Option<gdk_pixbuf::Pixbuf>, 65 icon_name: Option<String>, 66 mnemonics_visible: Option<bool>, 67 modal: Option<bool>, 68 resizable: Option<bool>, 69 role: Option<String>, 70 //screen: /*Unknown type*/, 71 skip_pager_hint: Option<bool>, 72 skip_taskbar_hint: Option<bool>, 73 startup_id: Option<String>, 74 title: Option<String>, 75 transient_for: Option<gtk::Window>, 76 //type: /*Unknown type*/, 77 //type-hint: /*Unknown type*/, 78 urgency_hint: Option<bool>, 79 //window-position: /*Unknown type*/, 80 border_width: Option<u32>, 81 child: Option<gtk::Widget>, 82 resize_mode: Option<gtk::ResizeMode>, 83 app_paintable: Option<bool>, 84 can_default: Option<bool>, 85 can_focus: Option<bool>, 86 double_buffered: Option<bool>, 87 events: Option<gdk::EventMask>, 88 expand: Option<bool>, 89 focus_on_click: Option<bool>, 90 halign: Option<gtk::Align>, 91 has_default: Option<bool>, 92 has_focus: Option<bool>, 93 has_tooltip: Option<bool>, 94 height_request: Option<i32>, 95 hexpand: Option<bool>, 96 hexpand_set: Option<bool>, 97 is_focus: Option<bool>, 98 margin: Option<i32>, 99 margin_bottom: Option<i32>, 100 margin_end: Option<i32>, 101 margin_left: Option<i32>, 102 margin_right: Option<i32>, 103 margin_start: Option<i32>, 104 margin_top: Option<i32>, 105 name: Option<String>, 106 no_show_all: Option<bool>, 107 opacity: Option<f64>, 108 parent: Option<gtk::Container>, 109 receives_default: Option<bool>, 110 sensitive: Option<bool>, 111 //style: /*Unknown type*/, 112 tooltip_markup: Option<String>, 113 tooltip_text: Option<String>, 114 valign: Option<gtk::Align>, 115 vexpand: Option<bool>, 116 vexpand_set: Option<bool>, 117 visible: Option<bool>, 118 width_request: Option<i32>, 119 } 120 121 impl ApplicationWindowBuilder { 122 // rustdoc-stripper-ignore-next 123 /// Create a new [`ApplicationWindowBuilder`]. new() -> Self124 pub fn new() -> Self { 125 Self::default() 126 } 127 128 // rustdoc-stripper-ignore-next 129 /// Build the [`ApplicationWindow`]. build(self) -> ApplicationWindow130 pub fn build(self) -> ApplicationWindow { 131 let mut properties: Vec<(&str, &dyn ToValue)> = vec![]; 132 if let Some(ref show_menubar) = self.show_menubar { 133 properties.push(("show-menubar", show_menubar)); 134 } 135 if let Some(ref accept_focus) = self.accept_focus { 136 properties.push(("accept-focus", accept_focus)); 137 } 138 if let Some(ref attached_to) = self.attached_to { 139 properties.push(("attached-to", attached_to)); 140 } 141 if let Some(ref decorated) = self.decorated { 142 properties.push(("decorated", decorated)); 143 } 144 if let Some(ref default_height) = self.default_height { 145 properties.push(("default-height", default_height)); 146 } 147 if let Some(ref default_width) = self.default_width { 148 properties.push(("default-width", default_width)); 149 } 150 if let Some(ref deletable) = self.deletable { 151 properties.push(("deletable", deletable)); 152 } 153 if let Some(ref destroy_with_parent) = self.destroy_with_parent { 154 properties.push(("destroy-with-parent", destroy_with_parent)); 155 } 156 if let Some(ref focus_on_map) = self.focus_on_map { 157 properties.push(("focus-on-map", focus_on_map)); 158 } 159 if let Some(ref focus_visible) = self.focus_visible { 160 properties.push(("focus-visible", focus_visible)); 161 } 162 if let Some(ref has_resize_grip) = self.has_resize_grip { 163 properties.push(("has-resize-grip", has_resize_grip)); 164 } 165 if let Some(ref hide_titlebar_when_maximized) = self.hide_titlebar_when_maximized { 166 properties.push(("hide-titlebar-when-maximized", hide_titlebar_when_maximized)); 167 } 168 if let Some(ref icon) = self.icon { 169 properties.push(("icon", icon)); 170 } 171 if let Some(ref icon_name) = self.icon_name { 172 properties.push(("icon-name", icon_name)); 173 } 174 if let Some(ref mnemonics_visible) = self.mnemonics_visible { 175 properties.push(("mnemonics-visible", mnemonics_visible)); 176 } 177 if let Some(ref modal) = self.modal { 178 properties.push(("modal", modal)); 179 } 180 if let Some(ref resizable) = self.resizable { 181 properties.push(("resizable", resizable)); 182 } 183 if let Some(ref role) = self.role { 184 properties.push(("role", role)); 185 } 186 if let Some(ref skip_pager_hint) = self.skip_pager_hint { 187 properties.push(("skip-pager-hint", skip_pager_hint)); 188 } 189 if let Some(ref skip_taskbar_hint) = self.skip_taskbar_hint { 190 properties.push(("skip-taskbar-hint", skip_taskbar_hint)); 191 } 192 if let Some(ref startup_id) = self.startup_id { 193 properties.push(("startup-id", startup_id)); 194 } 195 if let Some(ref title) = self.title { 196 properties.push(("title", title)); 197 } 198 if let Some(ref transient_for) = self.transient_for { 199 properties.push(("transient-for", transient_for)); 200 } 201 if let Some(ref urgency_hint) = self.urgency_hint { 202 properties.push(("urgency-hint", urgency_hint)); 203 } 204 if let Some(ref border_width) = self.border_width { 205 properties.push(("border-width", border_width)); 206 } 207 if let Some(ref child) = self.child { 208 properties.push(("child", child)); 209 } 210 if let Some(ref resize_mode) = self.resize_mode { 211 properties.push(("resize-mode", resize_mode)); 212 } 213 if let Some(ref app_paintable) = self.app_paintable { 214 properties.push(("app-paintable", app_paintable)); 215 } 216 if let Some(ref can_default) = self.can_default { 217 properties.push(("can-default", can_default)); 218 } 219 if let Some(ref can_focus) = self.can_focus { 220 properties.push(("can-focus", can_focus)); 221 } 222 if let Some(ref double_buffered) = self.double_buffered { 223 properties.push(("double-buffered", double_buffered)); 224 } 225 if let Some(ref events) = self.events { 226 properties.push(("events", events)); 227 } 228 if let Some(ref expand) = self.expand { 229 properties.push(("expand", expand)); 230 } 231 if let Some(ref focus_on_click) = self.focus_on_click { 232 properties.push(("focus-on-click", focus_on_click)); 233 } 234 if let Some(ref halign) = self.halign { 235 properties.push(("halign", halign)); 236 } 237 if let Some(ref has_default) = self.has_default { 238 properties.push(("has-default", has_default)); 239 } 240 if let Some(ref has_focus) = self.has_focus { 241 properties.push(("has-focus", has_focus)); 242 } 243 if let Some(ref has_tooltip) = self.has_tooltip { 244 properties.push(("has-tooltip", has_tooltip)); 245 } 246 if let Some(ref height_request) = self.height_request { 247 properties.push(("height-request", height_request)); 248 } 249 if let Some(ref hexpand) = self.hexpand { 250 properties.push(("hexpand", hexpand)); 251 } 252 if let Some(ref hexpand_set) = self.hexpand_set { 253 properties.push(("hexpand-set", hexpand_set)); 254 } 255 if let Some(ref is_focus) = self.is_focus { 256 properties.push(("is-focus", is_focus)); 257 } 258 if let Some(ref margin) = self.margin { 259 properties.push(("margin", margin)); 260 } 261 if let Some(ref margin_bottom) = self.margin_bottom { 262 properties.push(("margin-bottom", margin_bottom)); 263 } 264 if let Some(ref margin_end) = self.margin_end { 265 properties.push(("margin-end", margin_end)); 266 } 267 if let Some(ref margin_left) = self.margin_left { 268 properties.push(("margin-left", margin_left)); 269 } 270 if let Some(ref margin_right) = self.margin_right { 271 properties.push(("margin-right", margin_right)); 272 } 273 if let Some(ref margin_start) = self.margin_start { 274 properties.push(("margin-start", margin_start)); 275 } 276 if let Some(ref margin_top) = self.margin_top { 277 properties.push(("margin-top", margin_top)); 278 } 279 if let Some(ref name) = self.name { 280 properties.push(("name", name)); 281 } 282 if let Some(ref no_show_all) = self.no_show_all { 283 properties.push(("no-show-all", no_show_all)); 284 } 285 if let Some(ref opacity) = self.opacity { 286 properties.push(("opacity", opacity)); 287 } 288 if let Some(ref parent) = self.parent { 289 properties.push(("parent", parent)); 290 } 291 if let Some(ref receives_default) = self.receives_default { 292 properties.push(("receives-default", receives_default)); 293 } 294 if let Some(ref sensitive) = self.sensitive { 295 properties.push(("sensitive", sensitive)); 296 } 297 if let Some(ref tooltip_markup) = self.tooltip_markup { 298 properties.push(("tooltip-markup", tooltip_markup)); 299 } 300 if let Some(ref tooltip_text) = self.tooltip_text { 301 properties.push(("tooltip-text", tooltip_text)); 302 } 303 if let Some(ref valign) = self.valign { 304 properties.push(("valign", valign)); 305 } 306 if let Some(ref vexpand) = self.vexpand { 307 properties.push(("vexpand", vexpand)); 308 } 309 if let Some(ref vexpand_set) = self.vexpand_set { 310 properties.push(("vexpand-set", vexpand_set)); 311 } 312 if let Some(ref visible) = self.visible { 313 properties.push(("visible", visible)); 314 } 315 if let Some(ref width_request) = self.width_request { 316 properties.push(("width-request", width_request)); 317 } 318 glib::Object::new::<ApplicationWindow>(&properties) 319 .expect("Failed to create an instance of ApplicationWindow") 320 } 321 show_menubar(mut self, show_menubar: bool) -> Self322 pub fn show_menubar(mut self, show_menubar: bool) -> Self { 323 self.show_menubar = Some(show_menubar); 324 self 325 } 326 accept_focus(mut self, accept_focus: bool) -> Self327 pub fn accept_focus(mut self, accept_focus: bool) -> Self { 328 self.accept_focus = Some(accept_focus); 329 self 330 } 331 attached_to<P: IsA<gtk::Widget>>(mut self, attached_to: &P) -> Self332 pub fn attached_to<P: IsA<gtk::Widget>>(mut self, attached_to: &P) -> Self { 333 self.attached_to = Some(attached_to.clone().upcast()); 334 self 335 } 336 decorated(mut self, decorated: bool) -> Self337 pub fn decorated(mut self, decorated: bool) -> Self { 338 self.decorated = Some(decorated); 339 self 340 } 341 default_height(mut self, default_height: i32) -> Self342 pub fn default_height(mut self, default_height: i32) -> Self { 343 self.default_height = Some(default_height); 344 self 345 } 346 default_width(mut self, default_width: i32) -> Self347 pub fn default_width(mut self, default_width: i32) -> Self { 348 self.default_width = Some(default_width); 349 self 350 } 351 deletable(mut self, deletable: bool) -> Self352 pub fn deletable(mut self, deletable: bool) -> Self { 353 self.deletable = Some(deletable); 354 self 355 } 356 destroy_with_parent(mut self, destroy_with_parent: bool) -> Self357 pub fn destroy_with_parent(mut self, destroy_with_parent: bool) -> Self { 358 self.destroy_with_parent = Some(destroy_with_parent); 359 self 360 } 361 focus_on_map(mut self, focus_on_map: bool) -> Self362 pub fn focus_on_map(mut self, focus_on_map: bool) -> Self { 363 self.focus_on_map = Some(focus_on_map); 364 self 365 } 366 focus_visible(mut self, focus_visible: bool) -> Self367 pub fn focus_visible(mut self, focus_visible: bool) -> Self { 368 self.focus_visible = Some(focus_visible); 369 self 370 } 371 has_resize_grip(mut self, has_resize_grip: bool) -> Self372 pub fn has_resize_grip(mut self, has_resize_grip: bool) -> Self { 373 self.has_resize_grip = Some(has_resize_grip); 374 self 375 } 376 hide_titlebar_when_maximized(mut self, hide_titlebar_when_maximized: bool) -> Self377 pub fn hide_titlebar_when_maximized(mut self, hide_titlebar_when_maximized: bool) -> Self { 378 self.hide_titlebar_when_maximized = Some(hide_titlebar_when_maximized); 379 self 380 } 381 icon(mut self, icon: &gdk_pixbuf::Pixbuf) -> Self382 pub fn icon(mut self, icon: &gdk_pixbuf::Pixbuf) -> Self { 383 self.icon = Some(icon.clone()); 384 self 385 } 386 icon_name(mut self, icon_name: &str) -> Self387 pub fn icon_name(mut self, icon_name: &str) -> Self { 388 self.icon_name = Some(icon_name.to_string()); 389 self 390 } 391 mnemonics_visible(mut self, mnemonics_visible: bool) -> Self392 pub fn mnemonics_visible(mut self, mnemonics_visible: bool) -> Self { 393 self.mnemonics_visible = Some(mnemonics_visible); 394 self 395 } 396 modal(mut self, modal: bool) -> Self397 pub fn modal(mut self, modal: bool) -> Self { 398 self.modal = Some(modal); 399 self 400 } 401 resizable(mut self, resizable: bool) -> Self402 pub fn resizable(mut self, resizable: bool) -> Self { 403 self.resizable = Some(resizable); 404 self 405 } 406 role(mut self, role: &str) -> Self407 pub fn role(mut self, role: &str) -> Self { 408 self.role = Some(role.to_string()); 409 self 410 } 411 skip_pager_hint(mut self, skip_pager_hint: bool) -> Self412 pub fn skip_pager_hint(mut self, skip_pager_hint: bool) -> Self { 413 self.skip_pager_hint = Some(skip_pager_hint); 414 self 415 } 416 skip_taskbar_hint(mut self, skip_taskbar_hint: bool) -> Self417 pub fn skip_taskbar_hint(mut self, skip_taskbar_hint: bool) -> Self { 418 self.skip_taskbar_hint = Some(skip_taskbar_hint); 419 self 420 } 421 startup_id(mut self, startup_id: &str) -> Self422 pub fn startup_id(mut self, startup_id: &str) -> Self { 423 self.startup_id = Some(startup_id.to_string()); 424 self 425 } 426 title(mut self, title: &str) -> Self427 pub fn title(mut self, title: &str) -> Self { 428 self.title = Some(title.to_string()); 429 self 430 } 431 transient_for<P: IsA<gtk::Window>>(mut self, transient_for: &P) -> Self432 pub fn transient_for<P: IsA<gtk::Window>>(mut self, transient_for: &P) -> Self { 433 self.transient_for = Some(transient_for.clone().upcast()); 434 self 435 } 436 urgency_hint(mut self, urgency_hint: bool) -> Self437 pub fn urgency_hint(mut self, urgency_hint: bool) -> Self { 438 self.urgency_hint = Some(urgency_hint); 439 self 440 } 441 border_width(mut self, border_width: u32) -> Self442 pub fn border_width(mut self, border_width: u32) -> Self { 443 self.border_width = Some(border_width); 444 self 445 } 446 child<P: IsA<gtk::Widget>>(mut self, child: &P) -> Self447 pub fn child<P: IsA<gtk::Widget>>(mut self, child: &P) -> Self { 448 self.child = Some(child.clone().upcast()); 449 self 450 } 451 resize_mode(mut self, resize_mode: gtk::ResizeMode) -> Self452 pub fn resize_mode(mut self, resize_mode: gtk::ResizeMode) -> Self { 453 self.resize_mode = Some(resize_mode); 454 self 455 } 456 app_paintable(mut self, app_paintable: bool) -> Self457 pub fn app_paintable(mut self, app_paintable: bool) -> Self { 458 self.app_paintable = Some(app_paintable); 459 self 460 } 461 can_default(mut self, can_default: bool) -> Self462 pub fn can_default(mut self, can_default: bool) -> Self { 463 self.can_default = Some(can_default); 464 self 465 } 466 can_focus(mut self, can_focus: bool) -> Self467 pub fn can_focus(mut self, can_focus: bool) -> Self { 468 self.can_focus = Some(can_focus); 469 self 470 } 471 double_buffered(mut self, double_buffered: bool) -> Self472 pub fn double_buffered(mut self, double_buffered: bool) -> Self { 473 self.double_buffered = Some(double_buffered); 474 self 475 } 476 events(mut self, events: gdk::EventMask) -> Self477 pub fn events(mut self, events: gdk::EventMask) -> Self { 478 self.events = Some(events); 479 self 480 } 481 expand(mut self, expand: bool) -> Self482 pub fn expand(mut self, expand: bool) -> Self { 483 self.expand = Some(expand); 484 self 485 } 486 focus_on_click(mut self, focus_on_click: bool) -> Self487 pub fn focus_on_click(mut self, focus_on_click: bool) -> Self { 488 self.focus_on_click = Some(focus_on_click); 489 self 490 } 491 halign(mut self, halign: gtk::Align) -> Self492 pub fn halign(mut self, halign: gtk::Align) -> Self { 493 self.halign = Some(halign); 494 self 495 } 496 has_default(mut self, has_default: bool) -> Self497 pub fn has_default(mut self, has_default: bool) -> Self { 498 self.has_default = Some(has_default); 499 self 500 } 501 has_focus(mut self, has_focus: bool) -> Self502 pub fn has_focus(mut self, has_focus: bool) -> Self { 503 self.has_focus = Some(has_focus); 504 self 505 } 506 has_tooltip(mut self, has_tooltip: bool) -> Self507 pub fn has_tooltip(mut self, has_tooltip: bool) -> Self { 508 self.has_tooltip = Some(has_tooltip); 509 self 510 } 511 height_request(mut self, height_request: i32) -> Self512 pub fn height_request(mut self, height_request: i32) -> Self { 513 self.height_request = Some(height_request); 514 self 515 } 516 hexpand(mut self, hexpand: bool) -> Self517 pub fn hexpand(mut self, hexpand: bool) -> Self { 518 self.hexpand = Some(hexpand); 519 self 520 } 521 hexpand_set(mut self, hexpand_set: bool) -> Self522 pub fn hexpand_set(mut self, hexpand_set: bool) -> Self { 523 self.hexpand_set = Some(hexpand_set); 524 self 525 } 526 is_focus(mut self, is_focus: bool) -> Self527 pub fn is_focus(mut self, is_focus: bool) -> Self { 528 self.is_focus = Some(is_focus); 529 self 530 } 531 margin(mut self, margin: i32) -> Self532 pub fn margin(mut self, margin: i32) -> Self { 533 self.margin = Some(margin); 534 self 535 } 536 margin_bottom(mut self, margin_bottom: i32) -> Self537 pub fn margin_bottom(mut self, margin_bottom: i32) -> Self { 538 self.margin_bottom = Some(margin_bottom); 539 self 540 } 541 margin_end(mut self, margin_end: i32) -> Self542 pub fn margin_end(mut self, margin_end: i32) -> Self { 543 self.margin_end = Some(margin_end); 544 self 545 } 546 margin_left(mut self, margin_left: i32) -> Self547 pub fn margin_left(mut self, margin_left: i32) -> Self { 548 self.margin_left = Some(margin_left); 549 self 550 } 551 margin_right(mut self, margin_right: i32) -> Self552 pub fn margin_right(mut self, margin_right: i32) -> Self { 553 self.margin_right = Some(margin_right); 554 self 555 } 556 margin_start(mut self, margin_start: i32) -> Self557 pub fn margin_start(mut self, margin_start: i32) -> Self { 558 self.margin_start = Some(margin_start); 559 self 560 } 561 margin_top(mut self, margin_top: i32) -> Self562 pub fn margin_top(mut self, margin_top: i32) -> Self { 563 self.margin_top = Some(margin_top); 564 self 565 } 566 name(mut self, name: &str) -> Self567 pub fn name(mut self, name: &str) -> Self { 568 self.name = Some(name.to_string()); 569 self 570 } 571 no_show_all(mut self, no_show_all: bool) -> Self572 pub fn no_show_all(mut self, no_show_all: bool) -> Self { 573 self.no_show_all = Some(no_show_all); 574 self 575 } 576 opacity(mut self, opacity: f64) -> Self577 pub fn opacity(mut self, opacity: f64) -> Self { 578 self.opacity = Some(opacity); 579 self 580 } 581 parent<P: IsA<gtk::Container>>(mut self, parent: &P) -> Self582 pub fn parent<P: IsA<gtk::Container>>(mut self, parent: &P) -> Self { 583 self.parent = Some(parent.clone().upcast()); 584 self 585 } 586 receives_default(mut self, receives_default: bool) -> Self587 pub fn receives_default(mut self, receives_default: bool) -> Self { 588 self.receives_default = Some(receives_default); 589 self 590 } 591 sensitive(mut self, sensitive: bool) -> Self592 pub fn sensitive(mut self, sensitive: bool) -> Self { 593 self.sensitive = Some(sensitive); 594 self 595 } 596 tooltip_markup(mut self, tooltip_markup: &str) -> Self597 pub fn tooltip_markup(mut self, tooltip_markup: &str) -> Self { 598 self.tooltip_markup = Some(tooltip_markup.to_string()); 599 self 600 } 601 tooltip_text(mut self, tooltip_text: &str) -> Self602 pub fn tooltip_text(mut self, tooltip_text: &str) -> Self { 603 self.tooltip_text = Some(tooltip_text.to_string()); 604 self 605 } 606 valign(mut self, valign: gtk::Align) -> Self607 pub fn valign(mut self, valign: gtk::Align) -> Self { 608 self.valign = Some(valign); 609 self 610 } 611 vexpand(mut self, vexpand: bool) -> Self612 pub fn vexpand(mut self, vexpand: bool) -> Self { 613 self.vexpand = Some(vexpand); 614 self 615 } 616 vexpand_set(mut self, vexpand_set: bool) -> Self617 pub fn vexpand_set(mut self, vexpand_set: bool) -> Self { 618 self.vexpand_set = Some(vexpand_set); 619 self 620 } 621 visible(mut self, visible: bool) -> Self622 pub fn visible(mut self, visible: bool) -> Self { 623 self.visible = Some(visible); 624 self 625 } 626 width_request(mut self, width_request: i32) -> Self627 pub fn width_request(mut self, width_request: i32) -> Self { 628 self.width_request = Some(width_request); 629 self 630 } 631 } 632 633 pub const NONE_APPLICATION_WINDOW: Option<&ApplicationWindow> = None; 634 635 impl fmt::Display for ApplicationWindow { fmt(&self, f: &mut fmt::Formatter) -> fmt::Result636 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 637 f.write_str("ApplicationWindow") 638 } 639 } 640