Adw.Application
Description: Reference for Adw.Application

### Class

# AdwApplication

#### Description [src]

    class Adw.Application : Gtk.Application {
      parent_instance: GtkApplication
    }

A base class for Adwaita applications.

`AdwApplication` handles library initialization by calling `adw_init()` in the default `GApplication::startup` signal handler, in turn chaining up as required by `GtkApplication`. Therefore, any subclass of `AdwApplication` should always chain up its `startup` handler before using any Adwaita or GTK API.

## Automatic Resources

`AdwApplication` will automatically load stylesheets located in the application’s resource base path (see `g_application_set_resource_base_path()`, if they’re present.

They can be used to add custom styles to the application, as follows:

- `style.css` contains styles that are always present.

- `style-dark.css` contains styles only used when `AdwStyleManager:dark` is `TRUE`.

- `style-hc.css` contains styles used when the system high contrast preference is enabled.

- `style-hc-dark.css` contains styles used when the system high contrast preference is enabled and `AdwStyleManager:dark` is `TRUE`.

Available since: | 1.0

#### Hierarchy

#### Ancestors

- AdwApplication
- AdwApplication
- GObject

#### Implements

- GActionGroup
- GActionMap

#### Constructors

###### adw_application_new

Creates a new `AdwApplication`.

Available since: 1.0

#### Instance methods

###### adw_application_get_style_manager

Gets the style manager for `self`.

Available since: 1.0

##### Methods inherited from AdwApplication (1)

###### adw_application_get_style_manager

Gets the style manager for `self`.

Available since: 1.0

##### Methods inherited from AdwApplication (1)

###### adw_application_get_style_manager

Gets the style manager for `self`.

Available since: 1.0

##### Methods inherited from GObject (43)

#### Properties

###### Adw.Application:style-manager

The style manager for this application.

Available since: 1.0

##### Properties inherited from AdwApplication (1)

###### Adw.Application:style-manager

The style manager for this application.

Available since: 1.0

##### Properties inherited from AdwApplication (1)

###### Adw.Application:style-manager

The style manager for this application.

Available since: 1.0

#### Signals

##### Signals inherited from GObject (1)

#### Class structure

    struct AdwApplicationClass {
      GtkApplicationClass parent_class;

    }

###### Class members

`parent_class` |
    GtkApplicationClass
| The parent class.