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<Id<WebPreferences>>
👎Deprecated
pub unsafe fn initWithIdentifier( this: Allocated<Self>, an_identifier: Option<&NSString> ) -> Option<Id<Self>>
👎Deprecated
pub unsafe fn identifier(&self) -> Id<NSString>
👎Deprecated
pub unsafe fn standardFontFamily(&self) -> Id<NSString>
👎Deprecated
pub unsafe fn setStandardFontFamily( &self, standard_font_family: Option<&NSString> )
👎Deprecated
pub unsafe fn fixedFontFamily(&self) -> Id<NSString>
👎Deprecated
pub unsafe fn setFixedFontFamily(&self, fixed_font_family: Option<&NSString>)
👎Deprecated
pub unsafe fn serifFontFamily(&self) -> Id<NSString>
👎Deprecated
pub unsafe fn setSerifFontFamily(&self, serif_font_family: Option<&NSString>)
👎Deprecated
pub unsafe fn sansSerifFontFamily(&self) -> Id<NSString>
👎Deprecated
pub unsafe fn setSansSerifFontFamily( &self, sans_serif_font_family: Option<&NSString> )
👎Deprecated
pub unsafe fn cursiveFontFamily(&self) -> Id<NSString>
👎Deprecated
pub unsafe fn setCursiveFontFamily( &self, cursive_font_family: Option<&NSString> )
👎Deprecated
pub unsafe fn fantasyFontFamily(&self) -> Id<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) -> Id<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<Id<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 debugDescription(&self) -> Id<NSObject>
fn debugDescription(&self) -> Id<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