Struct objc2_app_kit::NSPrintOperation
source · #[repr(C)]pub struct NSPrintOperation { /* private fields */ }
Available on crate feature
NSPrintOperation
only.Implementations§
source§impl NSPrintOperation
impl NSPrintOperation
pub unsafe fn printOperationWithView_printInfo( view: &NSView, print_info: &NSPrintInfo ) -> Retained<NSPrintOperation>
Available on crate features
NSPrintInfo
and NSResponder
and NSView
only.pub unsafe fn PDFOperationWithView_insideRect_toData_printInfo( view: &NSView, rect: NSRect, data: &NSMutableData, print_info: &NSPrintInfo ) -> Retained<NSPrintOperation>
Available on crate features
NSPrintInfo
and NSResponder
and NSView
only.pub unsafe fn PDFOperationWithView_insideRect_toPath_printInfo( view: &NSView, rect: NSRect, path: &NSString, print_info: &NSPrintInfo ) -> Retained<NSPrintOperation>
Available on crate features
NSPrintInfo
and NSResponder
and NSView
only.pub unsafe fn EPSOperationWithView_insideRect_toData_printInfo( view: &NSView, rect: NSRect, data: &NSMutableData, print_info: &NSPrintInfo ) -> Retained<NSPrintOperation>
Available on crate features
NSPrintInfo
and NSResponder
and NSView
only.pub unsafe fn EPSOperationWithView_insideRect_toPath_printInfo( view: &NSView, rect: NSRect, path: &NSString, print_info: &NSPrintInfo ) -> Retained<NSPrintOperation>
Available on crate features
NSPrintInfo
and NSResponder
and NSView
only.pub unsafe fn printOperationWithView( view: &NSView ) -> Retained<NSPrintOperation>
Available on crate features
NSResponder
and NSView
only.pub unsafe fn PDFOperationWithView_insideRect_toData( view: &NSView, rect: NSRect, data: &NSMutableData ) -> Retained<NSPrintOperation>
Available on crate features
NSResponder
and NSView
only.pub unsafe fn EPSOperationWithView_insideRect_toData( view: &NSView, rect: NSRect, data: Option<&NSMutableData> ) -> Retained<NSPrintOperation>
Available on crate features
NSResponder
and NSView
only.pub unsafe fn currentOperation( mtm: MainThreadMarker ) -> Option<Retained<NSPrintOperation>>
pub unsafe fn setCurrentOperation( current_operation: Option<&NSPrintOperation>, mtm: MainThreadMarker )
pub unsafe fn isCopyingOperation(&self) -> bool
pub unsafe fn preferredRenderingQuality(&self) -> NSPrintRenderingQuality
pub unsafe fn jobTitle(&self) -> Option<Retained<NSString>>
pub unsafe fn setJobTitle(&self, job_title: Option<&NSString>)
pub unsafe fn showsPrintPanel(&self) -> bool
pub unsafe fn setShowsPrintPanel(&self, shows_print_panel: bool)
pub unsafe fn showsProgressPanel(&self) -> bool
pub unsafe fn setShowsProgressPanel(&self, shows_progress_panel: bool)
pub unsafe fn printPanel(&self) -> Retained<NSPrintPanel>
Available on crate feature
NSPrintPanel
only.pub unsafe fn setPrintPanel(&self, print_panel: &NSPrintPanel)
Available on crate feature
NSPrintPanel
only.pub unsafe fn PDFPanel(&self) -> Retained<NSPDFPanel>
Available on crate feature
NSPDFPanel
only.pub unsafe fn setPDFPanel(&self, pdf_panel: &NSPDFPanel)
Available on crate feature
NSPDFPanel
only.pub unsafe fn canSpawnSeparateThread(&self) -> bool
pub unsafe fn setCanSpawnSeparateThread(&self, can_spawn_separate_thread: bool)
pub unsafe fn pageOrder(&self) -> NSPrintingPageOrder
pub unsafe fn setPageOrder(&self, page_order: NSPrintingPageOrder)
pub unsafe fn runOperationModalForWindow_delegate_didRunSelector_contextInfo( &self, doc_window: &NSWindow, delegate: Option<&AnyObject>, did_run_selector: Option<Sel>, context_info: *mut c_void )
Available on crate features
NSResponder
and NSWindow
only.pub unsafe fn runOperation(&self) -> bool
pub unsafe fn view(&self) -> Option<Retained<NSView>>
Available on crate features
NSResponder
and NSView
only.pub unsafe fn printInfo(&self) -> Retained<NSPrintInfo>
Available on crate feature
NSPrintInfo
only.pub unsafe fn setPrintInfo(&self, print_info: &NSPrintInfo)
Available on crate feature
NSPrintInfo
only.pub unsafe fn context(&self) -> Option<Retained<NSGraphicsContext>>
Available on crate feature
NSGraphicsContext
only.pub unsafe fn pageRange(&self) -> NSRange
pub unsafe fn currentPage(&self) -> NSInteger
pub unsafe fn createContext(&self) -> Option<Retained<NSGraphicsContext>>
Available on crate feature
NSGraphicsContext
only.pub unsafe fn destroyContext(&self)
pub unsafe fn deliverResult(&self) -> bool
pub unsafe fn cleanUpOperation(&self)
source§impl NSPrintOperation
impl NSPrintOperation
Methods declared on superclass NSObject
source§impl NSPrintOperation
impl NSPrintOperation
NSDeprecated
pub unsafe fn setAccessoryView(&self, view: Option<&NSView>)
👎Deprecated: Use -[NSPrintPanel addAccessoryController:] and -[NSPrintPanel removeAccessoryController:] instead
Available on crate features
NSResponder
and NSView
only.pub unsafe fn accessoryView(&self) -> Option<Retained<NSView>>
👎Deprecated: Use -[NSPrintPanel accessoryControllers] instead
Available on crate features
NSResponder
and NSView
only.pub unsafe fn setJobStyleHint(&self, hint: Option<&NSString>)
👎Deprecated
pub unsafe fn jobStyleHint(&self) -> Option<Retained<NSString>>
👎Deprecated
pub unsafe fn setShowPanels(&self, flag: bool)
👎Deprecated: Use -setShowsPrintPanel: and -setShowsProgressPanel: instead
pub unsafe fn showPanels(&self) -> bool
👎Deprecated: Use -showsPrintPanel and -showsProgressPanel instead
Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature NSAccessibilityConstants
only.
pub fn class(&self) -> &'static AnyClass
NSAccessibilityConstants
only.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());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.NSAccessibilityConstants
only.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.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.NSAccessibilityConstants
only.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 NSPrintOperation
impl AsMut<AnyObject> for NSPrintOperation
source§impl AsMut<NSObject> for NSPrintOperation
impl AsMut<NSObject> for NSPrintOperation
source§impl AsMut<NSPrintOperation> for NSPrintOperation
impl AsMut<NSPrintOperation> for NSPrintOperation
source§impl AsRef<AnyObject> for NSPrintOperation
impl AsRef<AnyObject> for NSPrintOperation
source§impl AsRef<NSObject> for NSPrintOperation
impl AsRef<NSObject> for NSPrintOperation
source§impl AsRef<NSPrintOperation> for NSPrintOperation
impl AsRef<NSPrintOperation> for NSPrintOperation
source§impl Borrow<AnyObject> for NSPrintOperation
impl Borrow<AnyObject> for NSPrintOperation
source§impl Borrow<NSObject> for NSPrintOperation
impl Borrow<NSObject> for NSPrintOperation
source§impl BorrowMut<AnyObject> for NSPrintOperation
impl BorrowMut<AnyObject> for NSPrintOperation
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for NSPrintOperation
impl BorrowMut<NSObject> for NSPrintOperation
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl ClassType for NSPrintOperation
impl ClassType for NSPrintOperation
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSPrintOperation"
const NAME: &'static str = "NSPrintOperation"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl Debug for NSPrintOperation
impl Debug for NSPrintOperation
source§impl Deref for NSPrintOperation
impl Deref for NSPrintOperation
source§impl DerefMut for NSPrintOperation
impl DerefMut for NSPrintOperation
source§impl Hash for NSPrintOperation
impl Hash for NSPrintOperation
source§impl NSObjectProtocol for NSPrintOperation
impl NSObjectProtocol for NSPrintOperation
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
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
fn is_kind_of<T>(&self) -> bool
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
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl PartialEq for NSPrintOperation
impl PartialEq for NSPrintOperation
source§fn eq(&self, other: &NSPrintOperation) -> bool
fn eq(&self, other: &NSPrintOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSPrintOperation
impl RefEncode for NSPrintOperation
source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSPrintOperation
impl Message for NSPrintOperation
impl StructuralPartialEq for NSPrintOperation
Auto Trait Implementations§
impl !Freeze for NSPrintOperation
impl !RefUnwindSafe for NSPrintOperation
impl !Send for NSPrintOperation
impl !Sync for NSPrintOperation
impl !Unpin for NSPrintOperation
impl !UnwindSafe for NSPrintOperation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
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
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