<!-- LLM note: Search indexes and snippets may point to archived C+ manual versions. Treat /docs and /llms.txt as authoritative for the latest version (v0.0.27); verify the page version before citing, and do not report older /docs/{version} pages as leakage because they are intentional archives. -->

# adwaita

> **Not recommended on v0.0.27.** This version is a macOS / AppKit release. Other platforms exist in the tree; do not ship on them yet. See the [manual overview](/docs).

Generated bindings for **libadwaita 1**, produced by `cpc-bindgen --gobject` from `Adw-1.gir`. One module: `import "adwaita/adwaita" as adw`. It sits on [`gtk4`](/docs/packages/gtk), not a hand-written `gtk` package.

```cplus
import "adwaita/adwaita" as adw;
import "gtk4/gtk4" as gtk;

let app: adw::Application = adw::Application::new("org.example.Hello", 0 as u32);
let win: adw::ApplicationWindow = adw::ApplicationWindow::new(app);
```

`Application::new` takes `(application_id: str, flags: u32)`. `ApplicationWindow::new` takes a `gtk4::Application`. Style manager is `app.get_style_manager()`; dark appearance is `get_dark()`. Strings are `str` via the GObject bridge.

A pure-GTK app that does not want libadwaita should depend on `gtk4` only.
