pub struct DesktopConfig {
pub window_title: String,
pub window_width: i32,
pub window_height: i32,
pub led_radius: f32,
pub high_dpi: bool,
pub orthographic_view: bool,
pub background_color: (f32, f32, f32, f32),
}Expand description
Configuration options for the desktop simulator.
Allows customizing the appearance and behavior of the LED simulator window.
Fields§
§window_title: StringWindow title
window_width: i32Window width in pixels
window_height: i32Window height in pixels
led_radius: f32Size of the LED representations
high_dpi: boolWhether to use high DPI mode
orthographic_view: boolInitial camera view mode (true for orthographic, false for perspective)
background_color: (f32, f32, f32, f32)Background color (R, G, B, A) where each component is 0.0 - 1.0
Trait Implementations§
Source§impl Clone for DesktopConfig
impl Clone for DesktopConfig
Source§fn clone(&self) -> DesktopConfig
fn clone(&self) -> DesktopConfig
Returns a duplicate 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 DesktopConfig
impl Debug for DesktopConfig
Auto Trait Implementations§
impl Freeze for DesktopConfig
impl RefUnwindSafe for DesktopConfig
impl Send for DesktopConfig
impl Sync for DesktopConfig
impl Unpin for DesktopConfig
impl UnwindSafe for DesktopConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromColor<T> for T
impl<T> FromColor<T> for T
Source§fn from_color(color: T) -> T
fn from_color(color: T) -> T
Converts from the source color type
Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Converts into the target color type