pub struct PatternPaint {
pub visible: Option<bool>,
pub opacity: Option<f64>,
pub blend_mode: BlendMode,
pub type: Type,
pub source_node_id: String,
pub tile_type: TileType,
pub scaling_factor: f64,
pub spacing: Box<Vector>,
pub horizontal_alignment: HorizontalAlignment,
pub vertical_alignment: VerticalAlignment,
}
Fields§
§visible: Option<bool>
Is the paint enabled?
opacity: Option<f64>
Overall opacity of paint (colors within the paint can also have opacity values which would blend with this)
blend_mode: BlendMode
How this node blends with nodes behind it in the scene
type: Type
The string literal "PATTERN" representing the paint’s type. Always check the type
before reading other properties.
source_node_id: String
The node id of the source node for the pattern
tile_type: TileType
The tile type for the pattern
scaling_factor: f64
The scaling factor for the pattern
spacing: Box<Vector>
The spacing for the pattern
horizontal_alignment: HorizontalAlignment
The horizontal alignment for the pattern
vertical_alignment: VerticalAlignment
The vertical alignment for the pattern
Implementations§
Source§impl PatternPaint
impl PatternPaint
pub fn new( blend_mode: BlendMode, type: Type, source_node_id: String, tile_type: TileType, scaling_factor: f64, spacing: Vector, horizontal_alignment: HorizontalAlignment, vertical_alignment: VerticalAlignment, ) -> PatternPaint
Trait Implementations§
Source§impl Clone for PatternPaint
impl Clone for PatternPaint
Source§fn clone(&self) -> PatternPaint
fn clone(&self) -> PatternPaint
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 PatternPaint
impl Debug for PatternPaint
Source§impl Default for PatternPaint
impl Default for PatternPaint
Source§fn default() -> PatternPaint
fn default() -> PatternPaint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatternPaint
impl<'de> Deserialize<'de> for PatternPaint
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 PatternPaint
impl PartialEq for PatternPaint
Source§impl Serialize for PatternPaint
impl Serialize for PatternPaint
impl StructuralPartialEq for PatternPaint
Auto Trait Implementations§
impl Freeze for PatternPaint
impl RefUnwindSafe for PatternPaint
impl Send for PatternPaint
impl Sync for PatternPaint
impl Unpin for PatternPaint
impl UnwindSafe for PatternPaint
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