pub struct InnerWindowBuilder<Pos = (), Sz = (), Tx = ()> { /* private fields */ }
Expand description

The object that build a inner window.

Implementations§

source§

impl<Pos, Sz, Tx> InnerWindowBuilder<Pos, Sz, Tx>

source

pub fn position<T>(self, position: T) -> InnerWindowBuilder<T, Sz, Tx>where T: ToPhysical<i32, Output<i32> = PhysicalPosition<i32>>,

source

pub fn size<T>(self, size: T) -> InnerWindowBuilder<Pos, T, Tx>where T: ToPhysical<u32, Output<u32> = PhysicalSize<u32>>,

source

pub fn set_receiver( self, rx: &EventReceiver ) -> InnerWindowBuilder<Pos, Sz, UnboundedSender<(Event, Window)>>

source

pub fn raw_input_receiver( self, raw_input_rx: &RawInputEventRecevier ) -> InnerWindowBuilder<Pos, Sz, Tx>

source

pub fn visible(self, visibility: bool) -> Self

source

pub fn ime(self, enable: bool) -> Self

source

pub fn visible_ime_candidate_window(self, visible: bool) -> Self

source

pub fn accept_drop_files(self, accept: bool) -> Self

source

pub fn enable_raw_input(self, enable: bool) -> Self

source§

impl<Pos, Sz> InnerWindowBuilder<Pos, Sz, UnboundedSender<(Event, Window)>>where Pos: ToPhysical<i32, Output<i32> = PhysicalPosition<i32>>, Sz: ToPhysical<u32, Output<u32> = PhysicalSize<u32>>,

source

pub fn build(self) -> BuildInnerWindow<Pos, Sz>

Trait Implementations§

source§

impl<Pos, Sz> IntoFuture for InnerWindowBuilder<Pos, Sz, UnboundedSender<(Event, Window)>>where Pos: ToPhysical<i32, Output<i32> = PhysicalPosition<i32>> + Send + Unpin + 'static, Sz: ToPhysical<u32, Output<u32> = PhysicalSize<u32>> + Send + Unpin + 'static,

§

type Output = Result<Window, Error>

The output that the future will produce on completion.
§

type IntoFuture = BuildInnerWindow<Pos, Sz>

Which kind of future are we turning this into?
source§

fn into_future(self) -> Self::IntoFuture

Creates a future from a value. Read more

Auto Trait Implementations§

§

impl<Pos = (), Sz = (), Tx = ()> !RefUnwindSafe for InnerWindowBuilder<Pos, Sz, Tx>

§

impl<Pos, Sz, Tx> Send for InnerWindowBuilder<Pos, Sz, Tx>where Pos: Send, Sz: Send, Tx: Send,

§

impl<Pos, Sz, Tx> Sync for InnerWindowBuilder<Pos, Sz, Tx>where Pos: Sync, Sz: Sync, Tx: Sync,

§

impl<Pos, Sz, Tx> Unpin for InnerWindowBuilder<Pos, Sz, Tx>where Pos: Unpin, Sz: Unpin, Tx: Unpin,

§

impl<Pos = (), Sz = (), Tx = ()> !UnwindSafe for InnerWindowBuilder<Pos, Sz, Tx>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.