use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSLayoutGuide;
unsafe impl ClassType for NSLayoutGuide {
type Super = NSObject;
}
);
extern_methods!(
unsafe impl NSLayoutGuide {
#[method(frame)]
pub unsafe fn frame(&self) -> NSRect;
#[method_id(@__retain_semantics Other owningView)]
pub unsafe fn owningView(&self) -> Option<Id<NSView, Shared>>;
#[method(setOwningView:)]
pub unsafe fn setOwningView(&self, owningView: Option<&NSView>);
#[method_id(@__retain_semantics Other identifier)]
pub unsafe fn identifier(&self) -> Id<NSUserInterfaceItemIdentifier, Shared>;
#[method(setIdentifier:)]
pub unsafe fn setIdentifier(&self, identifier: &NSUserInterfaceItemIdentifier);
#[method_id(@__retain_semantics Other leadingAnchor)]
pub unsafe fn leadingAnchor(&self) -> Id<NSLayoutXAxisAnchor, Shared>;
#[method_id(@__retain_semantics Other trailingAnchor)]
pub unsafe fn trailingAnchor(&self) -> Id<NSLayoutXAxisAnchor, Shared>;
#[method_id(@__retain_semantics Other leftAnchor)]
pub unsafe fn leftAnchor(&self) -> Id<NSLayoutXAxisAnchor, Shared>;
#[method_id(@__retain_semantics Other rightAnchor)]
pub unsafe fn rightAnchor(&self) -> Id<NSLayoutXAxisAnchor, Shared>;
#[method_id(@__retain_semantics Other topAnchor)]
pub unsafe fn topAnchor(&self) -> Id<NSLayoutYAxisAnchor, Shared>;
#[method_id(@__retain_semantics Other bottomAnchor)]
pub unsafe fn bottomAnchor(&self) -> Id<NSLayoutYAxisAnchor, Shared>;
#[method_id(@__retain_semantics Other widthAnchor)]
pub unsafe fn widthAnchor(&self) -> Id<NSLayoutDimension, Shared>;
#[method_id(@__retain_semantics Other heightAnchor)]
pub unsafe fn heightAnchor(&self) -> Id<NSLayoutDimension, Shared>;
#[method_id(@__retain_semantics Other centerXAnchor)]
pub unsafe fn centerXAnchor(&self) -> Id<NSLayoutXAxisAnchor, Shared>;
#[method_id(@__retain_semantics Other centerYAnchor)]
pub unsafe fn centerYAnchor(&self) -> Id<NSLayoutYAxisAnchor, Shared>;
#[method(hasAmbiguousLayout)]
pub unsafe fn hasAmbiguousLayout(&self) -> bool;
#[method_id(@__retain_semantics Other constraintsAffectingLayoutForOrientation:)]
pub unsafe fn constraintsAffectingLayoutForOrientation(
&self,
orientation: NSLayoutConstraintOrientation,
) -> Id<NSArray<NSLayoutConstraint>, Shared>;
}
);
extern_methods!(
unsafe impl NSView {
#[method(addLayoutGuide:)]
pub unsafe fn addLayoutGuide(&self, guide: &NSLayoutGuide);
#[method(removeLayoutGuide:)]
pub unsafe fn removeLayoutGuide(&self, guide: &NSLayoutGuide);
#[method_id(@__retain_semantics Other layoutGuides)]
pub unsafe fn layoutGuides(&self) -> Id<NSArray<NSLayoutGuide>, Shared>;
}
);