pub struct NodeChromeLayoutPolicy {
pub control_size: f32,
pub bar_height: f32,
pub margin: f32,
pub zoom: f32,
}Expand description
View-independent sizing policy for semantic chrome placement.
Fields§
§control_size: f32§bar_height: f32§margin: f32§zoom: f32Implementations§
Source§impl NodeChromeLayoutPolicy
impl NodeChromeLayoutPolicy
pub fn with_control_size(self, control_size: f32) -> Self
pub fn with_bar_height(self, bar_height: f32) -> Self
pub fn with_margin(self, margin: f32) -> Self
pub fn with_zoom(self, zoom: f32) -> Self
Trait Implementations§
Source§impl Clone for NodeChromeLayoutPolicy
impl Clone for NodeChromeLayoutPolicy
Source§fn clone(&self) -> NodeChromeLayoutPolicy
fn clone(&self) -> NodeChromeLayoutPolicy
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 moreimpl Copy for NodeChromeLayoutPolicy
Source§impl Debug for NodeChromeLayoutPolicy
impl Debug for NodeChromeLayoutPolicy
Source§impl Default for NodeChromeLayoutPolicy
impl Default for NodeChromeLayoutPolicy
Source§impl<'de> Deserialize<'de> for NodeChromeLayoutPolicy
impl<'de> Deserialize<'de> for NodeChromeLayoutPolicy
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
Source§impl PartialEq for NodeChromeLayoutPolicy
impl PartialEq for NodeChromeLayoutPolicy
Source§fn eq(&self, other: &NodeChromeLayoutPolicy) -> bool
fn eq(&self, other: &NodeChromeLayoutPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeChromeLayoutPolicy
impl Serialize for NodeChromeLayoutPolicy
impl StructuralPartialEq for NodeChromeLayoutPolicy
Auto Trait Implementations§
impl Freeze for NodeChromeLayoutPolicy
impl RefUnwindSafe for NodeChromeLayoutPolicy
impl Send for NodeChromeLayoutPolicy
impl Sync for NodeChromeLayoutPolicy
impl Unpin for NodeChromeLayoutPolicy
impl UnsafeUnpin for NodeChromeLayoutPolicy
impl UnwindSafe for NodeChromeLayoutPolicy
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