pub struct LinkData {
pub accent: i32,
pub color: Color,
pub dimmed: bool,
pub end_pin_id: i32,
pub id: i32,
pub line_width: f32,
pub selected: bool,
pub start_pin_id: i32,
pub status: i32,
}Fields§
§accent: i32§color: Color§dimmed: bool§end_pin_id: i32§id: i32§line_width: f32§selected: bool§start_pin_id: i32§status: i32Implementations§
Trait Implementations§
Source§impl LinkModel for LinkData
The Slint LinkData row is the canonical link type, so the library
implements LinkModel for it directly.
impl LinkModel for LinkData
The Slint LinkData row is the canonical link type, so the library
implements LinkModel for it directly.
Before node-editor.slint was compiled as a library module, LinkData was
generated separately into each consumer crate and every consumer wrote this
impl itself. Now the type is ours, so the orphan rule puts the impl here —
and consumers stop repeating it.
Source§fn start_pin_id(&self) -> i32
fn start_pin_id(&self) -> i32
Pin ID where the link starts (typically an output pin)
Source§fn end_pin_id(&self) -> i32
fn end_pin_id(&self) -> i32
Pin ID where the link ends (typically an input pin)
Source§fn color(&self) -> Color
fn color(&self) -> Color
Color for rendering the link (default: white).
Used as fallback when
status() returns -1 (no status).Source§fn line_width(&self) -> f32
fn line_width(&self) -> f32
Line width in pixels for rendering the link (default: 2.0)
impl StructuralPartialEq for LinkData
Auto Trait Implementations§
impl Freeze for LinkData
impl RefUnwindSafe for LinkData
impl Send for LinkData
impl Sync for LinkData
impl Unpin for LinkData
impl UnsafeUnpin for LinkData
impl UnwindSafe for LinkData
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