diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-29 12:52:32 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-29 12:52:32 +0200 |
| commit | ce93a783ee6228f54f5bd24da88becc913c5c85c (patch) | |
| tree | ee86b5eaa2c6969f24ee887fe37beb06adda5b75 /examples/hello-world | |
| parent | 673e58ca36421bb560d4e04277b6b58ce6e0db6f (diff) | |
| download | libadwaitamm-ce93a783ee6228f54f5bd24da88becc913c5c85c.tar.xz libadwaitamm-ce93a783ee6228f54f5bd24da88becc913c5c85c.zip | |
adw: implement HeaderBar
Diffstat (limited to 'examples/hello-world')
| -rw-r--r-- | examples/hello-world/hello.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/hello-world/hello.cpp b/examples/hello-world/hello.cpp index 5351370..af9123b 100644 --- a/examples/hello-world/hello.cpp +++ b/examples/hello-world/hello.cpp @@ -13,8 +13,12 @@ auto main(int argc, char ** argv) -> int window->set_title("Hello"); auto toolbar_view = Adwaita::ToolbarView{}; + auto header_bar = Adwaita::HeaderBar{}; + auto window_title = Adwaita::WindowTitle{"Hello", "World"}; auto label = Gtk::Label{"Hello World"}; + header_bar.set_title_widget(window_title); + toolbar_view.add_top_bar(header_bar); toolbar_view.set_content(label); window->set_content(toolbar_view); |
