pub struct VfxNode {Show 16 fields
pub id: u64,
pub kind: VfxNodeKind,
pub position: Vec2,
pub size: Vec2,
pub title_override: Option<String>,
pub inputs: Vec<VfxPort>,
pub outputs: Vec<VfxPort>,
pub param_values: HashMap<String, VfxValue>,
pub comment: String,
pub collapsed: bool,
pub enabled: bool,
pub preview_enabled: bool,
pub error_message: Option<String>,
pub custom_hlsl_code: String,
pub exposed_param_name: String,
pub builtin_attribute: BuiltinAttribute,
}Fields§
§id: u64§kind: VfxNodeKind§position: Vec2§size: Vec2§title_override: Option<String>§inputs: Vec<VfxPort>§outputs: Vec<VfxPort>§param_values: HashMap<String, VfxValue>§comment: String§collapsed: bool§enabled: bool§preview_enabled: bool§error_message: Option<String>§custom_hlsl_code: String§exposed_param_name: String§builtin_attribute: BuiltinAttributeImplementations§
Source§impl VfxNode
impl VfxNode
pub fn new(kind: VfxNodeKind, position: Vec2) -> Self
pub fn label(&self) -> &str
pub fn recalculate_size(&mut self)
pub fn input_port_position(&self, index: usize) -> Vec2
pub fn output_port_position(&self, index: usize) -> Vec2
pub fn contains_point(&self, pt: Vec2) -> bool
pub fn set_param(&mut self, name: &str, value: VfxValue)
pub fn get_param(&self, name: &str) -> Option<&VfxValue>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VfxNode
impl RefUnwindSafe for VfxNode
impl Send for VfxNode
impl Sync for VfxNode
impl Unpin for VfxNode
impl UnsafeUnpin for VfxNode
impl UnwindSafe for VfxNode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.