Struct libnoentiendo::platform::WinitPlatform
source · pub struct WinitPlatform { /* private fields */ }
Expand description
A platform implementation for desktop platforms using Winit and Pixels. This platform runs synchronously.
-Implementations§
source§impl WinitPlatform
impl WinitPlatform
Trait Implementations§
source§impl Platform for WinitPlatform
impl Platform for WinitPlatform
fn provider(&self) -> Arc<dyn PlatformProvider>
source§impl SyncPlatform for WinitPlatform
impl SyncPlatform for WinitPlatform
Auto Trait Implementations§
impl RefUnwindSafe for WinitPlatform
impl Send for WinitPlatform
impl Sync for WinitPlatform
impl Unpin for WinitPlatform
impl UnwindSafe for WinitPlatform
Blanket Implementations§
Implementations§
source§impl WinitPlatform
impl WinitPlatform
Trait Implementations§
source§impl Platform for WinitPlatform
impl Platform for WinitPlatform
fn provider(&self) -> Arc<dyn PlatformProvider>
source§impl SyncPlatform for WinitPlatform
impl SyncPlatform for WinitPlatform
Auto Trait Implementations§
impl RefUnwindSafe for WinitPlatform
impl Send for WinitPlatform
impl Sync for WinitPlatform
impl Unpin for WinitPlatform
impl UnwindSafe for WinitPlatform
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
source§impl<T> From<T> for T
impl<T> From<T> for T
source§fn from(t: T) -> T
fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/doc/libnoentiendo/platform/struct.WinitPlatformProvider.html b/doc/libnoentiendo/platform/struct.WinitPlatformProvider.html index 622ea82..0937bc6 100644 --- a/doc/libnoentiendo/platform/struct.WinitPlatformProvider.html +++ b/doc/libnoentiendo/platform/struct.WinitPlatformProvider.html @@ -1,17 +1,17 @@ -Struct libnoentiendo::platform::WinitPlatformProvider
source · pub struct WinitPlatformProvider { /* private fields */ }
Implementations§
source§impl WinitPlatformProvider
impl WinitPlatformProvider
pub fn new(
+WinitPlatformProvider in libnoentiendo::platform - Rust Struct libnoentiendo::platform::WinitPlatformProvider
source · pub struct WinitPlatformProvider { /* private fields */ }
Implementations§
Trait Implementations§
source§impl PlatformProvider for WinitPlatformProvider
source§fn request_window(&self, config: WindowConfig)
Request that the platform create a window of the specified size,
+) -> SelfTrait Implementations§
source§impl PlatformProvider for WinitPlatformProvider
source§fn request_window(&self, config: WindowConfig)
Request that the platform create a window of the specified size,
with the specified scale factor. If a window already exists, the platform
-should resize it to the new size.source§fn get_key_state(&self) -> KeyState<KeyPosition>
Get the current state of the user’s physical keyboard.source§fn get_virtual_key_state(&self) -> KeyState<VirtualKey>
Get the state of a virtual keyboard (emulating the target system),
-if one is available.source§fn get_joystick_state(&self) -> JoystickState
Get the current state of the connected joystick.
-If no joystick is connected, this should return a default state.source§fn print(&self, text: &str)
Display the given string to the user, “out-of-band” from any other
+should resize it to the new size.source§fn get_key_state(&self) -> KeyState<KeyPosition>
Get the current state of the user’s physical keyboard.source§fn get_virtual_key_state(&self) -> KeyState<VirtualKey>
Get the state of a virtual keyboard (emulating the target system),
+if one is available.source§fn get_joystick_state(&self) -> JoystickState
Get the current state of the connected joystick.
+If no joystick is connected, this should return a default state.source§fn print(&self, text: &str)
Display the given string to the user, “out-of-band” from any other
graphics. This is used for text-mode systems. Implementations may choose
-various ways to display this, such as a terminal message or a pop-up.source§fn input(&self) -> String
Read a string input from the user, “out-of-band” from any other
+various ways to display this, such as a terminal message or a pop-up.source§fn input(&self) -> String
Read a string input from the user, “out-of-band” from any other
graphics. This is used for text-mode systems. Implementations may choose
various ways to prompt for this, such as a terminal prompt or a pop-up
-dialog.Auto Trait Implementations§
§impl RefUnwindSafe for WinitPlatformProvider
§impl Send for WinitPlatformProvider
§impl Sync for WinitPlatformProvider
§impl Unpin for WinitPlatformProvider
§impl UnwindSafe for WinitPlatformProvider
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/libnoentiendo/platform/trait.PlatformProvider.html b/doc/libnoentiendo/platform/trait.PlatformProvider.html
index 1bf5b7e..662681d 100644
--- a/doc/libnoentiendo/platform/trait.PlatformProvider.html
+++ b/doc/libnoentiendo/platform/trait.PlatformProvider.html
@@ -24,4 +24,4 @@
dialog.
Implementors§
\ No newline at end of file
+
Struct libnoentiendo::platform::WinitPlatformProvider
source · pub struct WinitPlatformProvider { /* private fields */ }
Implementations§
Trait Implementations§
source§impl PlatformProvider for WinitPlatformProvider
impl PlatformProvider for WinitPlatformProvider
source§fn request_window(&self, config: WindowConfig)
fn request_window(&self, config: WindowConfig)
Request that the platform create a window of the specified size,
+) -> Self
Trait Implementations§
source§impl PlatformProvider for WinitPlatformProvider
impl PlatformProvider for WinitPlatformProvider
source§fn request_window(&self, config: WindowConfig)
fn request_window(&self, config: WindowConfig)
Request that the platform create a window of the specified size,
with the specified scale factor. If a window already exists, the platform
-should resize it to the new size.
source§fn get_key_state(&self) -> KeyState<KeyPosition>
fn get_key_state(&self) -> KeyState<KeyPosition>
Get the current state of the user’s physical keyboard.
source§fn get_virtual_key_state(&self) -> KeyState<VirtualKey>
fn get_virtual_key_state(&self) -> KeyState<VirtualKey>
Get the state of a virtual keyboard (emulating the target system),
-if one is available.
source§fn get_joystick_state(&self) -> JoystickState
fn get_joystick_state(&self) -> JoystickState
Get the current state of the connected joystick.
-If no joystick is connected, this should return a default state.
source§fn print(&self, text: &str)
fn print(&self, text: &str)
Display the given string to the user, “out-of-band” from any other
+should resize it to the new size.
source§fn get_key_state(&self) -> KeyState<KeyPosition>
fn get_key_state(&self) -> KeyState<KeyPosition>
Get the current state of the user’s physical keyboard.
source§fn get_virtual_key_state(&self) -> KeyState<VirtualKey>
fn get_virtual_key_state(&self) -> KeyState<VirtualKey>
Get the state of a virtual keyboard (emulating the target system),
+if one is available.
source§fn get_joystick_state(&self) -> JoystickState
fn get_joystick_state(&self) -> JoystickState
Get the current state of the connected joystick.
+If no joystick is connected, this should return a default state.
source§fn print(&self, text: &str)
fn print(&self, text: &str)
Display the given string to the user, “out-of-band” from any other
graphics. This is used for text-mode systems. Implementations may choose
-various ways to display this, such as a terminal message or a pop-up.
source§fn input(&self) -> String
fn input(&self) -> String
Read a string input from the user, “out-of-band” from any other
+various ways to display this, such as a terminal message or a pop-up.
source§fn input(&self) -> String
fn input(&self) -> String
Read a string input from the user, “out-of-band” from any other
graphics. This is used for text-mode systems. Implementations may choose
various ways to prompt for this, such as a terminal prompt or a pop-up
-dialog.
Auto Trait Implementations§
impl RefUnwindSafe for WinitPlatformProvider
impl Send for WinitPlatformProvider
impl Sync for WinitPlatformProvider
impl Unpin for WinitPlatformProvider
impl UnwindSafe for WinitPlatformProvider
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/doc/libnoentiendo/platform/trait.PlatformProvider.html b/doc/libnoentiendo/platform/trait.PlatformProvider.html
index 1bf5b7e..662681d 100644
--- a/doc/libnoentiendo/platform/trait.PlatformProvider.html
+++ b/doc/libnoentiendo/platform/trait.PlatformProvider.html
@@ -24,4 +24,4 @@
dialog.
impl<T> BorrowMut<T> for Twhere diff --git a/doc/libnoentiendo/platform/trait.PlatformProvider.html b/doc/libnoentiendo/platform/trait.PlatformProvider.html index 1bf5b7e..662681d 100644 --- a/doc/libnoentiendo/platform/trait.PlatformProvider.html +++ b/doc/libnoentiendo/platform/trait.PlatformProvider.html @@ -24,4 +24,4 @@ dialog.
Implementors§
Implementors§
Expand description
A platform which can be run synchronously.
-