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::Actionable;
6 use crate::Align;
7 use crate::Bin;
8 use crate::Buildable;
9 use crate::Container;
10 use crate::ResizeMode;
11 use crate::Widget;
12 use glib::object::Cast;
13 use glib::object::IsA;
14 use glib::object::ObjectExt;
15 use glib::signal::connect_raw;
16 use glib::signal::SignalHandlerId;
17 use glib::translate::*;
18 use glib::StaticType;
19 use glib::ToValue;
20 use std::boxed::Box as Box_;
21 use std::fmt;
22 use std::mem::transmute;
23 
24 glib::wrapper! {
25     #[doc(alias = "GtkListBoxRow")]
26     pub struct ListBoxRow(Object<ffi::GtkListBoxRow, ffi::GtkListBoxRowClass>) @extends Bin, Container, Widget, @implements Buildable, Actionable;
27 
28     match fn {
29         type_ => || ffi::gtk_list_box_row_get_type(),
30     }
31 }
32 
33 impl ListBoxRow {
34     #[doc(alias = "gtk_list_box_row_new")]
new() -> ListBoxRow35     pub fn new() -> ListBoxRow {
36         assert_initialized_main_thread!();
37         unsafe { Widget::from_glib_none(ffi::gtk_list_box_row_new()).unsafe_cast() }
38     }
39 
40     // rustdoc-stripper-ignore-next
41     /// Creates a new builder-pattern struct instance to construct [`ListBoxRow`] objects.
42     ///
43     /// This method returns an instance of [`ListBoxRowBuilder`] which can be used to create [`ListBoxRow`] objects.
builder() -> ListBoxRowBuilder44     pub fn builder() -> ListBoxRowBuilder {
45         ListBoxRowBuilder::default()
46     }
47 }
48 
49 impl Default for ListBoxRow {
default() -> Self50     fn default() -> Self {
51         Self::new()
52     }
53 }
54 
55 #[derive(Clone, Default)]
56 // rustdoc-stripper-ignore-next
57 /// A [builder-pattern] type to construct [`ListBoxRow`] objects.
58 ///
59 /// [builder-pattern]: https://doc.rust-lang.org/1.0.0/style/ownership/builders.html
60 pub struct ListBoxRowBuilder {
61     activatable: Option<bool>,
62     selectable: Option<bool>,
63     border_width: Option<u32>,
64     child: Option<Widget>,
65     resize_mode: Option<ResizeMode>,
66     app_paintable: Option<bool>,
67     can_default: Option<bool>,
68     can_focus: Option<bool>,
69     events: Option<gdk::EventMask>,
70     expand: Option<bool>,
71     #[cfg(any(feature = "v3_20", feature = "dox"))]
72     #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))]
73     focus_on_click: Option<bool>,
74     halign: Option<Align>,
75     has_default: Option<bool>,
76     has_focus: Option<bool>,
77     has_tooltip: Option<bool>,
78     height_request: Option<i32>,
79     hexpand: Option<bool>,
80     hexpand_set: Option<bool>,
81     is_focus: Option<bool>,
82     margin: Option<i32>,
83     margin_bottom: Option<i32>,
84     margin_end: Option<i32>,
85     margin_start: Option<i32>,
86     margin_top: Option<i32>,
87     name: Option<String>,
88     no_show_all: Option<bool>,
89     opacity: Option<f64>,
90     parent: Option<Container>,
91     receives_default: Option<bool>,
92     sensitive: Option<bool>,
93     tooltip_markup: Option<String>,
94     tooltip_text: Option<String>,
95     valign: Option<Align>,
96     vexpand: Option<bool>,
97     vexpand_set: Option<bool>,
98     visible: Option<bool>,
99     width_request: Option<i32>,
100     action_name: Option<String>,
101     action_target: Option<glib::Variant>,
102 }
103 
104 impl ListBoxRowBuilder {
105     // rustdoc-stripper-ignore-next
106     /// Create a new [`ListBoxRowBuilder`].
new() -> Self107     pub fn new() -> Self {
108         Self::default()
109     }
110 
111     // rustdoc-stripper-ignore-next
112     /// Build the [`ListBoxRow`].
build(self) -> ListBoxRow113     pub fn build(self) -> ListBoxRow {
114         let mut properties: Vec<(&str, &dyn ToValue)> = vec![];
115         if let Some(ref activatable) = self.activatable {
116             properties.push(("activatable", activatable));
117         }
118         if let Some(ref selectable) = self.selectable {
119             properties.push(("selectable", selectable));
120         }
121         if let Some(ref border_width) = self.border_width {
122             properties.push(("border-width", border_width));
123         }
124         if let Some(ref child) = self.child {
125             properties.push(("child", child));
126         }
127         if let Some(ref resize_mode) = self.resize_mode {
128             properties.push(("resize-mode", resize_mode));
129         }
130         if let Some(ref app_paintable) = self.app_paintable {
131             properties.push(("app-paintable", app_paintable));
132         }
133         if let Some(ref can_default) = self.can_default {
134             properties.push(("can-default", can_default));
135         }
136         if let Some(ref can_focus) = self.can_focus {
137             properties.push(("can-focus", can_focus));
138         }
139         if let Some(ref events) = self.events {
140             properties.push(("events", events));
141         }
142         if let Some(ref expand) = self.expand {
143             properties.push(("expand", expand));
144         }
145         #[cfg(any(feature = "v3_20", feature = "dox"))]
146         if let Some(ref focus_on_click) = self.focus_on_click {
147             properties.push(("focus-on-click", focus_on_click));
148         }
149         if let Some(ref halign) = self.halign {
150             properties.push(("halign", halign));
151         }
152         if let Some(ref has_default) = self.has_default {
153             properties.push(("has-default", has_default));
154         }
155         if let Some(ref has_focus) = self.has_focus {
156             properties.push(("has-focus", has_focus));
157         }
158         if let Some(ref has_tooltip) = self.has_tooltip {
159             properties.push(("has-tooltip", has_tooltip));
160         }
161         if let Some(ref height_request) = self.height_request {
162             properties.push(("height-request", height_request));
163         }
164         if let Some(ref hexpand) = self.hexpand {
165             properties.push(("hexpand", hexpand));
166         }
167         if let Some(ref hexpand_set) = self.hexpand_set {
168             properties.push(("hexpand-set", hexpand_set));
169         }
170         if let Some(ref is_focus) = self.is_focus {
171             properties.push(("is-focus", is_focus));
172         }
173         if let Some(ref margin) = self.margin {
174             properties.push(("margin", margin));
175         }
176         if let Some(ref margin_bottom) = self.margin_bottom {
177             properties.push(("margin-bottom", margin_bottom));
178         }
179         if let Some(ref margin_end) = self.margin_end {
180             properties.push(("margin-end", margin_end));
181         }
182         if let Some(ref margin_start) = self.margin_start {
183             properties.push(("margin-start", margin_start));
184         }
185         if let Some(ref margin_top) = self.margin_top {
186             properties.push(("margin-top", margin_top));
187         }
188         if let Some(ref name) = self.name {
189             properties.push(("name", name));
190         }
191         if let Some(ref no_show_all) = self.no_show_all {
192             properties.push(("no-show-all", no_show_all));
193         }
194         if let Some(ref opacity) = self.opacity {
195             properties.push(("opacity", opacity));
196         }
197         if let Some(ref parent) = self.parent {
198             properties.push(("parent", parent));
199         }
200         if let Some(ref receives_default) = self.receives_default {
201             properties.push(("receives-default", receives_default));
202         }
203         if let Some(ref sensitive) = self.sensitive {
204             properties.push(("sensitive", sensitive));
205         }
206         if let Some(ref tooltip_markup) = self.tooltip_markup {
207             properties.push(("tooltip-markup", tooltip_markup));
208         }
209         if let Some(ref tooltip_text) = self.tooltip_text {
210             properties.push(("tooltip-text", tooltip_text));
211         }
212         if let Some(ref valign) = self.valign {
213             properties.push(("valign", valign));
214         }
215         if let Some(ref vexpand) = self.vexpand {
216             properties.push(("vexpand", vexpand));
217         }
218         if let Some(ref vexpand_set) = self.vexpand_set {
219             properties.push(("vexpand-set", vexpand_set));
220         }
221         if let Some(ref visible) = self.visible {
222             properties.push(("visible", visible));
223         }
224         if let Some(ref width_request) = self.width_request {
225             properties.push(("width-request", width_request));
226         }
227         if let Some(ref action_name) = self.action_name {
228             properties.push(("action-name", action_name));
229         }
230         if let Some(ref action_target) = self.action_target {
231             properties.push(("action-target", action_target));
232         }
233         glib::Object::new::<ListBoxRow>(&properties)
234             .expect("Failed to create an instance of ListBoxRow")
235     }
236 
activatable(mut self, activatable: bool) -> Self237     pub fn activatable(mut self, activatable: bool) -> Self {
238         self.activatable = Some(activatable);
239         self
240     }
241 
selectable(mut self, selectable: bool) -> Self242     pub fn selectable(mut self, selectable: bool) -> Self {
243         self.selectable = Some(selectable);
244         self
245     }
246 
border_width(mut self, border_width: u32) -> Self247     pub fn border_width(mut self, border_width: u32) -> Self {
248         self.border_width = Some(border_width);
249         self
250     }
251 
child<P: IsA<Widget>>(mut self, child: &P) -> Self252     pub fn child<P: IsA<Widget>>(mut self, child: &P) -> Self {
253         self.child = Some(child.clone().upcast());
254         self
255     }
256 
resize_mode(mut self, resize_mode: ResizeMode) -> Self257     pub fn resize_mode(mut self, resize_mode: ResizeMode) -> Self {
258         self.resize_mode = Some(resize_mode);
259         self
260     }
261 
app_paintable(mut self, app_paintable: bool) -> Self262     pub fn app_paintable(mut self, app_paintable: bool) -> Self {
263         self.app_paintable = Some(app_paintable);
264         self
265     }
266 
can_default(mut self, can_default: bool) -> Self267     pub fn can_default(mut self, can_default: bool) -> Self {
268         self.can_default = Some(can_default);
269         self
270     }
271 
can_focus(mut self, can_focus: bool) -> Self272     pub fn can_focus(mut self, can_focus: bool) -> Self {
273         self.can_focus = Some(can_focus);
274         self
275     }
276 
events(mut self, events: gdk::EventMask) -> Self277     pub fn events(mut self, events: gdk::EventMask) -> Self {
278         self.events = Some(events);
279         self
280     }
281 
expand(mut self, expand: bool) -> Self282     pub fn expand(mut self, expand: bool) -> Self {
283         self.expand = Some(expand);
284         self
285     }
286 
287     #[cfg(any(feature = "v3_20", feature = "dox"))]
288     #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))]
focus_on_click(mut self, focus_on_click: bool) -> Self289     pub fn focus_on_click(mut self, focus_on_click: bool) -> Self {
290         self.focus_on_click = Some(focus_on_click);
291         self
292     }
293 
halign(mut self, halign: Align) -> Self294     pub fn halign(mut self, halign: Align) -> Self {
295         self.halign = Some(halign);
296         self
297     }
298 
has_default(mut self, has_default: bool) -> Self299     pub fn has_default(mut self, has_default: bool) -> Self {
300         self.has_default = Some(has_default);
301         self
302     }
303 
has_focus(mut self, has_focus: bool) -> Self304     pub fn has_focus(mut self, has_focus: bool) -> Self {
305         self.has_focus = Some(has_focus);
306         self
307     }
308 
has_tooltip(mut self, has_tooltip: bool) -> Self309     pub fn has_tooltip(mut self, has_tooltip: bool) -> Self {
310         self.has_tooltip = Some(has_tooltip);
311         self
312     }
313 
height_request(mut self, height_request: i32) -> Self314     pub fn height_request(mut self, height_request: i32) -> Self {
315         self.height_request = Some(height_request);
316         self
317     }
318 
hexpand(mut self, hexpand: bool) -> Self319     pub fn hexpand(mut self, hexpand: bool) -> Self {
320         self.hexpand = Some(hexpand);
321         self
322     }
323 
hexpand_set(mut self, hexpand_set: bool) -> Self324     pub fn hexpand_set(mut self, hexpand_set: bool) -> Self {
325         self.hexpand_set = Some(hexpand_set);
326         self
327     }
328 
is_focus(mut self, is_focus: bool) -> Self329     pub fn is_focus(mut self, is_focus: bool) -> Self {
330         self.is_focus = Some(is_focus);
331         self
332     }
333 
margin(mut self, margin: i32) -> Self334     pub fn margin(mut self, margin: i32) -> Self {
335         self.margin = Some(margin);
336         self
337     }
338 
margin_bottom(mut self, margin_bottom: i32) -> Self339     pub fn margin_bottom(mut self, margin_bottom: i32) -> Self {
340         self.margin_bottom = Some(margin_bottom);
341         self
342     }
343 
margin_end(mut self, margin_end: i32) -> Self344     pub fn margin_end(mut self, margin_end: i32) -> Self {
345         self.margin_end = Some(margin_end);
346         self
347     }
348 
margin_start(mut self, margin_start: i32) -> Self349     pub fn margin_start(mut self, margin_start: i32) -> Self {
350         self.margin_start = Some(margin_start);
351         self
352     }
353 
margin_top(mut self, margin_top: i32) -> Self354     pub fn margin_top(mut self, margin_top: i32) -> Self {
355         self.margin_top = Some(margin_top);
356         self
357     }
358 
name(mut self, name: &str) -> Self359     pub fn name(mut self, name: &str) -> Self {
360         self.name = Some(name.to_string());
361         self
362     }
363 
no_show_all(mut self, no_show_all: bool) -> Self364     pub fn no_show_all(mut self, no_show_all: bool) -> Self {
365         self.no_show_all = Some(no_show_all);
366         self
367     }
368 
opacity(mut self, opacity: f64) -> Self369     pub fn opacity(mut self, opacity: f64) -> Self {
370         self.opacity = Some(opacity);
371         self
372     }
373 
parent<P: IsA<Container>>(mut self, parent: &P) -> Self374     pub fn parent<P: IsA<Container>>(mut self, parent: &P) -> Self {
375         self.parent = Some(parent.clone().upcast());
376         self
377     }
378 
receives_default(mut self, receives_default: bool) -> Self379     pub fn receives_default(mut self, receives_default: bool) -> Self {
380         self.receives_default = Some(receives_default);
381         self
382     }
383 
sensitive(mut self, sensitive: bool) -> Self384     pub fn sensitive(mut self, sensitive: bool) -> Self {
385         self.sensitive = Some(sensitive);
386         self
387     }
388 
tooltip_markup(mut self, tooltip_markup: &str) -> Self389     pub fn tooltip_markup(mut self, tooltip_markup: &str) -> Self {
390         self.tooltip_markup = Some(tooltip_markup.to_string());
391         self
392     }
393 
tooltip_text(mut self, tooltip_text: &str) -> Self394     pub fn tooltip_text(mut self, tooltip_text: &str) -> Self {
395         self.tooltip_text = Some(tooltip_text.to_string());
396         self
397     }
398 
valign(mut self, valign: Align) -> Self399     pub fn valign(mut self, valign: Align) -> Self {
400         self.valign = Some(valign);
401         self
402     }
403 
vexpand(mut self, vexpand: bool) -> Self404     pub fn vexpand(mut self, vexpand: bool) -> Self {
405         self.vexpand = Some(vexpand);
406         self
407     }
408 
vexpand_set(mut self, vexpand_set: bool) -> Self409     pub fn vexpand_set(mut self, vexpand_set: bool) -> Self {
410         self.vexpand_set = Some(vexpand_set);
411         self
412     }
413 
visible(mut self, visible: bool) -> Self414     pub fn visible(mut self, visible: bool) -> Self {
415         self.visible = Some(visible);
416         self
417     }
418 
width_request(mut self, width_request: i32) -> Self419     pub fn width_request(mut self, width_request: i32) -> Self {
420         self.width_request = Some(width_request);
421         self
422     }
423 
action_name(mut self, action_name: &str) -> Self424     pub fn action_name(mut self, action_name: &str) -> Self {
425         self.action_name = Some(action_name.to_string());
426         self
427     }
428 
action_target(mut self, action_target: &glib::Variant) -> Self429     pub fn action_target(mut self, action_target: &glib::Variant) -> Self {
430         self.action_target = Some(action_target.clone());
431         self
432     }
433 }
434 
435 pub const NONE_LIST_BOX_ROW: Option<&ListBoxRow> = None;
436 
437 pub trait ListBoxRowExt: 'static {
438     #[doc(alias = "gtk_list_box_row_changed")]
changed(&self)439     fn changed(&self);
440 
441     #[doc(alias = "gtk_list_box_row_get_activatable")]
442     #[doc(alias = "get_activatable")]
is_activatable(&self) -> bool443     fn is_activatable(&self) -> bool;
444 
445     #[doc(alias = "gtk_list_box_row_get_header")]
446     #[doc(alias = "get_header")]
header(&self) -> Option<Widget>447     fn header(&self) -> Option<Widget>;
448 
449     #[doc(alias = "gtk_list_box_row_get_index")]
450     #[doc(alias = "get_index")]
index(&self) -> i32451     fn index(&self) -> i32;
452 
453     #[doc(alias = "gtk_list_box_row_get_selectable")]
454     #[doc(alias = "get_selectable")]
is_selectable(&self) -> bool455     fn is_selectable(&self) -> bool;
456 
457     #[doc(alias = "gtk_list_box_row_is_selected")]
is_selected(&self) -> bool458     fn is_selected(&self) -> bool;
459 
460     #[doc(alias = "gtk_list_box_row_set_activatable")]
set_activatable(&self, activatable: bool)461     fn set_activatable(&self, activatable: bool);
462 
463     #[doc(alias = "gtk_list_box_row_set_header")]
set_header<P: IsA<Widget>>(&self, header: Option<&P>)464     fn set_header<P: IsA<Widget>>(&self, header: Option<&P>);
465 
466     #[doc(alias = "gtk_list_box_row_set_selectable")]
set_selectable(&self, selectable: bool)467     fn set_selectable(&self, selectable: bool);
468 
469     #[doc(alias = "activate")]
connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId470     fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
471 
emit_activate(&self)472     fn emit_activate(&self);
473 
474     #[doc(alias = "activatable")]
connect_activatable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId475     fn connect_activatable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
476 
477     #[doc(alias = "selectable")]
connect_selectable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId478     fn connect_selectable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
479 }
480 
481 impl<O: IsA<ListBoxRow>> ListBoxRowExt for O {
changed(&self)482     fn changed(&self) {
483         unsafe {
484             ffi::gtk_list_box_row_changed(self.as_ref().to_glib_none().0);
485         }
486     }
487 
is_activatable(&self) -> bool488     fn is_activatable(&self) -> bool {
489         unsafe {
490             from_glib(ffi::gtk_list_box_row_get_activatable(
491                 self.as_ref().to_glib_none().0,
492             ))
493         }
494     }
495 
header(&self) -> Option<Widget>496     fn header(&self) -> Option<Widget> {
497         unsafe {
498             from_glib_none(ffi::gtk_list_box_row_get_header(
499                 self.as_ref().to_glib_none().0,
500             ))
501         }
502     }
503 
index(&self) -> i32504     fn index(&self) -> i32 {
505         unsafe { ffi::gtk_list_box_row_get_index(self.as_ref().to_glib_none().0) }
506     }
507 
is_selectable(&self) -> bool508     fn is_selectable(&self) -> bool {
509         unsafe {
510             from_glib(ffi::gtk_list_box_row_get_selectable(
511                 self.as_ref().to_glib_none().0,
512             ))
513         }
514     }
515 
is_selected(&self) -> bool516     fn is_selected(&self) -> bool {
517         unsafe {
518             from_glib(ffi::gtk_list_box_row_is_selected(
519                 self.as_ref().to_glib_none().0,
520             ))
521         }
522     }
523 
set_activatable(&self, activatable: bool)524     fn set_activatable(&self, activatable: bool) {
525         unsafe {
526             ffi::gtk_list_box_row_set_activatable(
527                 self.as_ref().to_glib_none().0,
528                 activatable.into_glib(),
529             );
530         }
531     }
532 
set_header<P: IsA<Widget>>(&self, header: Option<&P>)533     fn set_header<P: IsA<Widget>>(&self, header: Option<&P>) {
534         unsafe {
535             ffi::gtk_list_box_row_set_header(
536                 self.as_ref().to_glib_none().0,
537                 header.map(|p| p.as_ref()).to_glib_none().0,
538             );
539         }
540     }
541 
set_selectable(&self, selectable: bool)542     fn set_selectable(&self, selectable: bool) {
543         unsafe {
544             ffi::gtk_list_box_row_set_selectable(
545                 self.as_ref().to_glib_none().0,
546                 selectable.into_glib(),
547             );
548         }
549     }
550 
connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId551     fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
552         unsafe extern "C" fn activate_trampoline<P: IsA<ListBoxRow>, F: Fn(&P) + 'static>(
553             this: *mut ffi::GtkListBoxRow,
554             f: glib::ffi::gpointer,
555         ) {
556             let f: &F = &*(f as *const F);
557             f(ListBoxRow::from_glib_borrow(this).unsafe_cast_ref())
558         }
559         unsafe {
560             let f: Box_<F> = Box_::new(f);
561             connect_raw(
562                 self.as_ptr() as *mut _,
563                 b"activate\0".as_ptr() as *const _,
564                 Some(transmute::<_, unsafe extern "C" fn()>(
565                     activate_trampoline::<Self, F> as *const (),
566                 )),
567                 Box_::into_raw(f),
568             )
569         }
570     }
571 
emit_activate(&self)572     fn emit_activate(&self) {
573         let _ = unsafe {
574             glib::Object::from_glib_borrow(self.as_ptr() as *mut glib::gobject_ffi::GObject)
575                 .emit_by_name("activate", &[])
576                 .unwrap()
577         };
578     }
579 
connect_activatable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId580     fn connect_activatable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
581         unsafe extern "C" fn notify_activatable_trampoline<
582             P: IsA<ListBoxRow>,
583             F: Fn(&P) + 'static,
584         >(
585             this: *mut ffi::GtkListBoxRow,
586             _param_spec: glib::ffi::gpointer,
587             f: glib::ffi::gpointer,
588         ) {
589             let f: &F = &*(f as *const F);
590             f(ListBoxRow::from_glib_borrow(this).unsafe_cast_ref())
591         }
592         unsafe {
593             let f: Box_<F> = Box_::new(f);
594             connect_raw(
595                 self.as_ptr() as *mut _,
596                 b"notify::activatable\0".as_ptr() as *const _,
597                 Some(transmute::<_, unsafe extern "C" fn()>(
598                     notify_activatable_trampoline::<Self, F> as *const (),
599                 )),
600                 Box_::into_raw(f),
601             )
602         }
603     }
604 
connect_selectable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId605     fn connect_selectable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
606         unsafe extern "C" fn notify_selectable_trampoline<
607             P: IsA<ListBoxRow>,
608             F: Fn(&P) + 'static,
609         >(
610             this: *mut ffi::GtkListBoxRow,
611             _param_spec: glib::ffi::gpointer,
612             f: glib::ffi::gpointer,
613         ) {
614             let f: &F = &*(f as *const F);
615             f(ListBoxRow::from_glib_borrow(this).unsafe_cast_ref())
616         }
617         unsafe {
618             let f: Box_<F> = Box_::new(f);
619             connect_raw(
620                 self.as_ptr() as *mut _,
621                 b"notify::selectable\0".as_ptr() as *const _,
622                 Some(transmute::<_, unsafe extern "C" fn()>(
623                     notify_selectable_trampoline::<Self, F> as *const (),
624                 )),
625                 Box_::into_raw(f),
626             )
627         }
628     }
629 }
630 
631 impl fmt::Display for ListBoxRow {
fmt(&self, f: &mut fmt::Formatter) -> fmt::Result632     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
633         f.write_str("ListBoxRow")
634     }
635 }
636