Struct witas::WindowBuilder
source · pub struct WindowBuilder<Title = (), Sz = (), Tx = ()> { /* private fields */ }
Expand description
The object that build a window.
Implementations§
source§impl<Title, Sz, Rx> WindowBuilder<Title, Sz, Rx>
impl<Title, Sz, Rx> WindowBuilder<Title, Sz, Rx>
pub fn title(self, title: impl Into<String>) -> WindowBuilder<String, Sz, Rx>
pub fn position(self, position: impl Into<ScreenPosition>) -> Self
pub fn inner_size<T>(self, size: T) -> WindowBuilder<Title, T, Rx>where T: ToPhysical<u32, Output<u32> = PhysicalSize<u32>>,
pub fn set_receiver( self, rx: &EventReceiver ) -> WindowBuilder<Title, Sz, UnboundedSender<(Event, Window)>>
pub fn set_raw_input_receiver( self, raw_input_rx: &RawInputEventRecevier ) -> WindowBuilder<Title, Sz, Rx>
pub fn style(self, style: impl Style + Send + 'static) -> Self
pub fn visible(self, visibility: bool) -> Self
pub fn ime(self, enable: bool) -> Self
pub fn visible_ime_candidate_window(self, visible: bool) -> Self
pub fn accept_drop_files(self, accept: bool) -> Self
pub fn icon(self, icon: Icon) -> Self
pub fn parent(self, parent: Option<&Window>) -> Self
pub fn auto_close(self, auto_close: bool) -> Self
source§impl<Sz> WindowBuilder<String, Sz, UnboundedSender<(Event, Window)>>where
Sz: ToPhysical<u32, Output<u32> = PhysicalSize<u32>>,
impl<Sz> WindowBuilder<String, Sz, UnboundedSender<(Event, Window)>>where Sz: ToPhysical<u32, Output<u32> = PhysicalSize<u32>>,
Trait Implementations§
source§impl<Sz> IntoFuture for WindowBuilder<String, Sz, UnboundedSender<(Event, Window)>>where
Sz: ToPhysical<u32, Output<u32> = PhysicalSize<u32>> + Send + Unpin + 'static,
impl<Sz> IntoFuture for WindowBuilder<String, Sz, UnboundedSender<(Event, Window)>>where Sz: ToPhysical<u32, Output<u32> = PhysicalSize<u32>> + Send + Unpin + 'static,
§type IntoFuture = Build<Sz>
type IntoFuture = Build<Sz>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<Title = (), Sz = (), Tx = ()> !RefUnwindSafe for WindowBuilder<Title, Sz, Tx>
impl<Title, Sz, Tx> Send for WindowBuilder<Title, Sz, Tx>where Sz: Send, Title: Send, Tx: Send,
impl<Title = (), Sz = (), Tx = ()> !Sync for WindowBuilder<Title, Sz, Tx>
impl<Title, Sz, Tx> Unpin for WindowBuilder<Title, Sz, Tx>where Sz: Unpin, Title: Unpin, Tx: Unpin,
impl<Title = (), Sz = (), Tx = ()> !UnwindSafe for WindowBuilder<Title, Sz, Tx>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more