# Struct `kurogane::TitleChange`

```rust
pub struct TitleChange { /* private fields */ }
```

A page's new title, passed to
[`App::on_title_change`](https://kurogane-rs.org/docs/api/app/app.md#method.on_title_change).

[crate::App::on_title_change]: https://kurogane-rs.org/docs/api/app/app.md#method.on_title_change

## Methods

### `title`

```rust
pub fn title(&self) -> &str
```

The title the page gave itself, its `<title>` or what a script set
`document.title` to.

### `browser`

```rust
pub fn browser(&self) -> Option<BrowserId>
```

The browser of the page.

### `window`

```rust
pub fn window(&self) -> Option<WindowId>
```

The window the page is in; none for a browser embedded in the
application's own window.

## Trait implementations

- `impl Clone for TitleChange`
- `impl Debug for TitleChange`
- `impl Eq for TitleChange`
- `impl PartialEq for TitleChange`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/page_events.rs#L23
