pub struct ParamGestureEndEvent { /* private fields */ }Expand description
Indicates that the user finished adjusting a knob or parameter value.
For the event to raise when the user starts this adjustment, see ParamGestureBeginEvent.
Implementations§
Source§impl ParamGestureEndEvent
impl ParamGestureEndEvent
Sourcepub const fn new(time: u32, param_id: ClapId) -> ParamGestureEndEvent
pub const fn new(time: u32, param_id: ClapId) -> ParamGestureEndEvent
Creates a new ParamGestureEndEvent from a time stamp and a parameter ID.
Sourcepub const fn param_id(&self) -> Option<ClapId>
pub const fn param_id(&self) -> Option<ClapId>
Returns the parameter ID this event targets.
This returns None if the parameter ID is invalid.
Sourcepub fn set_param_id(&mut self, param_id: ClapId)
pub fn set_param_id(&mut self, param_id: ClapId)
Sets the parameter ID this event targets.
Sourcepub const fn with_param_id(self, param_id: ClapId) -> ParamGestureEndEvent
pub const fn with_param_id(self, param_id: ClapId) -> ParamGestureEndEvent
Builds a ParamGestureEndEvent 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 ParamGestureEndEvent
impl AsRef<UnknownEvent> for ParamGestureEndEvent
Source§fn as_ref(&self) -> &UnknownEvent
fn as_ref(&self) -> &UnknownEvent
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ParamGestureEndEvent
impl Clone for ParamGestureEndEvent
Source§fn clone(&self) -> ParamGestureEndEvent
fn clone(&self) -> ParamGestureEndEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParamGestureEndEvent
Source§impl Debug for ParamGestureEndEvent
impl Debug for ParamGestureEndEvent
Source§impl Event for ParamGestureEndEvent
impl Event for ParamGestureEndEvent
Source§const TYPE_ID: u16 = CLAP_EVENT_PARAM_GESTURE_END
const TYPE_ID: u16 = CLAP_EVENT_PARAM_GESTURE_END
The raw event type identifier for this event type. Read more
Source§type EventSpace<'a> = CoreEventSpace<'a>
type EventSpace<'a> = CoreEventSpace<'a>
The event space this event type is a part of.
Source§fn flags(&self) -> EventFlags
fn flags(&self) -> EventFlags
Returns the
EventFlags of this event.Source§fn set_flags(&mut self, flags: EventFlags)
fn set_flags(&mut self, flags: EventFlags)
Sets the
EventFlags of this event.Source§fn with_flags(self, flags: EventFlags) -> Self
fn with_flags(self, flags: EventFlags) -> Self
Builds an event with the given
EventFlags, and returns it. Read moreSource§fn with_time(self, time: u32) -> Self
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>
fn header(&self) -> &EventHeader<Self>
Returns a shared, immutable reference to this event’s header.
Source§fn header_mut(&mut self) -> &mut EventHeader<Self>
fn header_mut(&mut self) -> &mut EventHeader<Self>
Returns an exclusive, mutable reference to this event’s header.
Source§fn as_unknown(&self) -> &UnknownEvent
fn as_unknown(&self) -> &UnknownEvent
Returns this event as a type-erased
UnknownEvent.Source§fn raw_header(&self) -> &clap_event_header
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
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
Auto Trait Implementations§
impl Freeze for ParamGestureEndEvent
impl RefUnwindSafe for ParamGestureEndEvent
impl Send for ParamGestureEndEvent
impl Sync for ParamGestureEndEvent
impl Unpin for ParamGestureEndEvent
impl UnsafeUnpin for ParamGestureEndEvent
impl UnwindSafe for ParamGestureEndEvent
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