pub struct Node {Show 33 fields
pub node_type: NodeType,
pub is_static: bool,
pub is_stretchy: bool,
pub is_smart_stretch: bool,
pub do_not_apply_smart_stretch: bool,
pub use_segment_color: bool,
pub use_circle_outline: bool,
pub circle_is_hollow: bool,
pub use_gradient: bool,
pub reverse_gradient: bool,
pub gradient_mode: i16,
pub use_segment_scale: bool,
pub local_x: f32,
pub local_y: f32,
pub scale: f32,
pub default_length: f32,
pub length: f32,
pub default_thickness: i32,
pub thickness: i32,
pub segment_curve_radius_and_default_curve_radius: i32,
pub curve_circulization: bool,
pub segment_curve_polyfill_precision: i16,
pub half_arc: bool,
pub right_triangle_direction: i16,
pub triangle_upside_down: bool,
pub trapezoid_top_thickness_ratio: f32,
pub num_polygon_vertices: i16,
pub default_local_angle: f32,
pub local_angle: f32,
pub default_angle: f32,
pub color: Color,
pub gradient_color: Color,
pub circle_outline_color: Color,
/* private fields */
}
Fields§
§node_type: NodeType
§is_static: bool
§is_stretchy: bool
§is_smart_stretch: bool
§do_not_apply_smart_stretch: bool
§use_segment_color: bool
§use_circle_outline: bool
§circle_is_hollow: bool
§use_gradient: bool
§reverse_gradient: bool
§gradient_mode: i16
§use_segment_scale: bool
§local_x: f32
§local_y: f32
§scale: f32
§default_length: f32
§length: f32
§default_thickness: i32
§thickness: i32
§segment_curve_radius_and_default_curve_radius: i32
§curve_circulization: bool
§segment_curve_polyfill_precision: i16
§half_arc: bool
§right_triangle_direction: i16
§triangle_upside_down: bool
§trapezoid_top_thickness_ratio: f32
§num_polygon_vertices: i16
§default_local_angle: f32
§local_angle: f32
§default_angle: f32
§color: Color
§gradient_color: Color
§circle_outline_color: Color
Implementations§
Source§impl Node
impl Node
pub fn from_options(options: NodeOptions) -> Self
pub fn to_options(&self) -> NodeOptions
pub fn build_serializable_tree( &self, graph: &Graph<Rc<RefCell<Node>>, ()>, current: NodeIndex, ) -> SerializableNode
pub fn get_draw_order_index(&self) -> DrawOrderIndex
pub fn update<F>(rc_node: &Rc<RefCell<Self>>, f: F)where
F: FnOnce(&mut Self),
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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