pub struct HingeConfig {
pub rect: Rect,
pub contentColor: Option<RGBA>,
pub outlineColor: Option<RGBA>,
}Expand description
Configuration for dual screen hinge
Fields§
§rect: RectA rectangle represent hinge
contentColor: Option<RGBA>The content box highlight fill color (default: a dark color).
outlineColor: 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 Default for HingeConfig
impl Default for HingeConfig
Source§fn default() -> HingeConfig
fn default() -> HingeConfig
Returns the “default value” for a type. Read more
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 UnsafeUnpin 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