Skip to main content

ParamGestureBeginEvent

Struct ParamGestureBeginEvent 

Source
pub struct ParamGestureBeginEvent { /* private fields */ }
Expand description

Indicates that the user started adjusting a knob or parameter value.

For the event to raise when the user finishes this adjustment, see ParamGestureEndEvent.

Implementations§

Source§

impl ParamGestureBeginEvent

Source

pub const fn new(time: u32, param_id: ClapId) -> ParamGestureBeginEvent

Creates a new ParamGestureBeginEvent from a time stamp and a parameter ID.

Source

pub const fn param_id(&self) -> Option<ClapId>

Returns the parameter ID this event targets.

This returns None if the parameter ID is invalid.

Source

pub fn set_param_id(&mut self, param_id: ClapId)

Sets the parameter ID this event targets.

Source

pub const fn with_param_id(self, param_id: ClapId) -> ParamGestureBeginEvent

Builds a ParamGestureBeginEvent with the given parameter ID target, and returns it.

This is useful to use in a builder-style pattern.

Trait Implementations§

Source§

impl AsRef<UnknownEvent> for ParamGestureBeginEvent

Source§

fn as_ref(&self) -> &UnknownEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for ParamGestureBeginEvent

Source§

fn clone(&self) -> ParamGestureBeginEvent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for ParamGestureBeginEvent

Source§

impl Debug for ParamGestureBeginEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Event for ParamGestureBeginEvent

Source§

const TYPE_ID: u16 = CLAP_EVENT_PARAM_GESTURE_BEGIN

The raw event type identifier for this event type. Read more
Source§

type EventSpace<'a> = CoreEventSpace<'a>

The event space this event type is a part of.
Source§

fn flags(&self) -> EventFlags

Returns the EventFlags of this event.
Source§

fn set_flags(&mut self, flags: EventFlags)

Sets the EventFlags of this event.
Source§

fn with_flags(self, flags: EventFlags) -> Self

Builds an event with the given EventFlags, and returns it. Read more
Source§

fn time(&self) -> u32

Returns the time stamp of this event, in samples.
Source§

fn set_time(&mut self, time: u32)

Sets the time stamp of this event, in samples.
Source§

fn with_time(self, time: u32) -> Self

Builds an event with the given time stamp, and returns it. Read more
Source§

fn header(&self) -> &EventHeader<Self>

Returns a shared, immutable reference to this event’s header.
Source§

fn header_mut(&mut self) -> &mut EventHeader<Self>

Returns an exclusive, mutable reference to this event’s header.
Source§

fn as_unknown(&self) -> &UnknownEvent

Returns this event as a type-erased UnknownEvent.
Source§

fn raw_header(&self) -> &clap_event_header

Returns a shared, immutable reference to the raw, C-FFI compatible representation of this header’s event.
Source§

unsafe fn raw_header_mut(&mut self) -> &mut clap_event_header

Returns an exclusive, mutable reference to the raw, C-FFI compatible representation of this header’s event. Read more
Source§

impl PartialEq for ParamGestureBeginEvent

Source§

fn eq(&self, other: &ParamGestureBeginEvent) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> InputEventBuffer for T
where T: Event,

Source§

fn len(&self) -> u32

Returns the number of events in this list.
Source§

fn get(&self, index: u32) -> Option<&UnknownEvent>

Returns the event at the given index. 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> ToOwned for T
where T: Clone,

Source§

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>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.