browser_window_core/
window.rs

1pub mod c;
2
3pub use c::WindowImpl;
4
5use crate::prelude::*;
6
7
8
9pub trait WindowExt: Copy + Default {
10	fn app( &self ) -> ApplicationImpl;
11
12	fn destroy( &self );
13	fn drop( &self );
14
15	fn get_content_dimensions( &self ) -> Dims2D;
16	fn get_opacity( &self ) -> u8;
17	fn get_position( &self ) -> Pos2D;
18	fn get_title( &self ) -> String;
19	fn get_window_dimensions( &self ) -> Dims2D;
20
21	fn hide( &self );
22
23	fn set_content_dimensions( &self, dimensions: Dims2D );
24	fn set_opacity( &self, opacity: u8 );
25	fn set_position( &self, position: Pos2D );
26	fn set_title( &self, title: &str );
27	fn set_window_dimensions( &self, dimensions: Dims2D );
28
29	fn show( &self );
30}
31
32pub type WindowOptions = cbw_WindowOptions;