#[repr(transparent)]pub struct SDL_TrayEntryFlags(pub Uint32);Expand description
Flags that control the creation of system tray entries.
Some of these flags are required; exactly one of them must be specified at the time a tray entry is created. Other flags are optional; zero or more of those can be OR’ed together with the required flag.
§Availability
This datatype is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
BUTTON | SDL_TRAYENTRY_BUTTON | Make the entry a simple button. Required. |
CHECKBOX | SDL_TRAYENTRY_CHECKBOX | Make the entry a checkbox. Required. |
SUBMENU | SDL_TRAYENTRY_SUBMENU | Prepare the entry to have a submenu. Required |
DISABLED | SDL_TRAYENTRY_DISABLED | Make the entry disabled. Optional. |
CHECKED | SDL_TRAYENTRY_CHECKED | Make the entry checked. This is valid only for checkboxes. Optional. |
Tuple Fields§
§0: Uint32Implementations§
Trait Implementations§
Source§impl BitAnd for SDL_TrayEntryFlags
impl BitAnd for SDL_TrayEntryFlags
Source§impl BitAndAssign for SDL_TrayEntryFlags
impl BitAndAssign for SDL_TrayEntryFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for SDL_TrayEntryFlags
impl BitOr for SDL_TrayEntryFlags
Source§impl BitOrAssign for SDL_TrayEntryFlags
impl BitOrAssign for SDL_TrayEntryFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for SDL_TrayEntryFlags
impl BitXor for SDL_TrayEntryFlags
Source§impl BitXorAssign for SDL_TrayEntryFlags
impl BitXorAssign for SDL_TrayEntryFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for SDL_TrayEntryFlags
impl Clone for SDL_TrayEntryFlags
Source§fn clone(&self) -> SDL_TrayEntryFlags
fn clone(&self) -> SDL_TrayEntryFlags
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§impl Debug for SDL_TrayEntryFlags
Available on crate feature debug-impls only.
impl Debug for SDL_TrayEntryFlags
Available on crate feature
debug-impls only.Source§impl Default for SDL_TrayEntryFlags
impl Default for SDL_TrayEntryFlags
Source§fn default() -> SDL_TrayEntryFlags
fn default() -> SDL_TrayEntryFlags
Returns the “default value” for a type. Read more
Source§impl From<SDL_TrayEntryFlags> for Uint32
impl From<SDL_TrayEntryFlags> for Uint32
Source§fn from(value: SDL_TrayEntryFlags) -> Self
fn from(value: SDL_TrayEntryFlags) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_TrayEntryFlags
Available on crate feature metadata only.
impl GroupMetadata for SDL_TrayEntryFlags
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_TrayEntryFlags
impl Hash for SDL_TrayEntryFlags
Source§impl Not for SDL_TrayEntryFlags
impl Not for SDL_TrayEntryFlags
Source§impl PartialEq<SDL_TrayEntryFlags> for Uint32
impl PartialEq<SDL_TrayEntryFlags> for Uint32
Source§impl PartialEq<u32> for SDL_TrayEntryFlags
impl PartialEq<u32> for SDL_TrayEntryFlags
Source§impl PartialEq for SDL_TrayEntryFlags
impl PartialEq for SDL_TrayEntryFlags
impl Copy for SDL_TrayEntryFlags
impl Eq for SDL_TrayEntryFlags
impl StructuralPartialEq for SDL_TrayEntryFlags
Auto Trait Implementations§
impl Freeze for SDL_TrayEntryFlags
impl RefUnwindSafe for SDL_TrayEntryFlags
impl Send for SDL_TrayEntryFlags
impl Sync for SDL_TrayEntryFlags
impl Unpin for SDL_TrayEntryFlags
impl UnwindSafe for SDL_TrayEntryFlags
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