Struct netsblox_vm::runtime::Properties
source · pub struct Properties {Show 14 fields
pub pos: (Number, Number),
pub heading: Number,
pub visible: bool,
pub size: Number,
pub pen_down: bool,
pub pen_size: Number,
pub pen_color_h: Number,
pub pen_color_s: Number,
pub pen_color_v: Number,
pub pen_color_t: Number,
pub tempo: Number,
pub volume: Number,
pub balance: Number,
pub effects: Effects,
}Expand description
A collection of properties related to an entity.
Fields§
§pos: (Number, Number)§heading: Number§visible: bool§size: Number§pen_down: bool§pen_size: Number§pen_color_h: Number§pen_color_s: Number§pen_color_v: Number§pen_color_t: Number§tempo: Number§volume: Number§balance: Number§effects: EffectsImplementations§
source§impl Properties
impl Properties
pub fn perform_get_property<'gc, C: CustomTypes<S>, S: System<C>>( &self, key: S::RequestKey, prop: Property ) -> RequestStatus<'gc, C, S>
pub fn perform_set_property<'gc, 'a, C: CustomTypes<S>, S: System<C>>( &mut self, key: S::CommandKey, prop: Property, value: Value<'gc, C, S> ) -> CommandStatus<'gc, 'a, C, S>
pub fn perform_change_property<'gc, 'a, C: CustomTypes<S>, S: System<C>>( &mut self, key: S::CommandKey, prop: Property, delta: Value<'gc, C, S> ) -> CommandStatus<'gc, 'a, C, S>
pub fn perform_clear_effects<'gc, 'a, C: CustomTypes<S>, S: System<C>>( &mut self, key: S::CommandKey ) -> CommandStatus<'gc, 'a, C, S>
pub fn perform_goto_xy<'gc, 'a, C: CustomTypes<S>, S: System<C>>( &mut self, key: S::CommandKey, x: Number, y: Number ) -> CommandStatus<'gc, 'a, C, S>
pub fn perform_point_towards_xy<'gc, 'a, C: CustomTypes<S>, S: System<C>>( &mut self, key: S::CommandKey, x: Number, y: Number ) -> CommandStatus<'gc, 'a, C, S>
pub fn perform_forward<'gc, 'a, C: CustomTypes<S>, S: System<C>>( &mut self, key: S::CommandKey, dist: Number ) -> CommandStatus<'gc, 'a, C, S>
Trait Implementations§
source§impl Clone for Properties
impl Clone for Properties
source§fn clone(&self) -> Properties
fn clone(&self) -> Properties
Returns a copy 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 Default for Properties
impl Default for Properties
impl Copy for Properties
Auto Trait Implementations§
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
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