pub struct HingeConfig { /* private fields */ }Available on crate features
experimental and Overlay and DOM and Page and Runtime only.Expand description
Configuration for dual screen hinge
Implementations§
Source§impl HingeConfig
impl HingeConfig
pub fn new( rect: Rect, content_color: Option<Rgba>, outline_color: Option<Rgba>, ) -> Self
Sourcepub fn content_color(&self) -> Option<&Rgba>
pub fn content_color(&self) -> Option<&Rgba>
The content box highlight fill color (default: a dark color).
Sourcepub fn outline_color(&self) -> Option<&Rgba>
pub fn outline_color(&self) -> Option<&Rgba>
The content box highlight outline color (default: transparent).
Trait Implementations§
Source§impl Clone for HingeConfig
impl Clone for HingeConfig
Source§fn clone(&self) -> HingeConfig
fn clone(&self) -> HingeConfig
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 HingeConfig
impl Debug for HingeConfig
Source§impl<'de> Deserialize<'de> for HingeConfig
impl<'de> Deserialize<'de> for HingeConfig
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
Auto Trait Implementations§
impl Freeze for HingeConfig
impl RefUnwindSafe for HingeConfig
impl Send for HingeConfig
impl Sync for HingeConfig
impl Unpin for HingeConfig
impl UnwindSafe for HingeConfig
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