pub struct ConnectorTextBackground {
pub corner_radius: Option<f64>,
pub corner_smoothing: Option<f64>,
pub rectangle_corner_radii: Option<Vec<f64>>,
pub fills: Vec<Paint>,
pub styles: Option<HashMap<String, String>>,
}
Fields§
§corner_radius: Option<f64>
Radius of each corner if a single radius is set for all corners
corner_smoothing: Option<f64>
A value that lets you control how "smooth" the corners are. Ranges from 0 to 1. 0 is the default and means that the corner is perfectly circular. A value of 0.6 means the corner matches the iOS 7 "squircle" icon shape. Other values produce various other curves.
rectangle_corner_radii: Option<Vec<f64>>
Array of length 4 of the radius of each corner of the frame, starting in the top left and proceeding clockwise. Values are given in the order top-left, top-right, bottom-right, bottom-left.
fills: Vec<Paint>
An array of fill paints applied to the node.
styles: Option<HashMap<String, String>>
A mapping of a StyleType to style ID (see Style) of styles present on this node. The style ID can be used to look up more information about the style in the top-level styles field.
Implementations§
Source§impl ConnectorTextBackground
impl ConnectorTextBackground
pub fn new(fills: Vec<Paint>) -> ConnectorTextBackground
Trait Implementations§
Source§impl Clone for ConnectorTextBackground
impl Clone for ConnectorTextBackground
Source§fn clone(&self) -> ConnectorTextBackground
fn clone(&self) -> ConnectorTextBackground
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 ConnectorTextBackground
impl Debug for ConnectorTextBackground
Source§impl Default for ConnectorTextBackground
impl Default for ConnectorTextBackground
Source§fn default() -> ConnectorTextBackground
fn default() -> ConnectorTextBackground
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConnectorTextBackground
impl<'de> Deserialize<'de> for ConnectorTextBackground
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 ConnectorTextBackground
impl PartialEq for ConnectorTextBackground
Source§impl Serialize for ConnectorTextBackground
impl Serialize for ConnectorTextBackground
impl StructuralPartialEq for ConnectorTextBackground
Auto Trait Implementations§
impl Freeze for ConnectorTextBackground
impl RefUnwindSafe for ConnectorTextBackground
impl Send for ConnectorTextBackground
impl Sync for ConnectorTextBackground
impl Unpin for ConnectorTextBackground
impl UnwindSafe for ConnectorTextBackground
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