pub struct HingeConfig { /* private fields */ }Expand description
Configuration for dual screen hinge
Implementations§
Source§impl HingeConfig
impl HingeConfig
Sourcepub fn builder(rect: Rect) -> HingeConfigBuilder
pub fn builder(rect: Rect) -> HingeConfigBuilder
Creates a builder for this type with the required parameters:
rect: A rectangle represent hinge
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 (const: unstable) · 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