Struct arc_util::ui::window::WindowOptions
source · pub struct WindowOptions {
pub visible: bool,
pub position: WindowPosition,
pub width: f32,
pub height: f32,
pub title_bar: bool,
pub background: bool,
pub title_bar_background: bool,
pub resize: bool,
pub auto_resize: bool,
pub scroll: bool,
pub scroll_bar: bool,
pub hotkey: WindowHotkey,
}
Expand description
Window options.
Fields§
§visible: bool
Whether the window is (currently) visible.
position: WindowPosition
Position of the window.
width: f32
Width of the window in pixels.
height: f32
Height of the window in pixels.
title_bar: bool
Whether to show the window titlebar.
background: bool
Whether to show the window body background.
title_bar_background: bool
Whether to show the window titlebar background.
resize: bool
Whether to allow manually resizing the window.
auto_resize: bool
Whether to automatically resize the window according to contents.
scroll: bool
Whether to allow scrolling.
scroll_bar: bool
Whether to show the scrollbar.
hotkey: WindowHotkey
Hotkey to open the window with.
Implementations§
source§impl WindowOptions
impl WindowOptions
source§impl WindowOptions
impl WindowOptions
sourcepub fn render_window<'ui>(
&mut self,
ui: &'ui Ui<'_>,
name: &str
) -> Option<WindowToken<'ui>>
pub fn render_window<'ui>( &mut self, ui: &'ui Ui<'_>, name: &str ) -> Option<WindowToken<'ui>>
Renders the window according to the options.
Trait Implementations§
source§impl Clone for WindowOptions
impl Clone for WindowOptions
source§fn clone(&self) -> WindowOptions
fn clone(&self) -> WindowOptions
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 WindowOptions
impl Debug for WindowOptions
source§impl Default for WindowOptions
impl Default for WindowOptions
source§impl Hideable for WindowOptions
impl Hideable for WindowOptions
source§fn is_visible(&self) -> bool
fn is_visible(&self) -> bool
Returns whether the component is currently visible.
source§fn visible_mut(&mut self) -> &mut bool
fn visible_mut(&mut self) -> &mut bool
Returns a mutable reference to the component’s visibility state.
source§fn toggle_visibility(&mut self)
fn toggle_visibility(&mut self)
Toggles the component’s visibility.
source§fn set_visibility(&mut self, visible: bool)
fn set_visibility(&mut self, visible: bool)
Sets the component’s visibility state.
Auto Trait Implementations§
impl Freeze for WindowOptions
impl RefUnwindSafe for WindowOptions
impl Send for WindowOptions
impl Sync for WindowOptions
impl Unpin for WindowOptions
impl UnwindSafe for WindowOptions
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