#[non_exhaustive]#[repr(u32)]pub enum cef_context_menu_media_state_flags_t {
Show 14 variants
CM_MEDIAFLAG_NONE = 0,
CM_MEDIAFLAG_IN_ERROR = 1,
CM_MEDIAFLAG_PAUSED = 2,
CM_MEDIAFLAG_MUTED = 4,
CM_MEDIAFLAG_LOOP = 8,
CM_MEDIAFLAG_CAN_SAVE = 16,
CM_MEDIAFLAG_HAS_AUDIO = 32,
CM_MEDIAFLAG_CAN_TOGGLE_CONTROLS = 64,
CM_MEDIAFLAG_CONTROLS = 128,
CM_MEDIAFLAG_CAN_PRINT = 256,
CM_MEDIAFLAG_CAN_ROTATE = 512,
CM_MEDIAFLAG_CAN_PICTURE_IN_PICTURE = 1_024,
CM_MEDIAFLAG_PICTURE_IN_PICTURE = 2_048,
CM_MEDIAFLAG_CAN_LOOP = 4_096,
}Expand description
Supported context menu media state bit flags. These constants match their equivalents in Chromium’s ContextMenuData::MediaFlags and should not be renumbered.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CM_MEDIAFLAG_NONE = 0
CM_MEDIAFLAG_IN_ERROR = 1
CM_MEDIAFLAG_PAUSED = 2
CM_MEDIAFLAG_MUTED = 4
CM_MEDIAFLAG_LOOP = 8
CM_MEDIAFLAG_CAN_SAVE = 16
CM_MEDIAFLAG_HAS_AUDIO = 32
CM_MEDIAFLAG_CAN_TOGGLE_CONTROLS = 64
CM_MEDIAFLAG_CONTROLS = 128
CM_MEDIAFLAG_CAN_PRINT = 256
CM_MEDIAFLAG_CAN_ROTATE = 512
CM_MEDIAFLAG_CAN_PICTURE_IN_PICTURE = 1_024
CM_MEDIAFLAG_PICTURE_IN_PICTURE = 2_048
CM_MEDIAFLAG_CAN_LOOP = 4_096
Trait Implementations§
Source§fn clone(&self) -> cef_context_menu_media_state_flags_t
fn clone(&self) -> cef_context_menu_media_state_flags_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn eq(&self, other: &cef_context_menu_media_state_flags_t) -> bool
fn eq(&self, other: &cef_context_menu_media_state_flags_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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