Struct arc_util::ui::window::WindowSettings
source · pub struct WindowSettings<T>where
T: HasSettings,{Show 13 fields
pub shown: Option<bool>,
pub position: Option<WindowPosition>,
pub width: Option<f32>,
pub height: Option<f32>,
pub title_bar: Option<bool>,
pub background: Option<bool>,
pub title_bar_background: Option<bool>,
pub resize: Option<bool>,
pub auto_resize: Option<bool>,
pub scroll: Option<bool>,
pub scroll_bar: Option<bool>,
pub hotkey: Option<WindowHotkey>,
pub settings: Option<T::Settings>,
}
Fields§
§shown: Option<bool>
§position: Option<WindowPosition>
§width: Option<f32>
§height: Option<f32>
§title_bar: Option<bool>
§background: Option<bool>
§title_bar_background: Option<bool>
§resize: Option<bool>
§auto_resize: Option<bool>
§scroll: Option<bool>
§scroll_bar: Option<bool>
§hotkey: Option<WindowHotkey>
§settings: Option<T::Settings>
Implementations§
source§impl<T> WindowSettings<T>where
T: HasSettings,
impl<T> WindowSettings<T>where
T: HasSettings,
pub fn new(options: WindowOptions, settings: T::Settings) -> Self
Trait Implementations§
source§impl<T> Debug for WindowSettings<T>
impl<T> Debug for WindowSettings<T>
source§impl<T> Default for WindowSettings<T>
impl<T> Default for WindowSettings<T>
source§impl<'de, T> Deserialize<'de> for WindowSettings<T>where
T: HasSettings,
impl<'de, T> Deserialize<'de> for WindowSettings<T>where
T: HasSettings,
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
source§impl<T> Serialize for WindowSettings<T>where
T: HasSettings,
impl<T> Serialize for WindowSettings<T>where
T: HasSettings,
Auto Trait Implementations§
impl<T> Freeze for WindowSettings<T>
impl<T> RefUnwindSafe for WindowSettings<T>
impl<T> Send for WindowSettings<T>
impl<T> Sync for WindowSettings<T>
impl<T> Unpin for WindowSettings<T>
impl<T> UnwindSafe for WindowSettings<T>
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