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: Effects

Implementations§

source§

impl Properties

source

pub fn perform_get_property<'gc, C: CustomTypes<S>, S: System<C>>( &self, key: S::RequestKey, prop: Property ) -> RequestStatus<'gc, C, S>

source

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>

source

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>

source

pub fn perform_clear_effects<'gc, 'a, C: CustomTypes<S>, S: System<C>>( &mut self, key: S::CommandKey ) -> CommandStatus<'gc, 'a, C, S>

source

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>

source

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>

source

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

source§

fn clone(&self) -> Properties

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for Properties

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for Properties

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more