bevy_child_window 0.2.1

Allows you to create an embed child window in Bevy
Documentation
# bevy_child_window

[![Crates.io](https://img.shields.io/crates/v/bevy_child_window.svg)](https://crates.io/crates/bevy_child_window)
[![MIT/Apache 2.0](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)](https://github.com/not-elm/bevy_child_window#license)

This library provides a way to create an embed child window in Bevy.

This is a library for [
`bevy_webview_wry`](https://github.com/not-elm/bevy_webview_projects/blob/main/crates/bevy_webview_wry/README.md), but
can be used in generic bevy applications.

![webview](docs/webview.gif)

## Supported platforms

| Platform       | usable |
|----------------|--------|
| Windows        ||
| MacOS          ||
| Linux(X11)     ||
| Linux(Wayland) ||
| Web            ||
| Android        ||
| iOS            ||

## Usage

You can create the window as child by adding `ParentWindow` component to the entity.

```rust
use bevy::prelude::*;
use bevy::window::{PrimaryWindow, WindowResolution};
use bevy_child_window::prelude::*;

fn main() {
    App::new()
        .add_plugins((
            DefaultPlugins,
            ChildWindowPlugin,
        ))
        .add_systems(Startup, spawn_child_window)
        .run();
}

fn spawn_child_window(
    mut commands: Commands,
    parent: Query<Entity, With<PrimaryWindow>>,
) {
    commands.spawn((
        ParentWindow(parent.single()),
        Window {
            title: "Child Window".to_string(),
            resolution: WindowResolution::new(500.0, 500.0),
            ..Default::default()
        }
    ));
}
```

## ChangeLog

Please see [here](./CHANGELOG.md).

## Compatible Bevy versions

| bevy_child_window | bevy |
|-------------------|------|
| 0.1.0 ~           | 0.15 |

## License

This crate is licensed under the MIT License or the Apache License 2.0.

## Contributing

Welcome to contribute by PR and issues!