Trait WebDocumentSearching

Source
pub unsafe trait WebDocumentSearching: NSObjectProtocol {
    // Provided method
    unsafe fn searchFor_direction_caseSensitive_wrap(
        &self,
        string: Option<&NSString>,
        forward: bool,
        case_flag: bool,
        wrap_flag: bool,
    ) -> bool
       where Self: Sized + Message { ... }
}
👎Deprecated
Available on crate feature WebDocument only.
Expand description

Optional protocol for searching document view of WebFrameView.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn searchFor_direction_caseSensitive_wrap( &self, string: Option<&NSString>, forward: bool, case_flag: bool, wrap_flag: bool, ) -> bool
where Self: Sized + Message,

👎Deprecated

Searches a document view for a string and highlights the string if it is found.

Parameter string: The string to search for.

Parameter forward: YES to search forward, NO to seach backwards.

Parameter caseFlag: YES to for case-sensitive search, NO for case-insensitive search.

Parameter wrapFlag: YES to wrap around, NO to avoid wrapping.

Returns: YES if found, NO if not found.

Trait Implementations§

Source§

impl ProtocolType for dyn WebDocumentSearching

Source§

const NAME: &'static str = "WebDocumentSearching"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn WebDocumentSearching

Implementations on Foreign Types§

Source§

impl<T> WebDocumentSearching for ProtocolObject<T>

Implementors§