Struct icrate::WebKit::DOMStyleSheet
source · #[repr(C)]pub struct DOMStyleSheet { /* private fields */ }WebKit and WebKit_DOMStyleSheet only.Implementations§
source§impl DOMStyleSheet
impl DOMStyleSheet
pub unsafe fn type(&self) -> Id<NSString>
Foundation_NSString only.pub unsafe fn disabled(&self) -> bool
pub unsafe fn setDisabled(&self, disabled: bool)
pub unsafe fn ownerNode(&self) -> Option<Id<DOMNode>>
WebKit_DOMNode only.pub unsafe fn parentStyleSheet(&self) -> Option<Id<DOMStyleSheet>>
pub unsafe fn href(&self) -> Id<NSString>
Foundation_NSString only.pub unsafe fn title(&self) -> Id<NSString>
Foundation_NSString only.pub unsafe fn media(&self) -> Option<Id<DOMMediaList>>
WebKit_DOMMediaList only.source§impl DOMStyleSheet
impl DOMStyleSheet
Methods declared on superclass DOMObject
Methods from Deref<Target = DOMObject>§
pub unsafe fn sheet(&self) -> Option<Id<DOMStyleSheet>>
WebKit_DOMObject only.Methods from Deref<Target = WebScriptObject>§
pub unsafe fn callWebScriptMethod_withArguments( &self, name: Option<&NSString>, arguments: Option<&NSArray> ) -> Option<Id<AnyObject>>
WebKit_WebScriptObject and Foundation_NSArray and Foundation_NSString only.pub unsafe fn evaluateWebScript( &self, script: Option<&NSString> ) -> Option<Id<AnyObject>>
WebKit_WebScriptObject and Foundation_NSString only.pub unsafe fn removeWebScriptKey(&self, name: Option<&NSString>)
WebKit_WebScriptObject and Foundation_NSString only.pub unsafe fn stringRepresentation(&self) -> Option<Id<NSString>>
WebKit_WebScriptObject and Foundation_NSString only.pub unsafe fn webScriptValueAtIndex( &self, index: c_uint ) -> Option<Id<AnyObject>>
WebKit_WebScriptObject only.pub unsafe fn setWebScriptValueAtIndex_value( &self, index: c_uint, value: Option<&AnyObject> )
WebKit_WebScriptObject only.pub unsafe fn setException(&self, description: Option<&NSString>)
WebKit_WebScriptObject and Foundation_NSString only.Methods from Deref<Target = AnyObject>§
sourcepub unsafe fn ivar_ptr<T>(&self, name: &str) -> *mut Twhere
T: Encode,
pub unsafe fn ivar_ptr<T>(&self, name: &str) -> *mut Twhere T: Encode,
Returns a pointer to the instance variable / ivar with the given name.
This is similar to UnsafeCell::get, see that for more information
on what is and isn’t safe to do.
Usually you will have defined the instance variable yourself with
ClassBuilder::add_ivar, the type of the ivar T must match the
type used in that.
Attempting to access or modify private implementation details of a class that you do no control using this is not supported, and may invoke undefined behaviour.
Library implementors are strongly encouraged to expose a safe interface to the ivar.
Panics
May panic if the object has no ivar with the given name. May also
panic if the type encoding of the ivar differs from the type encoding
of T.
This should purely seen as help while debugging and is not guaranteed
(e.g. it may be disabled when debug_assertions are off).
Safety
The object must have an instance variable with the given name, and it
must be of type T. Any invariants that the object have assumed about
the value of the instance variable must not be violated.
No thread syncronization is done on accesses to the variable, so you must ensure that any access to the returned pointer do not cause data races, and that Rust’s mutability rules are not otherwise violated.
sourcepub unsafe fn ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
pub unsafe fn ivar<T>(&self, name: &str) -> &Twhere T: Encode,
Returns a reference to the instance variable with the given name.
See AnyObject::ivar_ptr for more information, including on when
this panics.
Safety
The object must have an instance variable with the given name, and it
must be of type T.
No thread syncronization is done, so you must ensure that no other
thread is concurrently mutating the variable. This requirement can be
considered upheld if all mutation happens through
AnyObject::ivar_mut (since that takes &mut self).
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: Use AnyObject::ivar instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere T: Encode,
AnyObject::ivar instead.sourcepub unsafe fn ivar_mut<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
pub unsafe fn ivar_mut<T>(&mut self, name: &str) -> &mut Twhere T: Encode,
Returns a mutable reference to the ivar with the given name.
See AnyObject::ivar_ptr for more information, including on when
this panics.
Safety
The object must have an instance variable with the given name, and it
must be of type T.
This access happens through &mut self, which means we know it to be
the only reference, hence you do not need to do any work to ensure
that data races do not happen.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: Use AnyObject::ivar_mut instead.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere T: Encode,
AnyObject::ivar_mut instead.sourcepub unsafe fn set_ivar<T>(&mut self, name: &str, value: T)where
T: Encode,
pub unsafe fn set_ivar<T>(&mut self, name: &str, value: T)where T: Encode,
Sets the value of the ivar with the given name.
This is a shorthand for AnyObject::ivar_mut, see that for more
information.
Safety
Same as AnyObject::ivar_mut.
Trait Implementations§
source§impl AsMut<AnyObject> for DOMStyleSheet
impl AsMut<AnyObject> for DOMStyleSheet
source§impl AsMut<DOMObject> for DOMStyleSheet
impl AsMut<DOMObject> for DOMStyleSheet
source§impl AsMut<DOMStyleSheet> for DOMCSSStyleSheet
impl AsMut<DOMStyleSheet> for DOMCSSStyleSheet
source§fn as_mut(&mut self) -> &mut DOMStyleSheet
fn as_mut(&mut self) -> &mut DOMStyleSheet
source§impl AsMut<DOMStyleSheet> for DOMStyleSheet
impl AsMut<DOMStyleSheet> for DOMStyleSheet
source§impl AsMut<NSObject> for DOMStyleSheet
impl AsMut<NSObject> for DOMStyleSheet
source§impl AsMut<WebScriptObject> for DOMStyleSheet
impl AsMut<WebScriptObject> for DOMStyleSheet
source§fn as_mut(&mut self) -> &mut WebScriptObject
fn as_mut(&mut self) -> &mut WebScriptObject
source§impl AsRef<AnyObject> for DOMStyleSheet
impl AsRef<AnyObject> for DOMStyleSheet
source§impl AsRef<DOMObject> for DOMStyleSheet
impl AsRef<DOMObject> for DOMStyleSheet
source§impl AsRef<DOMStyleSheet> for DOMCSSStyleSheet
impl AsRef<DOMStyleSheet> for DOMCSSStyleSheet
source§fn as_ref(&self) -> &DOMStyleSheet
fn as_ref(&self) -> &DOMStyleSheet
source§impl AsRef<DOMStyleSheet> for DOMStyleSheet
impl AsRef<DOMStyleSheet> for DOMStyleSheet
source§impl AsRef<NSObject> for DOMStyleSheet
impl AsRef<NSObject> for DOMStyleSheet
source§impl AsRef<WebScriptObject> for DOMStyleSheet
impl AsRef<WebScriptObject> for DOMStyleSheet
source§fn as_ref(&self) -> &WebScriptObject
fn as_ref(&self) -> &WebScriptObject
source§impl Borrow<AnyObject> for DOMStyleSheet
impl Borrow<AnyObject> for DOMStyleSheet
source§impl Borrow<DOMObject> for DOMStyleSheet
impl Borrow<DOMObject> for DOMStyleSheet
source§impl Borrow<DOMStyleSheet> for DOMCSSStyleSheet
impl Borrow<DOMStyleSheet> for DOMCSSStyleSheet
source§fn borrow(&self) -> &DOMStyleSheet
fn borrow(&self) -> &DOMStyleSheet
source§impl Borrow<NSObject> for DOMStyleSheet
impl Borrow<NSObject> for DOMStyleSheet
source§impl Borrow<WebScriptObject> for DOMStyleSheet
impl Borrow<WebScriptObject> for DOMStyleSheet
source§fn borrow(&self) -> &WebScriptObject
fn borrow(&self) -> &WebScriptObject
source§impl BorrowMut<AnyObject> for DOMStyleSheet
impl BorrowMut<AnyObject> for DOMStyleSheet
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
source§impl BorrowMut<DOMObject> for DOMStyleSheet
impl BorrowMut<DOMObject> for DOMStyleSheet
source§fn borrow_mut(&mut self) -> &mut DOMObject
fn borrow_mut(&mut self) -> &mut DOMObject
source§impl BorrowMut<DOMStyleSheet> for DOMCSSStyleSheet
impl BorrowMut<DOMStyleSheet> for DOMCSSStyleSheet
source§fn borrow_mut(&mut self) -> &mut DOMStyleSheet
fn borrow_mut(&mut self) -> &mut DOMStyleSheet
source§impl BorrowMut<NSObject> for DOMStyleSheet
impl BorrowMut<NSObject> for DOMStyleSheet
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
source§impl BorrowMut<WebScriptObject> for DOMStyleSheet
impl BorrowMut<WebScriptObject> for DOMStyleSheet
source§fn borrow_mut(&mut self) -> &mut WebScriptObject
fn borrow_mut(&mut self) -> &mut WebScriptObject
source§impl ClassType for DOMStyleSheet
impl ClassType for DOMStyleSheet
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
source§const NAME: &'static str = _
const NAME: &'static str = _
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
source§impl Debug for DOMStyleSheet
impl Debug for DOMStyleSheet
source§impl Deref for DOMStyleSheet
impl Deref for DOMStyleSheet
source§impl DerefMut for DOMStyleSheet
impl DerefMut for DOMStyleSheet
source§impl Hash for DOMStyleSheet
impl Hash for DOMStyleSheet
source§impl NSCopying for DOMStyleSheet
impl NSCopying for DOMStyleSheet
source§fn copy(&self) -> Id<<Self::Mutability as Copyhelper<Self>>::CopyOutput>where
Self: Sized + ClassType,
Self::Mutability: Copyhelper<Self>,
fn copy(&self) -> Id<<Self::Mutability as Copyhelper<Self>>::CopyOutput>where Self: Sized + ClassType, Self::Mutability: Copyhelper<Self>,
source§impl NSObjectProtocol for DOMStyleSheet
impl NSObjectProtocol for DOMStyleSheet
source§impl PartialEq<DOMStyleSheet> for DOMStyleSheet
impl PartialEq<DOMStyleSheet> for DOMStyleSheet
source§fn eq(&self, other: &DOMStyleSheet) -> bool
fn eq(&self, other: &DOMStyleSheet) -> bool
self and other values to be equal, and is used
by ==.