Struct objc2_web_kit::WebPreferences

source ยท
#[repr(C)]
pub struct WebPreferences { /* private fields */ }
๐Ÿ‘ŽDeprecated
Available on crate feature WebPreferences only.

Implementationsยง

sourceยง

impl WebPreferences

source

pub unsafe fn standardPreferences() -> Option<Retained<WebPreferences>>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn initWithIdentifier( this: Allocated<Self>, an_identifier: Option<&NSString> ) -> Option<Retained<Self>>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn identifier(&self) -> Retained<NSString>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn standardFontFamily(&self) -> Retained<NSString>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setStandardFontFamily( &self, standard_font_family: Option<&NSString> )

๐Ÿ‘ŽDeprecated
source

pub unsafe fn fixedFontFamily(&self) -> Retained<NSString>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setFixedFontFamily(&self, fixed_font_family: Option<&NSString>)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn serifFontFamily(&self) -> Retained<NSString>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setSerifFontFamily(&self, serif_font_family: Option<&NSString>)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn sansSerifFontFamily(&self) -> Retained<NSString>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setSansSerifFontFamily( &self, sans_serif_font_family: Option<&NSString> )

๐Ÿ‘ŽDeprecated
source

pub unsafe fn cursiveFontFamily(&self) -> Retained<NSString>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setCursiveFontFamily( &self, cursive_font_family: Option<&NSString> )

๐Ÿ‘ŽDeprecated
source

pub unsafe fn fantasyFontFamily(&self) -> Retained<NSString>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setFantasyFontFamily( &self, fantasy_font_family: Option<&NSString> )

๐Ÿ‘ŽDeprecated
source

pub unsafe fn defaultFontSize(&self) -> c_int

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setDefaultFontSize(&self, default_font_size: c_int)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn defaultFixedFontSize(&self) -> c_int

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setDefaultFixedFontSize(&self, default_fixed_font_size: c_int)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn minimumFontSize(&self) -> c_int

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setMinimumFontSize(&self, minimum_font_size: c_int)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn minimumLogicalFontSize(&self) -> c_int

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setMinimumLogicalFontSize(&self, minimum_logical_font_size: c_int)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn defaultTextEncodingName(&self) -> Retained<NSString>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setDefaultTextEncodingName( &self, default_text_encoding_name: Option<&NSString> )

๐Ÿ‘ŽDeprecated
source

pub unsafe fn userStyleSheetEnabled(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setUserStyleSheetEnabled(&self, user_style_sheet_enabled: bool)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn userStyleSheetLocation(&self) -> Option<Retained<NSURL>>

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setUserStyleSheetLocation( &self, user_style_sheet_location: Option<&NSURL> )

๐Ÿ‘ŽDeprecated
source

pub unsafe fn isJavaEnabled(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setJavaEnabled(&self, java_enabled: bool)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn isJavaScriptEnabled(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setJavaScriptEnabled(&self, java_script_enabled: bool)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn javaScriptCanOpenWindowsAutomatically(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setJavaScriptCanOpenWindowsAutomatically( &self, java_script_can_open_windows_automatically: bool )

๐Ÿ‘ŽDeprecated
source

pub unsafe fn arePlugInsEnabled(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setPlugInsEnabled(&self, plug_ins_enabled: bool)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn allowsAnimatedImages(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setAllowsAnimatedImages(&self, allows_animated_images: bool)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn allowsAnimatedImageLooping(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setAllowsAnimatedImageLooping( &self, allows_animated_image_looping: bool )

๐Ÿ‘ŽDeprecated
source

pub unsafe fn loadsImagesAutomatically(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setLoadsImagesAutomatically( &self, loads_images_automatically: bool )

๐Ÿ‘ŽDeprecated
source

pub unsafe fn autosaves(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setAutosaves(&self, autosaves: bool)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn shouldPrintBackgrounds(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setShouldPrintBackgrounds(&self, should_print_backgrounds: bool)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn privateBrowsingEnabled(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setPrivateBrowsingEnabled(&self, private_browsing_enabled: bool)

๐Ÿ‘ŽDeprecated
๐Ÿ‘ŽDeprecated
๐Ÿ‘ŽDeprecated
source

pub unsafe fn usesPageCache(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setUsesPageCache(&self, uses_page_cache: bool)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn cacheModel(&self) -> WebCacheModel

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setCacheModel(&self, cache_model: WebCacheModel)

๐Ÿ‘ŽDeprecated
source

pub unsafe fn suppressesIncrementalRendering(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setSuppressesIncrementalRendering( &self, suppresses_incremental_rendering: bool )

๐Ÿ‘ŽDeprecated
source

pub unsafe fn allowsAirPlayForMediaPlayback(&self) -> bool

๐Ÿ‘ŽDeprecated
source

pub unsafe fn setAllowsAirPlayForMediaPlayback( &self, allows_air_play_for_media_playback: bool )

๐Ÿ‘ŽDeprecated
sourceยง

impl WebPreferences

Methods declared on superclass NSObject

source

pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>

source

pub unsafe fn new() -> Retained<Self>

Methods from Deref<Target = NSObject>ยง

source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Handle messages the object doesnโ€™t recognize.

See Appleโ€™s documentation for details.

Methods from Deref<Target = AnyObject>ยง

source

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());
source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

๐Ÿ‘ŽDeprecated: this is difficult to use correctly, use 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.

source

pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T
where T: Encode,

๐Ÿ‘ŽDeprecated: this is difficult to use correctly, use 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

sourceยง

fn as_mut(&mut self) -> &mut AnyObject

Converts this type into a mutable reference of the (usually inferred) input type.
sourceยง

impl AsMut<NSObject> for WebPreferences

sourceยง

fn as_mut(&mut self) -> &mut NSObject

Converts this type into a mutable reference of the (usually inferred) input type.
sourceยง

impl AsMut<WebPreferences> for WebPreferences

sourceยง

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
sourceยง

impl AsRef<AnyObject> for WebPreferences

sourceยง

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
sourceยง

impl AsRef<NSObject> for WebPreferences

sourceยง

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
sourceยง

impl AsRef<WebPreferences> for WebPreferences

sourceยง

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
sourceยง

impl Borrow<AnyObject> for WebPreferences

sourceยง

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
sourceยง

impl Borrow<NSObject> for WebPreferences

sourceยง

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
sourceยง

impl BorrowMut<AnyObject> for WebPreferences

sourceยง

fn borrow_mut(&mut self) -> &mut AnyObject

Mutably borrows from an owned value. Read more
sourceยง

impl BorrowMut<NSObject> for WebPreferences

sourceยง

fn borrow_mut(&mut self) -> &mut NSObject

Mutably borrows from an owned value. Read more
sourceยง

impl ClassType for WebPreferences

ยง

type Super = NSObject

The superclass of this class. Read more
ยง

type Mutability = InteriorMutable

Whether the type is mutable or immutable. Read more
sourceยง

const NAME: &'static str = "WebPreferences"

The name of the Objective-C class that this type represents. Read more
sourceยง

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
sourceยง

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
sourceยง

fn as_super_mut(&mut self) -> &mut Self::Super

Get a mutable reference to the superclass.
sourceยง

fn retain(&self) -> Retained<Self>
where Self: IsRetainable + Sized,

Increment the reference count of the receiver. Read more
sourceยง

fn alloc() -> Allocated<Self>

Allocate a new instance of the class. Read more
sourceยง

impl Debug for WebPreferences

sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
sourceยง

impl Deref for WebPreferences

ยง

type Target = NSObject

The resulting type after dereferencing.
sourceยง

fn deref(&self) -> &Self::Target

Dereferences the value.
sourceยง

impl DerefMut for WebPreferences

sourceยง

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
sourceยง

impl Hash for WebPreferences

sourceยง

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 ยท sourceยง

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
sourceยง

impl NSCoding for WebPreferences

sourceยง

unsafe fn encodeWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

Available on crate feature NSCoder only.
sourceยง

unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>
where Self: Sized + Message,

Available on crate feature NSCoder only.
sourceยง

impl NSObjectProtocol for WebPreferences

sourceยง

fn isEqual(&self, other: &AnyObject) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object. Read more
sourceยง

fn hash(&self) -> usize
where Self: Sized + Message,

An integer that can be used as a table address in a hash table structure. Read more
sourceยง

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

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
where T: ClassType, Self: Sized + Message,

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
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses. Read more
sourceยง

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector. Read more
sourceยง

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol. Read more
sourceยง

fn description(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object. Read more
sourceยง

fn debugDescription(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object to use when debugging. Read more
sourceยง

fn isProxy(&self) -> bool
where Self: Sized + Message,

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject. Read more
sourceยง

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object. Read more
sourceยง

impl PartialEq for WebPreferences

sourceยง

fn eq(&self, other: &WebPreferences) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 ยท sourceยง

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
sourceยง

impl RefEncode for WebPreferences

sourceยง

const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
sourceยง

impl Eq for WebPreferences

sourceยง

impl Message for WebPreferences

sourceยง

impl StructuralPartialEq for WebPreferences

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
sourceยง

impl<T> CounterpartOrSelf for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityCounterpartOrSelf<T>,

ยง

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

The mutable counterpart of the type, or Self if the type has no mutable counterpart. Read more
sourceยง

impl<T> From<T> for T

sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

ยง

type Error = Infallible

The type returned in the event of a conversion error.
sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
sourceยง

impl<T> AutoreleaseSafe for T
where T: ?Sized,

sourceยง

impl<T> IsAllocableAnyThread for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsAllocableAnyThread,

sourceยง

impl<T> IsIdCloneable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsIdCloneable,

sourceยง

impl<T> IsRetainable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsRetainable,