Struct objc2_web_kit::WebPreferences
source ยท #[repr(C)]pub struct WebPreferences { /* private fields */ }
๐Deprecated
Available on crate feature
WebPreferences
only.Implementationsยง
sourceยงimpl WebPreferences
impl WebPreferences
pub unsafe fn standardPreferences() -> Option<Retained<WebPreferences>>
๐Deprecated
pub unsafe fn initWithIdentifier( this: Allocated<Self>, an_identifier: Option<&NSString> ) -> Option<Retained<Self>>
๐Deprecated
pub unsafe fn identifier(&self) -> Retained<NSString>
๐Deprecated
pub unsafe fn standardFontFamily(&self) -> Retained<NSString>
๐Deprecated
pub unsafe fn setStandardFontFamily( &self, standard_font_family: Option<&NSString> )
๐Deprecated
pub unsafe fn fixedFontFamily(&self) -> Retained<NSString>
๐Deprecated
pub unsafe fn setFixedFontFamily(&self, fixed_font_family: Option<&NSString>)
๐Deprecated
pub unsafe fn serifFontFamily(&self) -> Retained<NSString>
๐Deprecated
pub unsafe fn setSerifFontFamily(&self, serif_font_family: Option<&NSString>)
๐Deprecated
pub unsafe fn sansSerifFontFamily(&self) -> Retained<NSString>
๐Deprecated
pub unsafe fn setSansSerifFontFamily( &self, sans_serif_font_family: Option<&NSString> )
๐Deprecated
pub unsafe fn cursiveFontFamily(&self) -> Retained<NSString>
๐Deprecated
pub unsafe fn setCursiveFontFamily( &self, cursive_font_family: Option<&NSString> )
๐Deprecated
pub unsafe fn fantasyFontFamily(&self) -> Retained<NSString>
๐Deprecated
pub unsafe fn setFantasyFontFamily( &self, fantasy_font_family: Option<&NSString> )
๐Deprecated
pub unsafe fn defaultFontSize(&self) -> c_int
๐Deprecated
pub unsafe fn setDefaultFontSize(&self, default_font_size: c_int)
๐Deprecated
pub unsafe fn defaultFixedFontSize(&self) -> c_int
๐Deprecated
pub unsafe fn setDefaultFixedFontSize(&self, default_fixed_font_size: c_int)
๐Deprecated
pub unsafe fn minimumFontSize(&self) -> c_int
๐Deprecated
pub unsafe fn setMinimumFontSize(&self, minimum_font_size: c_int)
๐Deprecated
pub unsafe fn minimumLogicalFontSize(&self) -> c_int
๐Deprecated
pub unsafe fn setMinimumLogicalFontSize(&self, minimum_logical_font_size: c_int)
๐Deprecated
pub unsafe fn defaultTextEncodingName(&self) -> Retained<NSString>
๐Deprecated
pub unsafe fn setDefaultTextEncodingName( &self, default_text_encoding_name: Option<&NSString> )
๐Deprecated
pub unsafe fn userStyleSheetEnabled(&self) -> bool
๐Deprecated
pub unsafe fn setUserStyleSheetEnabled(&self, user_style_sheet_enabled: bool)
๐Deprecated
pub unsafe fn userStyleSheetLocation(&self) -> Option<Retained<NSURL>>
๐Deprecated
pub unsafe fn setUserStyleSheetLocation( &self, user_style_sheet_location: Option<&NSURL> )
๐Deprecated
pub unsafe fn isJavaEnabled(&self) -> bool
๐Deprecated
pub unsafe fn setJavaEnabled(&self, java_enabled: bool)
๐Deprecated
pub unsafe fn isJavaScriptEnabled(&self) -> bool
๐Deprecated
pub unsafe fn setJavaScriptEnabled(&self, java_script_enabled: bool)
๐Deprecated
pub unsafe fn javaScriptCanOpenWindowsAutomatically(&self) -> bool
๐Deprecated
pub unsafe fn setJavaScriptCanOpenWindowsAutomatically( &self, java_script_can_open_windows_automatically: bool )
๐Deprecated
pub unsafe fn arePlugInsEnabled(&self) -> bool
๐Deprecated
pub unsafe fn setPlugInsEnabled(&self, plug_ins_enabled: bool)
๐Deprecated
pub unsafe fn allowsAnimatedImages(&self) -> bool
๐Deprecated
pub unsafe fn setAllowsAnimatedImages(&self, allows_animated_images: bool)
๐Deprecated
pub unsafe fn allowsAnimatedImageLooping(&self) -> bool
๐Deprecated
pub unsafe fn setAllowsAnimatedImageLooping( &self, allows_animated_image_looping: bool )
๐Deprecated
pub unsafe fn loadsImagesAutomatically(&self) -> bool
๐Deprecated
pub unsafe fn setLoadsImagesAutomatically( &self, loads_images_automatically: bool )
๐Deprecated
pub unsafe fn autosaves(&self) -> bool
๐Deprecated
pub unsafe fn setAutosaves(&self, autosaves: bool)
๐Deprecated
pub unsafe fn shouldPrintBackgrounds(&self) -> bool
๐Deprecated
pub unsafe fn setShouldPrintBackgrounds(&self, should_print_backgrounds: bool)
๐Deprecated
pub unsafe fn privateBrowsingEnabled(&self) -> bool
๐Deprecated
pub unsafe fn setPrivateBrowsingEnabled(&self, private_browsing_enabled: bool)
๐Deprecated
pub unsafe fn tabsToLinks(&self) -> bool
๐Deprecated
pub unsafe fn setTabsToLinks(&self, tabs_to_links: bool)
๐Deprecated
pub unsafe fn usesPageCache(&self) -> bool
๐Deprecated
pub unsafe fn setUsesPageCache(&self, uses_page_cache: bool)
๐Deprecated
pub unsafe fn cacheModel(&self) -> WebCacheModel
๐Deprecated
pub unsafe fn setCacheModel(&self, cache_model: WebCacheModel)
๐Deprecated
pub unsafe fn suppressesIncrementalRendering(&self) -> bool
๐Deprecated
pub unsafe fn setSuppressesIncrementalRendering( &self, suppresses_incremental_rendering: bool )
๐Deprecated
pub unsafe fn allowsAirPlayForMediaPlayback(&self) -> bool
๐Deprecated
pub unsafe fn setAllowsAirPlayForMediaPlayback( &self, allows_air_play_for_media_playback: bool )
๐Deprecated
Methods from Deref<Target = NSObject>ยง
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesnโt recognize.
See Appleโs documentation for details.
Methods from Deref<Target = AnyObject>ยง
sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
Dynamically find the class of this object.
ยงExample
Check that an instance of NSObject
has the precise class NSObject
.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
๐Deprecated: this is difficult to use correctly, use Ivar::load
instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.Use Ivar::load
instead.
ยงSafety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
๐Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.Use Ivar::load_mut
instead.
ยงSafety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
Trait Implementationsยง
sourceยงimpl AsMut<AnyObject> for WebPreferences
impl AsMut<AnyObject> for WebPreferences
sourceยงimpl AsMut<NSObject> for WebPreferences
impl AsMut<NSObject> for WebPreferences
sourceยงimpl AsMut<WebPreferences> for WebPreferences
impl AsMut<WebPreferences> for WebPreferences
sourceยงimpl AsRef<AnyObject> for WebPreferences
impl AsRef<AnyObject> for WebPreferences
sourceยงimpl AsRef<NSObject> for WebPreferences
impl AsRef<NSObject> for WebPreferences
sourceยงimpl AsRef<WebPreferences> for WebPreferences
impl AsRef<WebPreferences> for WebPreferences
sourceยงimpl Borrow<AnyObject> for WebPreferences
impl Borrow<AnyObject> for WebPreferences
sourceยงimpl Borrow<NSObject> for WebPreferences
impl Borrow<NSObject> for WebPreferences
sourceยงimpl BorrowMut<AnyObject> for WebPreferences
impl BorrowMut<AnyObject> for WebPreferences
sourceยงfn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
sourceยงimpl BorrowMut<NSObject> for WebPreferences
impl BorrowMut<NSObject> for WebPreferences
sourceยงfn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
sourceยงimpl ClassType for WebPreferences
impl ClassType for WebPreferences
ยงtype Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
sourceยงconst NAME: &'static str = "WebPreferences"
const NAME: &'static str = "WebPreferences"
The name of the Objective-C class that this type represents. Read more
sourceยงfn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
sourceยงfn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
sourceยงimpl Debug for WebPreferences
impl Debug for WebPreferences
sourceยงimpl Deref for WebPreferences
impl Deref for WebPreferences
sourceยงimpl DerefMut for WebPreferences
impl DerefMut for WebPreferences
sourceยงimpl Hash for WebPreferences
impl Hash for WebPreferences
sourceยงimpl NSCoding for WebPreferences
impl NSCoding for WebPreferences
sourceยงimpl NSObjectProtocol for WebPreferences
impl NSObjectProtocol for WebPreferences
sourceยงfn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
sourceยงfn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
sourceยงfn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
sourceยงfn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
sourceยงfn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
sourceยงfn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
sourceยงfn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
sourceยงfn description(&self) -> Retained<NSObject>
fn description(&self) -> Retained<NSObject>
A textual representation of the object. Read more
sourceยงfn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
sourceยงimpl PartialEq for WebPreferences
impl PartialEq for WebPreferences
sourceยงfn eq(&self, other: &WebPreferences) -> bool
fn eq(&self, other: &WebPreferences) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.sourceยงimpl RefEncode for WebPreferences
impl RefEncode for WebPreferences
sourceยงconst ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for WebPreferences
impl Message for WebPreferences
impl StructuralPartialEq for WebPreferences
Auto Trait Implementationsยง
impl !Freeze for WebPreferences
impl !RefUnwindSafe for WebPreferences
impl !Send for WebPreferences
impl !Sync for WebPreferences
impl !Unpin for WebPreferences
impl !UnwindSafe for WebPreferences
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
sourceยงimpl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
ยงtype Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self
if the type has no
immutable counterpart. Read moreยงtype Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self
if the type has no
mutable counterpart. Read more