#[repr(C)]pub struct CFUserNotification { /* private fields */ }
Available on crate feature
CFUserNotification
only.Expand description
Implementations§
Source§impl CFUserNotification
impl CFUserNotification
pub unsafe fn new( allocator: Option<&CFAllocator>, timeout: CFTimeInterval, flags: CFOptionFlags, error: *mut i32, dictionary: Option<&CFDictionary>, ) -> Option<CFRetained<CFUserNotification>>
Available on crate features
CFDate
and CFDictionary
only.pub unsafe fn receive_response( self: &CFUserNotification, timeout: CFTimeInterval, response_flags: *mut CFOptionFlags, ) -> i32
Available on crate feature
CFDate
only.pub unsafe fn response_value( self: &CFUserNotification, key: Option<&CFString>, idx: CFIndex, ) -> Option<CFRetained<CFString>>
pub fn response_dictionary( self: &CFUserNotification, ) -> Option<CFRetained<CFDictionary>>
Available on crate feature
CFDictionary
only.pub unsafe fn update( self: &CFUserNotification, timeout: CFTimeInterval, flags: CFOptionFlags, dictionary: Option<&CFDictionary>, ) -> i32
Available on crate features
CFDate
and CFDictionary
only.pub fn cancel(self: &CFUserNotification) -> i32
pub unsafe fn new_run_loop_source( allocator: Option<&CFAllocator>, user_notification: Option<&CFUserNotification>, callout: CFUserNotificationCallBack, order: CFIndex, ) -> Option<CFRetained<CFRunLoopSource>>
Available on crate feature
CFRunLoop
only.pub fn display_notice( timeout: CFTimeInterval, flags: CFOptionFlags, icon_url: Option<&CFURL>, sound_url: Option<&CFURL>, localization_url: Option<&CFURL>, alert_header: Option<&CFString>, alert_message: Option<&CFString>, default_button_title: Option<&CFString>, ) -> i32
Available on crate features
CFDate
and CFURL
only.pub unsafe fn display_alert( timeout: CFTimeInterval, flags: CFOptionFlags, icon_url: Option<&CFURL>, sound_url: Option<&CFURL>, localization_url: Option<&CFURL>, alert_header: Option<&CFString>, alert_message: Option<&CFString>, default_button_title: Option<&CFString>, alternate_button_title: Option<&CFString>, other_button_title: Option<&CFString>, response_flags: *mut CFOptionFlags, ) -> i32
Available on crate features
CFDate
and CFURL
only.Source§impl CFUserNotification
impl CFUserNotification
pub extern "C" fn check_box_checked(i: CFIndex) -> CFOptionFlags
pub extern "C" fn secure_text_field(i: CFIndex) -> CFOptionFlags
pub fn pop_up_selection(n: CFIndex) -> CFOptionFlags
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T: ConcreteType>(&self) -> Option<&T>
pub fn downcast_ref<T: ConcreteType>(&self) -> Option<&T>
Attempt to downcast the type to that of type T
.
This is the reference-variant. Use CFRetained::downcast
if you
want to convert a retained type. See also ConcreteType
for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
pub fn retain_count(&self) -> usize
Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumber
s, small CFString
s etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX
in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for CFUserNotification
impl AsRef<AnyObject> for CFUserNotification
Source§impl AsRef<CFType> for CFUserNotification
impl AsRef<CFType> for CFUserNotification
Source§impl AsRef<CFUserNotification> for CFUserNotification
impl AsRef<CFUserNotification> for CFUserNotification
Source§impl Borrow<AnyObject> for CFUserNotification
impl Borrow<AnyObject> for CFUserNotification
Source§impl Borrow<CFType> for CFUserNotification
impl Borrow<CFType> for CFUserNotification
Source§impl ConcreteType for CFUserNotification
impl ConcreteType for CFUserNotification
Source§impl Debug for CFUserNotification
impl Debug for CFUserNotification
Source§impl Deref for CFUserNotification
impl Deref for CFUserNotification
Source§impl Hash for CFUserNotification
impl Hash for CFUserNotification
Source§impl Message for CFUserNotification
impl Message for CFUserNotification
Source§impl PartialEq for CFUserNotification
impl PartialEq for CFUserNotification
Source§impl RefEncode for CFUserNotification
impl RefEncode for CFUserNotification
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
Source§impl Type for CFUserNotification
impl Type for CFUserNotification
Source§fn retain(&self) -> CFRetained<Self> ⓘwhere
Self: Sized,
fn retain(&self) -> CFRetained<Self> ⓘwhere
Self: Sized,
Increment the reference count of the receiver. Read more
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
👎Deprecated: this is redundant
Helper for easier transition from the
core-foundation
crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
👎Deprecated: use CFRetained::retain
Helper for easier transition from the
core-foundation
crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
👎Deprecated: this is redundant (CF types deref to CFType)
Helper for easier transition from the
core-foundation
crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
👎Deprecated: use CFRetained::from_raw
Helper for easier transition from the
core-foundation
crate. Read moreimpl Eq for CFUserNotification
Auto Trait Implementations§
impl !Freeze for CFUserNotification
impl !RefUnwindSafe for CFUserNotification
impl !Send for CFUserNotification
impl !Sync for CFUserNotification
impl !Unpin for CFUserNotification
impl !UnwindSafe for CFUserNotification
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