Debian Codegraph @

src/scores/dialog.rs

raw symbols SCIP
1 /*
2 * Copyright 2024 Andrey Kutejko <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 *
17 * For more details see the file COPYING.
18 */
19
20 use adwrust-analyzer cargo libadwaita 0.9.1 crate/::preluderust-analyzer cargo libadwaita 0.9.1 prelude/::*;
21
22 pub struct ScoresDialogrust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog# {
23 pub dlgrust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog#dlg.: adwrust-analyzer cargo libadwaita 0.9.1 crate/::Windowrust-analyzer cargo libadwaita 0.9.1 auto/window/Window#,
24 pub window_titlerust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog#window_title.: adwrust-analyzer cargo libadwaita 0.9.1 crate/::WindowTitlerust-analyzer cargo libadwaita 0.9.1 auto/window_title/WindowTitle#,
25 pub headerbarrust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog#headerbar.: adwrust-analyzer cargo libadwaita 0.9.1 crate/::HeaderBarrust-analyzer cargo libadwaita 0.9.1 auto/header_bar/HeaderBar#,
26 pub vboxrust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog#vbox.: gtkrust-analyzer cargo gtk4 0.11.1 crate/::Boxrust-analyzer cargo gtk4 0.11.1 auto/box_/Box#,
27 }
28
29 pub fn new_scores_dialogrust-analyzer cargo gnome-robots 50.0.0 scores/dialog/new_scores_dialog().(window: &gtkrust-analyzer cargo gtk4 0.11.1 crate/::Windowrust-analyzer cargo gtk4 0.11.1 auto/window/Window#) -> ScoresDialogrust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog# {
30 let dlg = adwrust-analyzer cargo libadwaita 0.9.1 crate/::Windowrust-analyzer cargo libadwaita 0.9.1 auto/window/Window#::builderrust-analyzer cargo libadwaita 0.9.1 auto/window/impl#[Window]builder().()
31 .resizablerust-analyzer cargo libadwaita 0.9.1 auto/window/impl#[WindowBuilder]resizable().(true)
32 .modalrust-analyzer cargo libadwaita 0.9.1 auto/window/impl#[WindowBuilder]modal().(true)
33 .transient_forrust-analyzer cargo libadwaita 0.9.1 auto/window/impl#[WindowBuilder]transient_for().(window)
34 .buildrust-analyzer cargo libadwaita 0.9.1 auto/window/impl#[WindowBuilder]build().();
35
36 let window_title = adwrust-analyzer cargo libadwaita 0.9.1 crate/::WindowTitlerust-analyzer cargo libadwaita 0.9.1 auto/window_title/WindowTitle#::builderrust-analyzer cargo libadwaita 0.9.1 auto/window_title/impl#[WindowTitle]builder().().buildrust-analyzer cargo libadwaita 0.9.1 auto/window_title/impl#[WindowTitleBuilder]build().();
37
38 let headerbar = adwrust-analyzer cargo libadwaita 0.9.1 crate/::HeaderBarrust-analyzer cargo libadwaita 0.9.1 auto/header_bar/HeaderBar#::builderrust-analyzer cargo libadwaita 0.9.1 auto/header_bar/impl#[HeaderBar]builder().()
39 .title_widgetrust-analyzer cargo libadwaita 0.9.1 auto/header_bar/impl#[HeaderBarBuilder]title_widget().(&window_title)
40 .buildrust-analyzer cargo libadwaita 0.9.1 auto/header_bar/impl#[HeaderBarBuilder]build().();
41
42 let content = adwrust-analyzer cargo libadwaita 0.9.1 crate/::ToolbarViewrust-analyzer cargo libadwaita 0.9.1 auto/toolbar_view/ToolbarView#::builderrust-analyzer cargo libadwaita 0.9.1 auto/toolbar_view/impl#[ToolbarView]builder().().buildrust-analyzer cargo libadwaita 0.9.1 auto/toolbar_view/impl#[ToolbarViewBuilder]build().();
43 dlg.set_contentrust-analyzer cargo libadwaita 0.9.1 auto/window/AdwWindowExt#set_content().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(&content));
44
45 content.add_top_barrust-analyzer cargo libadwaita 0.9.1 auto/toolbar_view/impl#[ToolbarView]add_top_bar().(&headerbar);
46
47 let vbox = gtkrust-analyzer cargo gtk4 0.11.1 crate/::Boxrust-analyzer cargo gtk4 0.11.1 auto/box_/Box#::builderrust-analyzer cargo gtk4 0.11.1 auto/box_/impl#[Box]builder().()
48 .orientationrust-analyzer cargo gtk4 0.11.1 auto/box_/impl#[BoxBuilder]orientation().(gtkrust-analyzer cargo gtk4 0.11.1 crate/::Orientationrust-analyzer cargo gtk4 0.11.1 auto/enums/Orientation#::Verticalrust-analyzer cargo gtk4 0.11.1 auto/enums/Orientation#Vertical#)
49 .buildrust-analyzer cargo gtk4 0.11.1 auto/box_/impl#[BoxBuilder]build().();
50 content.set_contentrust-analyzer cargo libadwaita 0.9.1 auto/toolbar_view/impl#[ToolbarView]set_content().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(&vbox));
51
52 ScoresDialogrust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog# {
53 dlgrust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog#dlg.,
54 window_titlerust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog#window_title.,
55 headerbarrust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog#headerbar.,
56 vboxrust-analyzer cargo gnome-robots 50.0.0 scores/dialog/ScoresDialog#vbox.,
57 }
58 }