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
impl ParamGestureBeginEvent
Sourcepub const fn new(time: u32, param_id: ClapId) -> ParamGestureBeginEvent
pub const fn new(time: u32, param_id: ClapId) -> ParamGestureBeginEvent
Creates a new ParamGestureBeginEvent 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) -> ParamGestureBeginEvent
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
impl AsRef<UnknownEvent> for ParamGestureBeginEvent
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 ParamGestureBeginEvent
impl Clone for ParamGestureBeginEvent
Source§fn clone(&self) -> ParamGestureBeginEvent
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParamGestureBeginEvent
Source§impl Debug for ParamGestureBeginEvent
impl Debug for ParamGestureBeginEvent
Source§impl Event for ParamGestureBeginEvent
impl Event for ParamGestureBeginEvent
Source§const TYPE_ID: u16 = CLAP_EVENT_PARAM_GESTURE_BEGIN
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>
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 ParamGestureBeginEvent
impl RefUnwindSafe for ParamGestureBeginEvent
impl Send for ParamGestureBeginEvent
impl Sync for ParamGestureBeginEvent
impl Unpin for ParamGestureBeginEvent
impl UnsafeUnpin for ParamGestureBeginEvent
impl UnwindSafe for ParamGestureBeginEvent
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