Struct egui_winit::WindowSettings
source · pub struct WindowSettings { /* private fields */ }
Expand description
Can be used to store native window settings (position and size).
Implementations§
source§impl WindowSettings
impl WindowSettings
pub fn from_display(window: &Window) -> Self
pub fn inner_size_points(&self) -> Option<Vec2>
pub fn initialize_window(&self, window: WindowBuilder) -> WindowBuilder
pub fn clamp_to_sane_values(&mut self, max_size: Vec2)
pub fn clamp_window_to_sane_position<E>( &mut self, event_loop: &EventLoopWindowTarget<E> )
Trait Implementations§
source§impl Clone for WindowSettings
impl Clone for WindowSettings
source§fn clone(&self) -> WindowSettings
fn clone(&self) -> WindowSettings
Returns a copy of the value. Read more
1.0.0 · 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 WindowSettings
impl Debug for WindowSettings
source§impl<'de> Deserialize<'de> for WindowSettings
impl<'de> Deserialize<'de> for WindowSettings
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more