pub struct BlockInput {
pub block: bool,
}Expand description
Block input events from reaching window and listen all input events
Fields§
§block: boolWhether to block input events from reaching to window.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for BlockInput
impl<'__de, __Context> BorrowDecode<'__de, __Context> for BlockInput
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for BlockInput
impl Clone for BlockInput
Source§fn clone(&self) -> BlockInput
fn clone(&self) -> BlockInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockInput
impl Debug for BlockInput
Source§impl<__Context> Decode<__Context> for BlockInput
impl<__Context> Decode<__Context> for BlockInput
Source§impl Default for BlockInput
impl Default for BlockInput
Source§fn default() -> BlockInput
fn default() -> BlockInput
Returns the “default value” for a type. Read more
Source§impl Encode for BlockInput
impl Encode for BlockInput
impl Eq for BlockInput
Source§impl From<BlockInput> for WindowRequest
impl From<BlockInput> for WindowRequest
Source§fn from(value: BlockInput) -> Self
fn from(value: BlockInput) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockInput
impl PartialEq for BlockInput
Source§fn eq(&self, other: &BlockInput) -> bool
fn eq(&self, other: &BlockInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlockInput
impl WindowRequestItem for BlockInput
Auto Trait Implementations§
impl Freeze for BlockInput
impl RefUnwindSafe for BlockInput
impl Send for BlockInput
impl Sync for BlockInput
impl Unpin for BlockInput
impl UnsafeUnpin for BlockInput
impl UnwindSafe for BlockInput
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