Skip to content

Commit

Permalink
add raw_parent option to reflector WindowOptions struct
Browse files Browse the repository at this point in the history
  • Loading branch information
micahrj committed Aug 24, 2024
1 parent 306947a commit d20f874
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use graphics::{Affine, Color, Renderer};
use platform::{Bitmap, WindowContext};
use platform::{Bitmap, WindowContext, RawWindow};

use crate::{App, Build, Context, Elem, Event, Point, ProposedSize, Result, Size};

Expand Down Expand Up @@ -120,6 +120,11 @@ impl WindowOptions {
self
}

pub unsafe fn raw_parent(&mut self, parent: RawWindow) -> &mut Self {
self.inner.raw_parent(parent);
self
}

pub fn open<B>(&self, app: &App, root: B) -> Result<Window>
where
B: Build,
Expand Down

0 comments on commit d20f874

Please sign in to comment.