Struct RawNSPanel

Source
pub struct RawNSPanel;

Implementations§

Source§

impl RawNSPanel

Source

pub fn show(&self)

Source

pub fn is_visible(&self) -> bool

Source

pub fn is_floating_panel(&self) -> bool

Source

pub fn make_key_window(&self)

Source

pub fn resign_key_window(&self)

Source

pub fn make_key_and_order_front(&self, sender: Option<id>)

Source

pub fn order_front_regardless(&self)

Source

pub fn order_out(&self, sender: Option<id>)

Source

pub fn content_view(&self) -> id

Source

pub fn make_first_responder(&self, sender: Option<id>)

Source

pub fn set_level(&self, level: i32)

Source

pub fn set_alpha_value(&self, value: f64)

Source

pub fn set_content_size(&self, width: f64, height: f64)

Source

pub fn set_style_mask(&self, style_mask: i32)

Source

pub fn set_collection_behaviour(&self, behaviour: NSWindowCollectionBehavior)

Source

pub fn set_delegate<T>(&self, delegate: Id<T>)

Source

pub fn set_floating_panel(&self, value: bool)

Source

pub fn set_accepts_mouse_moved_events(&self, value: bool)

Source

pub fn set_ignore_mouse_events(&self, value: bool)

Source

pub fn set_hides_on_deactivate(&self, value: bool)

Source

pub fn set_moveable_by_window_background(&self, value: bool)

Source

pub fn set_becomes_key_only_if_needed(&self, value: bool)

Source

pub fn set_works_when_modal(&self, value: bool)

Source

pub fn set_opaque(&self, value: bool)

Source

pub fn set_has_shadow(&self, value: bool)

Source

pub fn set_released_when_closed(&self, value: bool)

Source

pub fn released_when_closed(&self, value: bool)

👎Deprecated since 2.0.1: Use set_released_when_closed(bool) instead. This method will be removed in a future version.
Source

pub fn close(&self)

Source

pub fn handle(&mut self) -> ShareId<Self>

Source

pub fn from_window<R: Runtime>(window: WebviewWindow<R>) -> Id<Self>

Create an NSPanel from a Tauri Webview Window

Trait Implementations§

Source§

impl INSObject for RawNSPanel

Source§

fn class() -> &'static Class

§

fn hash_code(&self) -> usize

§

fn is_equal<T>(&self, other: &T) -> bool
where T: INSObject,

§

fn description(&self) -> Id<NSString, Shared>

§

fn is_kind_of(&self, cls: &Class) -> bool

§

fn new() -> Id<Self>

Source§

impl Message for RawNSPanel

§

unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
where Self: Sized, A: MessageArguments, R: Any,

Sends a message to self with the given selector and arguments. Read more
§

fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
where Self: Sized, A: EncodeArguments, R: Encode,

Verifies that the argument and return types match the encoding of the method for the given selector. Read more
Source§

impl Send for RawNSPanel

Source§

impl Sync for RawNSPanel

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> 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>,

Source§

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>,

Source§

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,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T