pub struct GraphNodeWidget<'a, NodeData, DataType, ValueType> {
pub position: &'a mut Pos2,
pub orientation: &'a mut NodeOrientation,
pub graph: &'a mut Graph<NodeData, DataType, ValueType>,
pub port_locations: &'a mut PortLocations,
pub node_rects: &'a mut NodeRects,
pub node_id: NodeId,
pub ongoing_drag: Option<(NodeId, AnyParameterId)>,
pub selected: bool,
pub pan: Vec2,
}Fields§
§position: &'a mut Pos2§orientation: &'a mut NodeOrientation§graph: &'a mut Graph<NodeData, DataType, ValueType>§port_locations: &'a mut PortLocations§node_rects: &'a mut NodeRects§node_id: NodeId§ongoing_drag: Option<(NodeId, AnyParameterId)>§selected: bool§pan: Vec2Implementations§
Source§impl<NodeData, DataType, ValueType, UserResponse, UserState> GraphNodeWidget<'_, NodeData, DataType, ValueType>where
NodeData: NodeDataTrait<Response = UserResponse, UserState = UserState, DataType = DataType, ValueType = ValueType>,
UserResponse: UserResponseTrait,
ValueType: WidgetValueTrait<Response = UserResponse, UserState = UserState, NodeData = NodeData>,
DataType: DataTypeTrait<UserState>,
impl<NodeData, DataType, ValueType, UserResponse, UserState> GraphNodeWidget<'_, NodeData, DataType, ValueType>where
NodeData: NodeDataTrait<Response = UserResponse, UserState = UserState, DataType = DataType, ValueType = ValueType>,
UserResponse: UserResponseTrait,
ValueType: WidgetValueTrait<Response = UserResponse, UserState = UserState, NodeData = NodeData>,
DataType: DataTypeTrait<UserState>,
pub const MAX_NODE_SIZE: [f32; 2]
pub fn show( self, pan_zoom: &PanZoom, ui: &mut Ui, user_state: &mut UserState, ) -> Vec<NodeResponse<UserResponse, NodeData>>
Auto Trait Implementations§
impl<'a, NodeData, DataType, ValueType> Freeze for GraphNodeWidget<'a, NodeData, DataType, ValueType>
impl<'a, NodeData, DataType, ValueType> RefUnwindSafe for GraphNodeWidget<'a, NodeData, DataType, ValueType>
impl<'a, NodeData, DataType, ValueType> Send for GraphNodeWidget<'a, NodeData, DataType, ValueType>
impl<'a, NodeData, DataType, ValueType> Sync for GraphNodeWidget<'a, NodeData, DataType, ValueType>
impl<'a, NodeData, DataType, ValueType> Unpin for GraphNodeWidget<'a, NodeData, DataType, ValueType>
impl<'a, NodeData, DataType, ValueType> !UnwindSafe for GraphNodeWidget<'a, NodeData, DataType, ValueType>
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