pub struct ContextMenuItem {
pub item_id: u32,
pub name: String,
pub tag: i32,
pub flags: i32,
}Expand description
One entry in a context menu a plugin asked the host to display.
The item_id is assigned by the host for one popup and is the value to pass
to Plugin::execute_context_menu_item. The plugin’s own tag is included for diagnostics;
it is not necessarily unique.
Fields§
§item_id: u32Host-assigned id, unique within the containing popup.
name: StringPlugin-provided menu label.
tag: i32Plugin-provided command tag.
flags: i32Raw VST3 IContextMenuItem::Flags bits.
Implementations§
Source§impl ContextMenuItem
impl ContextMenuItem
Sourcepub fn is_separator(&self) -> bool
pub fn is_separator(&self) -> bool
Whether this entry is a separator.
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Whether this entry is disabled.
Sourcepub fn is_checked(&self) -> bool
pub fn is_checked(&self) -> bool
Whether this entry is checked.
Sourcepub fn is_group_start(&self) -> bool
pub fn is_group_start(&self) -> bool
Whether this entry begins a logical group.
Sourcepub fn is_group_end(&self) -> bool
pub fn is_group_end(&self) -> bool
Whether this entry ends a logical group.
Trait Implementations§
Source§impl Clone for ContextMenuItem
impl Clone for ContextMenuItem
Source§fn clone(&self) -> ContextMenuItem
fn clone(&self) -> ContextMenuItem
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 moreSource§impl Debug for ContextMenuItem
impl Debug for ContextMenuItem
Source§impl<'de> Deserialize<'de> for ContextMenuItem
impl<'de> Deserialize<'de> for ContextMenuItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContextMenuItem
Source§impl PartialEq for ContextMenuItem
impl PartialEq for ContextMenuItem
Source§impl Serialize for ContextMenuItem
impl Serialize for ContextMenuItem
impl StructuralPartialEq for ContextMenuItem
Auto Trait Implementations§
impl Freeze for ContextMenuItem
impl RefUnwindSafe for ContextMenuItem
impl Send for ContextMenuItem
impl Sync for ContextMenuItem
impl Unpin for ContextMenuItem
impl UnsafeUnpin for ContextMenuItem
impl UnwindSafe for ContextMenuItem
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