#[repr(C)]pub struct NSPopover {
pub ptr: Id<Object>,
}
Expand description
A means to display additional content related to existing content on the screen.
Fields§
§ptr: Id<Object>
The raw pointer to the Objective-C object.
Implementations§
Source§impl NSPopover
impl NSPopover
Sourcepub fn content_view_controller(&self) -> NSViewController
pub fn content_view_controller(&self) -> NSViewController
The view controller that manages the content of the popover.
Sourcepub fn set_content_view_controller<Controller>(
&self,
view_controller: Controller,
)where
Controller: INSViewController,
pub fn set_content_view_controller<Controller>(
&self,
view_controller: Controller,
)where
Controller: INSViewController,
Sets the view controller that manages the content of the popover.
§Arguments
view_controller
- The view controller that manages the content of the popover.
Sourcepub fn behavior(&self) -> NSPopoverBehavior
pub fn behavior(&self) -> NSPopoverBehavior
Specifies the behavior of the popover.
Sourcepub fn set_behavior(&self, behavior: NSPopoverBehavior)
pub fn set_behavior(&self, behavior: NSPopoverBehavior)
Sourcepub fn show_relative_to_rect_of_view_preferred_edge<V>(
&self,
rect: NSRect,
view: V,
edge: CGRectEdge,
)where
V: INSView,
pub fn show_relative_to_rect_of_view_preferred_edge<V>(
&self,
rect: NSRect,
view: V,
edge: CGRectEdge,
)where
V: INSView,
Shows the popover anchored to the specified view.
Sourcepub fn positioning_rect(&self) -> NSRect
pub fn positioning_rect(&self) -> NSRect
The rectangle within the positioning view relative to which the popover should be positioned.
Sourcepub fn appearance(&self) -> NSAppearance
pub fn appearance(&self) -> NSAppearance
The appearance of the popover.
Sourcepub fn set_appearance(&self, appearance: NSAppearance)
pub fn set_appearance(&self, appearance: NSAppearance)
Sourcepub fn effective_appearance(&self) -> NSAppearance
pub fn effective_appearance(&self) -> NSAppearance
The appearance that will be used when the popover is displayed onscreen.
Sourcepub fn content_size(&self) -> NSSize
pub fn content_size(&self) -> NSSize
The content size of the popover.
Sourcepub fn set_content_size(&self, size: NSSize)
pub fn set_content_size(&self, size: NSSize)
Sourcepub fn detached(&self) -> bool
pub fn detached(&self) -> bool
A Boolean value that indicates whether the window created by a popover’s detachment is automatically created.
Sourcepub fn perform_close(&self, sender: id)
pub fn perform_close(&self, sender: id)
Attempts to close the popover.
Sourcepub fn set_delegate(&self, delegate: id)
pub fn set_delegate(&self, delegate: id)
Sourcepub fn init_with_coder(&self, coder: NSCoder) -> NSPopover
pub fn init_with_coder(&self, coder: NSCoder) -> NSPopover
Creates a new popover with NSCoder
Methods from Deref<Target = Object>§
Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Returns a reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
Sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Returns a mutable reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
Trait Implementations§
Source§impl INSPopover for NSPopover
impl INSPopover for NSPopover
Source§fn p_content_view_controller(&self) -> NSViewController
fn p_content_view_controller(&self) -> NSViewController
Source§fn p_set_content_view_controller<Controller>(&self, view_controller: Controller)where
Controller: INSViewController,
fn p_set_content_view_controller<Controller>(&self, view_controller: Controller)where
Controller: INSViewController,
Source§fn p_behavior(&self) -> NSPopoverBehavior
fn p_behavior(&self) -> NSPopoverBehavior
Source§fn p_set_behavior(&self, behavior: NSPopoverBehavior)
fn p_set_behavior(&self, behavior: NSPopoverBehavior)
Source§fn m_show_relative_to_rect_of_view_preferred_edge<V>(
&self,
rect: NSRect,
view: V,
edge: CGRectEdge,
)where
V: INSView,
fn m_show_relative_to_rect_of_view_preferred_edge<V>(
&self,
rect: NSRect,
view: V,
edge: CGRectEdge,
)where
V: INSView,
Source§fn p_positioning_rect(&self) -> NSRect
fn p_positioning_rect(&self) -> NSRect
Source§fn p_appearance(&self) -> NSAppearance
fn p_appearance(&self) -> NSAppearance
Source§fn m_set_appearance(&self, appearance: NSAppearance)
fn m_set_appearance(&self, appearance: NSAppearance)
Source§fn p_effective_appearance(&self) -> NSAppearance
fn p_effective_appearance(&self) -> NSAppearance
Source§fn p_animates(&self) -> bool
fn p_animates(&self) -> bool
Source§fn p_content_size(&self) -> NSSize
fn p_content_size(&self) -> NSSize
Source§fn p_set_content_size(&self, size: NSSize)
fn p_set_content_size(&self, size: NSSize)
Source§fn p_detached(&self) -> bool
fn p_detached(&self) -> bool
Source§fn m_perform_close(&self, sender: id)
fn m_perform_close(&self, sender: id)
Source§fn p_delegate(&self) -> id
fn p_delegate(&self) -> id
Source§fn m_set_delegate(&self, delegate: id)
fn m_set_delegate(&self, delegate: id)
Source§fn m_init_with_coder(&self, coder: NSCoder) -> NSPopover
fn m_init_with_coder(&self, coder: NSCoder) -> NSPopover
NSCoder