Struct icrate::AppKit::NSTextView
source · #[repr(C)]pub struct NSTextView { /* private fields */ }AppKit only.Implementations§
source§impl NSTextView
impl NSTextView
pub unsafe fn initWithFrame_textContainer(
this: Option<Allocated<Self>>,
frameRect: NSRect,
container: Option<&NSTextContainer>
) -> Id<Self, Shared>
pub unsafe fn initWithCoder(
this: Option<Allocated<Self>>,
coder: &NSCoder
) -> Option<Id<Self, Shared>>
pub unsafe fn initWithFrame(
this: Option<Allocated<Self>>,
frameRect: NSRect
) -> Id<Self, Shared>
pub unsafe fn textContainer(&self) -> Option<Id<NSTextContainer, Shared>>
pub unsafe fn setTextContainer(&self, textContainer: Option<&NSTextContainer>)
pub unsafe fn replaceTextContainer(&self, newContainer: &NSTextContainer)
pub unsafe fn textContainerInset(&self) -> NSSize
pub unsafe fn setTextContainerInset(&self, textContainerInset: NSSize)
pub unsafe fn textContainerOrigin(&self) -> NSPoint
pub unsafe fn invalidateTextContainerOrigin(&self)
pub unsafe fn layoutManager(&self) -> Option<Id<NSLayoutManager, Shared>>
pub unsafe fn textStorage(&self) -> Option<Id<NSTextStorage, Shared>>
pub unsafe fn textLayoutManager(
&self
) -> Option<Id<NSTextLayoutManager, Shared>>
pub unsafe fn textContentStorage(
&self
) -> Option<Id<NSTextContentStorage, Shared>>
pub unsafe fn insertText(&self, insertString: &Object)
pub unsafe fn setConstrainedFrameSize(&self, desiredSize: NSSize)
pub unsafe fn setAlignment_range(
&self,
alignment: NSTextAlignment,
range: NSRange
)
pub unsafe fn setBaseWritingDirection_range(
&self,
writingDirection: NSWritingDirection,
range: NSRange
)
pub unsafe fn turnOffKerning(&self, sender: Option<&Object>)
pub unsafe fn tightenKerning(&self, sender: Option<&Object>)
pub unsafe fn loosenKerning(&self, sender: Option<&Object>)
pub unsafe fn useStandardKerning(&self, sender: Option<&Object>)
pub unsafe fn turnOffLigatures(&self, sender: Option<&Object>)
pub unsafe fn useStandardLigatures(&self, sender: Option<&Object>)
pub unsafe fn useAllLigatures(&self, sender: Option<&Object>)
pub unsafe fn raiseBaseline(&self, sender: Option<&Object>)
pub unsafe fn lowerBaseline(&self, sender: Option<&Object>)
pub unsafe fn toggleTraditionalCharacterShape(&self, sender: Option<&Object>)
pub unsafe fn outline(&self, sender: Option<&Object>)
pub unsafe fn performFindPanelAction(&self, sender: Option<&Object>)
pub unsafe fn alignJustified(&self, sender: Option<&Object>)
pub unsafe fn changeColor(&self, sender: Option<&Object>)
pub unsafe fn changeAttributes(&self, sender: Option<&Object>)
pub unsafe fn changeDocumentBackgroundColor(&self, sender: Option<&Object>)
pub unsafe fn orderFrontSpacingPanel(&self, sender: Option<&Object>)
pub unsafe fn orderFrontLinkPanel(&self, sender: Option<&Object>)
pub unsafe fn orderFrontListPanel(&self, sender: Option<&Object>)
pub unsafe fn orderFrontTablePanel(&self, sender: Option<&Object>)
pub unsafe fn rulerView_didMoveMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
)
pub unsafe fn rulerView_didRemoveMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
)
pub unsafe fn rulerView_didAddMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
)
pub unsafe fn rulerView_shouldMoveMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
) -> bool
pub unsafe fn rulerView_shouldAddMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
) -> bool
pub unsafe fn rulerView_willMoveMarker_toLocation(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker,
location: CGFloat
) -> CGFloat
pub unsafe fn rulerView_shouldRemoveMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
) -> bool
pub unsafe fn rulerView_willAddMarker_atLocation(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker,
location: CGFloat
) -> CGFloat
pub unsafe fn rulerView_handleMouseDown(
&self,
ruler: &NSRulerView,
event: &NSEvent
)
pub unsafe fn setNeedsDisplayInRect_avoidAdditionalLayout(
&self,
rect: NSRect,
flag: bool
)
pub unsafe fn shouldDrawInsertionPoint(&self) -> bool
pub unsafe fn drawInsertionPointInRect_color_turnedOn(
&self,
rect: NSRect,
color: &NSColor,
flag: bool
)
pub unsafe fn drawViewBackgroundInRect(&self, rect: NSRect)
pub unsafe fn updateRuler(&self)
pub unsafe fn updateFontPanel(&self)
pub unsafe fn updateDragTypeRegistration(&self)
pub unsafe fn selectionRangeForProposedRange_granularity(
&self,
proposedCharRange: NSRange,
granularity: NSSelectionGranularity
) -> NSRange
pub unsafe fn clickedOnLink_atIndex(&self, link: &Object, charIndex: NSUInteger)
pub unsafe fn startSpeaking(&self, sender: Option<&Object>)
pub unsafe fn stopSpeaking(&self, sender: Option<&Object>)
pub unsafe fn setLayoutOrientation(&self, orientation: NSTextLayoutOrientation)
pub unsafe fn changeLayoutOrientation(&self, sender: Option<&Object>)
pub unsafe fn characterIndexForInsertionAtPoint(
&self,
point: NSPoint
) -> NSUInteger
pub unsafe fn stronglyReferencesTextStorage() -> bool
pub unsafe fn performValidatedReplacementInRange_withAttributedString(
&self,
range: NSRange,
attributedString: &NSAttributedString
) -> bool
pub unsafe fn usesAdaptiveColorMappingForDarkAppearance(&self) -> bool
pub unsafe fn setUsesAdaptiveColorMappingForDarkAppearance(
&self,
usesAdaptiveColorMappingForDarkAppearance: bool
)
source§impl NSTextView
impl NSTextView
NSCompletion
pub unsafe fn complete(&self, sender: Option<&Object>)
pub unsafe fn rangeForUserCompletion(&self) -> NSRange
pub unsafe fn completionsForPartialWordRange_indexOfSelectedItem(
&self,
charRange: NSRange,
index: NonNull<NSInteger>
) -> Option<Id<NSArray<NSString>, Shared>>
pub unsafe fn insertCompletion_forPartialWordRange_movement_isFinal(
&self,
word: &NSString,
charRange: NSRange,
movement: NSInteger,
flag: bool
)
source§impl NSTextView
impl NSTextView
NSPasteboard
pub unsafe fn writablePasteboardTypes(
&self
) -> Id<NSArray<NSPasteboardType>, Shared>
pub unsafe fn writeSelectionToPasteboard_type(
&self,
pboard: &NSPasteboard,
type_: &NSPasteboardType
) -> bool
pub unsafe fn writeSelectionToPasteboard_types(
&self,
pboard: &NSPasteboard,
types: &NSArray<NSPasteboardType>
) -> bool
pub unsafe fn readablePasteboardTypes(
&self
) -> Id<NSArray<NSPasteboardType>, Shared>
pub unsafe fn preferredPasteboardTypeFromArray_restrictedToTypesFromArray(
&self,
availableTypes: &NSArray<NSPasteboardType>,
allowedTypes: Option<&NSArray<NSPasteboardType>>
) -> Option<Id<NSPasteboardType, Shared>>
pub unsafe fn readSelectionFromPasteboard_type(
&self,
pboard: &NSPasteboard,
type_: &NSPasteboardType
) -> bool
pub unsafe fn readSelectionFromPasteboard(&self, pboard: &NSPasteboard) -> bool
pub unsafe fn registerForServices()
pub unsafe fn validRequestorForSendType_returnType(
&self,
sendType: Option<&NSPasteboardType>,
returnType: Option<&NSPasteboardType>
) -> Option<Id<Object, Shared>>
pub unsafe fn pasteAsPlainText(&self, sender: Option<&Object>)
pub unsafe fn pasteAsRichText(&self, sender: Option<&Object>)
source§impl NSTextView
impl NSTextView
NSDragging
pub unsafe fn dragSelectionWithEvent_offset_slideBack(
&self,
event: &NSEvent,
mouseOffset: NSSize,
slideBack: bool
) -> bool
pub unsafe fn dragImageForSelectionWithEvent_origin(
&self,
event: &NSEvent,
origin: NSPointPointer
) -> Option<Id<NSImage, Shared>>
pub unsafe fn acceptableDragTypes(
&self
) -> Id<NSArray<NSPasteboardType>, Shared>
pub unsafe fn dragOperationForDraggingInfo_type(
&self,
dragInfo: &NSDraggingInfo,
type_: &NSPasteboardType
) -> NSDragOperation
pub unsafe fn cleanUpAfterDragOperation(&self)
source§impl NSTextView
impl NSTextView
NSSharing
pub unsafe fn selectedRanges(&self) -> Id<NSArray<NSValue>, Shared>
pub unsafe fn setSelectedRanges(&self, selectedRanges: &NSArray<NSValue>)
pub unsafe fn setSelectedRanges_affinity_stillSelecting(
&self,
ranges: &NSArray<NSValue>,
affinity: NSSelectionAffinity,
stillSelectingFlag: bool
)
pub unsafe fn setSelectedRange_affinity_stillSelecting(
&self,
charRange: NSRange,
affinity: NSSelectionAffinity,
stillSelectingFlag: bool
)
pub unsafe fn selectionAffinity(&self) -> NSSelectionAffinity
pub unsafe fn selectionGranularity(&self) -> NSSelectionGranularity
pub unsafe fn setSelectionGranularity(
&self,
selectionGranularity: NSSelectionGranularity
)
pub unsafe fn selectedTextAttributes(
&self
) -> Id<NSDictionary<NSAttributedStringKey, Object>, Shared>
pub unsafe fn setSelectedTextAttributes(
&self,
selectedTextAttributes: &NSDictionary<NSAttributedStringKey, Object>
)
pub unsafe fn insertionPointColor(&self) -> Id<NSColor, Shared>
pub unsafe fn setInsertionPointColor(&self, insertionPointColor: &NSColor)
pub unsafe fn updateInsertionPointStateAndRestartTimer(&self, restartFlag: bool)
pub unsafe fn markedTextAttributes(
&self
) -> Option<Id<NSDictionary<NSAttributedStringKey, Object>, Shared>>
pub unsafe fn setMarkedTextAttributes(
&self,
markedTextAttributes: Option<&NSDictionary<NSAttributedStringKey, Object>>
)
pub unsafe fn linkTextAttributes(
&self
) -> Option<Id<NSDictionary<NSAttributedStringKey, Object>, Shared>>
pub unsafe fn setLinkTextAttributes(
&self,
linkTextAttributes: Option<&NSDictionary<NSAttributedStringKey, Object>>
)
pub unsafe fn displaysLinkToolTips(&self) -> bool
pub unsafe fn setDisplaysLinkToolTips(&self, displaysLinkToolTips: bool)
pub unsafe fn acceptsGlyphInfo(&self) -> bool
pub unsafe fn setAcceptsGlyphInfo(&self, acceptsGlyphInfo: bool)
pub unsafe fn usesRuler(&self) -> bool
pub unsafe fn setUsesRuler(&self, usesRuler: bool)
pub unsafe fn usesInspectorBar(&self) -> bool
pub unsafe fn setUsesInspectorBar(&self, usesInspectorBar: bool)
pub unsafe fn isContinuousSpellCheckingEnabled(&self) -> bool
pub unsafe fn setContinuousSpellCheckingEnabled(
&self,
continuousSpellCheckingEnabled: bool
)
pub unsafe fn toggleContinuousSpellChecking(&self, sender: Option<&Object>)
pub unsafe fn spellCheckerDocumentTag(&self) -> NSInteger
pub unsafe fn isGrammarCheckingEnabled(&self) -> bool
pub unsafe fn setGrammarCheckingEnabled(&self, grammarCheckingEnabled: bool)
pub unsafe fn toggleGrammarChecking(&self, sender: Option<&Object>)
pub unsafe fn setSpellingState_range(&self, value: NSInteger, charRange: NSRange)
pub unsafe fn typingAttributes(
&self
) -> Id<NSDictionary<NSAttributedStringKey, Object>, Shared>
pub unsafe fn setTypingAttributes(
&self,
typingAttributes: &NSDictionary<NSAttributedStringKey, Object>
)
pub unsafe fn shouldChangeTextInRanges_replacementStrings(
&self,
affectedRanges: &NSArray<NSValue>,
replacementStrings: Option<&NSArray<NSString>>
) -> bool
pub unsafe fn rangesForUserTextChange(
&self
) -> Option<Id<NSArray<NSValue>, Shared>>
pub unsafe fn rangesForUserCharacterAttributeChange(
&self
) -> Option<Id<NSArray<NSValue>, Shared>>
pub unsafe fn rangesForUserParagraphAttributeChange(
&self
) -> Option<Id<NSArray<NSValue>, Shared>>
pub unsafe fn shouldChangeTextInRange_replacementString(
&self,
affectedCharRange: NSRange,
replacementString: Option<&NSString>
) -> bool
pub unsafe fn didChangeText(&self)
pub unsafe fn rangeForUserTextChange(&self) -> NSRange
pub unsafe fn rangeForUserCharacterAttributeChange(&self) -> NSRange
pub unsafe fn rangeForUserParagraphAttributeChange(&self) -> NSRange
pub unsafe fn allowsDocumentBackgroundColorChange(&self) -> bool
pub unsafe fn setAllowsDocumentBackgroundColorChange(
&self,
allowsDocumentBackgroundColorChange: bool
)
pub unsafe fn defaultParagraphStyle(
&self
) -> Option<Id<NSParagraphStyle, Shared>>
pub unsafe fn setDefaultParagraphStyle(
&self,
defaultParagraphStyle: Option<&NSParagraphStyle>
)
pub unsafe fn allowsUndo(&self) -> bool
pub unsafe fn setAllowsUndo(&self, allowsUndo: bool)
pub unsafe fn breakUndoCoalescing(&self)
pub unsafe fn isCoalescingUndo(&self) -> bool
pub unsafe fn allowsImageEditing(&self) -> bool
pub unsafe fn setAllowsImageEditing(&self, allowsImageEditing: bool)
pub unsafe fn showFindIndicatorForRange(&self, charRange: NSRange)
pub unsafe fn usesRolloverButtonForSelection(&self) -> bool
pub unsafe fn setUsesRolloverButtonForSelection(
&self,
usesRolloverButtonForSelection: bool
)
pub unsafe fn delegate(&self) -> Option<Id<NSTextViewDelegate, Shared>>
pub unsafe fn setDelegate(&self, delegate: Option<&NSTextViewDelegate>)
pub unsafe fn isEditable(&self) -> bool
pub unsafe fn setEditable(&self, editable: bool)
pub unsafe fn isSelectable(&self) -> bool
pub unsafe fn setSelectable(&self, selectable: bool)
pub unsafe fn isRichText(&self) -> bool
pub unsafe fn setRichText(&self, richText: bool)
pub unsafe fn importsGraphics(&self) -> bool
pub unsafe fn setImportsGraphics(&self, importsGraphics: bool)
pub unsafe fn drawsBackground(&self) -> bool
pub unsafe fn setDrawsBackground(&self, drawsBackground: bool)
pub unsafe fn backgroundColor(&self) -> Id<NSColor, Shared>
pub unsafe fn setBackgroundColor(&self, backgroundColor: &NSColor)
pub unsafe fn isFieldEditor(&self) -> bool
pub unsafe fn setFieldEditor(&self, fieldEditor: bool)
pub unsafe fn usesFontPanel(&self) -> bool
pub unsafe fn setUsesFontPanel(&self, usesFontPanel: bool)
pub unsafe fn isRulerVisible(&self) -> bool
pub unsafe fn setRulerVisible(&self, rulerVisible: bool)
pub unsafe fn setSelectedRange(&self, charRange: NSRange)
pub unsafe fn allowedInputSourceLocales(
&self
) -> Option<Id<NSArray<NSString>, Shared>>
pub unsafe fn setAllowedInputSourceLocales(
&self,
allowedInputSourceLocales: Option<&NSArray<NSString>>
)
source§impl NSTextView
impl NSTextView
NSTextChecking
pub unsafe fn smartInsertDeleteEnabled(&self) -> bool
pub unsafe fn setSmartInsertDeleteEnabled(&self, smartInsertDeleteEnabled: bool)
pub unsafe fn smartDeleteRangeForProposedRange(
&self,
proposedCharRange: NSRange
) -> NSRange
pub unsafe fn toggleSmartInsertDelete(&self, sender: Option<&Object>)
pub unsafe fn smartInsertForString_replacingRange_beforeString_afterString(
&self,
pasteString: &NSString,
charRangeToReplace: NSRange,
beforeString: *mut *mut NSString,
afterString: *mut *mut NSString
)
pub unsafe fn smartInsertBeforeStringForString_replacingRange(
&self,
pasteString: &NSString,
charRangeToReplace: NSRange
) -> Option<Id<NSString, Shared>>
pub unsafe fn smartInsertAfterStringForString_replacingRange(
&self,
pasteString: &NSString,
charRangeToReplace: NSRange
) -> Option<Id<NSString, Shared>>
pub unsafe fn isAutomaticQuoteSubstitutionEnabled(&self) -> bool
pub unsafe fn setAutomaticQuoteSubstitutionEnabled(
&self,
automaticQuoteSubstitutionEnabled: bool
)
pub unsafe fn toggleAutomaticQuoteSubstitution(&self, sender: Option<&Object>)
pub unsafe fn isAutomaticLinkDetectionEnabled(&self) -> bool
pub unsafe fn setAutomaticLinkDetectionEnabled(
&self,
automaticLinkDetectionEnabled: bool
)
pub unsafe fn toggleAutomaticLinkDetection(&self, sender: Option<&Object>)
pub unsafe fn isAutomaticDataDetectionEnabled(&self) -> bool
pub unsafe fn setAutomaticDataDetectionEnabled(
&self,
automaticDataDetectionEnabled: bool
)
pub unsafe fn toggleAutomaticDataDetection(&self, sender: Option<&Object>)
pub unsafe fn isAutomaticDashSubstitutionEnabled(&self) -> bool
pub unsafe fn setAutomaticDashSubstitutionEnabled(
&self,
automaticDashSubstitutionEnabled: bool
)
pub unsafe fn toggleAutomaticDashSubstitution(&self, sender: Option<&Object>)
pub unsafe fn isAutomaticTextReplacementEnabled(&self) -> bool
pub unsafe fn setAutomaticTextReplacementEnabled(
&self,
automaticTextReplacementEnabled: bool
)
pub unsafe fn toggleAutomaticTextReplacement(&self, sender: Option<&Object>)
pub unsafe fn isAutomaticSpellingCorrectionEnabled(&self) -> bool
pub unsafe fn setAutomaticSpellingCorrectionEnabled(
&self,
automaticSpellingCorrectionEnabled: bool
)
pub unsafe fn toggleAutomaticSpellingCorrection(&self, sender: Option<&Object>)
pub unsafe fn enabledTextCheckingTypes(&self) -> NSTextCheckingTypes
pub unsafe fn setEnabledTextCheckingTypes(
&self,
enabledTextCheckingTypes: NSTextCheckingTypes
)
pub unsafe fn checkTextInRange_types_options(
&self,
range: NSRange,
checkingTypes: NSTextCheckingTypes,
options: &NSDictionary<NSTextCheckingOptionKey, Object>
)
pub unsafe fn handleTextCheckingResults_forRange_types_options_orthography_wordCount(
&self,
results: &NSArray<NSTextCheckingResult>,
range: NSRange,
checkingTypes: NSTextCheckingTypes,
options: &NSDictionary<NSTextCheckingOptionKey, Object>,
orthography: &NSOrthography,
wordCount: NSInteger
)
pub unsafe fn orderFrontSubstitutionsPanel(&self, sender: Option<&Object>)
pub unsafe fn checkTextInSelection(&self, sender: Option<&Object>)
pub unsafe fn checkTextInDocument(&self, sender: Option<&Object>)
pub unsafe fn usesFindPanel(&self) -> bool
pub unsafe fn setUsesFindPanel(&self, usesFindPanel: bool)
pub unsafe fn usesFindBar(&self) -> bool
pub unsafe fn setUsesFindBar(&self, usesFindBar: bool)
pub unsafe fn isIncrementalSearchingEnabled(&self) -> bool
pub unsafe fn setIncrementalSearchingEnabled(
&self,
incrementalSearchingEnabled: bool
)
source§impl NSTextView
impl NSTextView
NSQuickLookPreview
pub unsafe fn toggleQuickLookPreviewPanel(&self, sender: Option<&Object>)
pub unsafe fn updateQuickLookPreviewPanel(&self)
source§impl NSTextView
impl NSTextView
NSTextView_SharingService
pub unsafe fn orderFrontSharingServicePicker(&self, sender: Option<&Object>)
source§impl NSTextView
impl NSTextView
NSTextView_TouchBar
pub unsafe fn isAutomaticTextCompletionEnabled(&self) -> bool
pub unsafe fn setAutomaticTextCompletionEnabled(
&self,
automaticTextCompletionEnabled: bool
)
pub unsafe fn toggleAutomaticTextCompletion(&self, sender: Option<&Object>)
pub unsafe fn allowsCharacterPickerTouchBarItem(&self) -> bool
pub unsafe fn setAllowsCharacterPickerTouchBarItem(
&self,
allowsCharacterPickerTouchBarItem: bool
)
pub unsafe fn updateTouchBarItemIdentifiers(&self)
pub unsafe fn updateTextTouchBarItems(&self)
pub unsafe fn updateCandidates(&self)
pub unsafe fn candidateListTouchBarItem(
&self
) -> Option<Id<NSCandidateListTouchBarItem, Shared>>
source§impl NSTextView
impl NSTextView
NSTextView_Factory
pub unsafe fn scrollableTextView() -> Id<NSScrollView, Shared>
pub unsafe fn fieldEditor() -> Id<Self, Shared>
pub unsafe fn scrollableDocumentContentTextView() -> Id<NSScrollView, Shared>
pub unsafe fn scrollablePlainDocumentContentTextView(
) -> Id<NSScrollView, Shared>
source§impl NSTextView
impl NSTextView
NSDeprecated
pub unsafe fn toggleBaseWritingDirection(&self, sender: Option<&Object>)
Methods from Deref<Target = NSText>§
pub unsafe fn string(&self) -> Id<NSString, Shared>
pub unsafe fn setString(&self, string: &NSString)
pub unsafe fn replaceCharactersInRange_withString(
&self,
range: NSRange,
string: &NSString
)
pub unsafe fn replaceCharactersInRange_withRTF(
&self,
range: NSRange,
rtfData: &NSData
)
pub unsafe fn replaceCharactersInRange_withRTFD(
&self,
range: NSRange,
rtfdData: &NSData
)
pub unsafe fn RTFFromRange(&self, range: NSRange) -> Option<Id<NSData, Shared>>
pub unsafe fn RTFDFromRange(&self, range: NSRange) -> Option<Id<NSData, Shared>>
pub unsafe fn writeRTFDToFile_atomically(
&self,
path: &NSString,
flag: bool
) -> bool
pub unsafe fn readRTFDFromFile(&self, path: &NSString) -> bool
pub unsafe fn delegate(&self) -> Option<Id<NSTextDelegate, Shared>>
pub unsafe fn setDelegate(&self, delegate: Option<&NSTextDelegate>)
pub unsafe fn isEditable(&self) -> bool
pub unsafe fn setEditable(&self, editable: bool)
pub unsafe fn isSelectable(&self) -> bool
pub unsafe fn setSelectable(&self, selectable: bool)
pub unsafe fn isRichText(&self) -> bool
pub unsafe fn setRichText(&self, richText: bool)
pub unsafe fn importsGraphics(&self) -> bool
pub unsafe fn setImportsGraphics(&self, importsGraphics: bool)
pub unsafe fn isFieldEditor(&self) -> bool
pub unsafe fn setFieldEditor(&self, fieldEditor: bool)
pub unsafe fn usesFontPanel(&self) -> bool
pub unsafe fn setUsesFontPanel(&self, usesFontPanel: bool)
pub unsafe fn drawsBackground(&self) -> bool
pub unsafe fn setDrawsBackground(&self, drawsBackground: bool)
pub unsafe fn backgroundColor(&self) -> Option<Id<NSColor, Shared>>
pub unsafe fn setBackgroundColor(&self, backgroundColor: Option<&NSColor>)
pub unsafe fn isRulerVisible(&self) -> bool
pub unsafe fn selectedRange(&self) -> NSRange
pub unsafe fn setSelectedRange(&self, selectedRange: NSRange)
pub unsafe fn scrollRangeToVisible(&self, range: NSRange)
pub unsafe fn font(&self) -> Option<Id<NSFont, Shared>>
pub unsafe fn setFont(&self, font: Option<&NSFont>)
pub unsafe fn textColor(&self) -> Option<Id<NSColor, Shared>>
pub unsafe fn setTextColor(&self, textColor: Option<&NSColor>)
pub unsafe fn alignment(&self) -> NSTextAlignment
pub unsafe fn setAlignment(&self, alignment: NSTextAlignment)
pub unsafe fn baseWritingDirection(&self) -> NSWritingDirection
pub unsafe fn setBaseWritingDirection(
&self,
baseWritingDirection: NSWritingDirection
)
pub unsafe fn setTextColor_range(&self, color: Option<&NSColor>, range: NSRange)
pub unsafe fn setFont_range(&self, font: &NSFont, range: NSRange)
pub unsafe fn maxSize(&self) -> NSSize
pub unsafe fn setMaxSize(&self, maxSize: NSSize)
pub unsafe fn minSize(&self) -> NSSize
pub unsafe fn setMinSize(&self, minSize: NSSize)
pub unsafe fn isHorizontallyResizable(&self) -> bool
pub unsafe fn setHorizontallyResizable(&self, horizontallyResizable: bool)
pub unsafe fn isVerticallyResizable(&self) -> bool
pub unsafe fn setVerticallyResizable(&self, verticallyResizable: bool)
pub unsafe fn sizeToFit(&self)
pub unsafe fn copy(&self, sender: Option<&Object>)
pub unsafe fn copyFont(&self, sender: Option<&Object>)
pub unsafe fn copyRuler(&self, sender: Option<&Object>)
pub unsafe fn cut(&self, sender: Option<&Object>)
pub unsafe fn delete(&self, sender: Option<&Object>)
pub unsafe fn paste(&self, sender: Option<&Object>)
pub unsafe fn pasteFont(&self, sender: Option<&Object>)
pub unsafe fn pasteRuler(&self, sender: Option<&Object>)
pub unsafe fn selectAll(&self, sender: Option<&Object>)
pub unsafe fn changeFont(&self, sender: Option<&Object>)
pub unsafe fn alignLeft(&self, sender: Option<&Object>)
pub unsafe fn alignRight(&self, sender: Option<&Object>)
pub unsafe fn alignCenter(&self, sender: Option<&Object>)
pub unsafe fn subscript(&self, sender: Option<&Object>)
pub unsafe fn superscript(&self, sender: Option<&Object>)
pub unsafe fn underline(&self, sender: Option<&Object>)
pub unsafe fn unscript(&self, sender: Option<&Object>)
pub unsafe fn showGuessPanel(&self, sender: Option<&Object>)
pub unsafe fn checkSpelling(&self, sender: Option<&Object>)
pub unsafe fn toggleRuler(&self, sender: Option<&Object>)
Methods from Deref<Target = NSView>§
pub unsafe fn candidateListTouchBarItem(
&self
) -> Option<Id<NSCandidateListTouchBarItem, Shared>>
pub unsafe fn reflectScrolledClipView(&self, clipView: &NSClipView)
pub unsafe fn scrollClipView_toPoint(&self, clipView: &NSClipView, point: NSPoint)
pub unsafe fn leadingAnchor(&self) -> Id<NSLayoutXAxisAnchor, Shared>
pub unsafe fn trailingAnchor(&self) -> Id<NSLayoutXAxisAnchor, Shared>
pub unsafe fn leftAnchor(&self) -> Id<NSLayoutXAxisAnchor, Shared>
pub unsafe fn rightAnchor(&self) -> Id<NSLayoutXAxisAnchor, Shared>
pub unsafe fn topAnchor(&self) -> Id<NSLayoutYAxisAnchor, Shared>
pub unsafe fn bottomAnchor(&self) -> Id<NSLayoutYAxisAnchor, Shared>
pub unsafe fn widthAnchor(&self) -> Id<NSLayoutDimension, Shared>
pub unsafe fn heightAnchor(&self) -> Id<NSLayoutDimension, Shared>
pub unsafe fn centerXAnchor(&self) -> Id<NSLayoutXAxisAnchor, Shared>
pub unsafe fn centerYAnchor(&self) -> Id<NSLayoutYAxisAnchor, Shared>
pub unsafe fn firstBaselineAnchor(&self) -> Id<NSLayoutYAxisAnchor, Shared>
pub unsafe fn lastBaselineAnchor(&self) -> Id<NSLayoutYAxisAnchor, Shared>
pub unsafe fn constraints(&self) -> Id<NSArray<NSLayoutConstraint>, Shared>
pub unsafe fn addConstraint(&self, constraint: &NSLayoutConstraint)
pub unsafe fn addConstraints(&self, constraints: &NSArray<NSLayoutConstraint>)
pub unsafe fn removeConstraint(&self, constraint: &NSLayoutConstraint)
pub unsafe fn removeConstraints(&self, constraints: &NSArray<NSLayoutConstraint>)
pub unsafe fn updateConstraintsForSubtreeIfNeeded(&self)
pub unsafe fn updateConstraints(&self)
pub unsafe fn needsUpdateConstraints(&self) -> bool
pub unsafe fn setNeedsUpdateConstraints(&self, needsUpdateConstraints: bool)
pub unsafe fn translatesAutoresizingMaskIntoConstraints(&self) -> bool
pub unsafe fn setTranslatesAutoresizingMaskIntoConstraints(
&self,
translatesAutoresizingMaskIntoConstraints: bool
)
pub unsafe fn alignmentRectForFrame(&self, frame: NSRect) -> NSRect
pub unsafe fn frameForAlignmentRect(&self, alignmentRect: NSRect) -> NSRect
pub unsafe fn alignmentRectInsets(&self) -> NSEdgeInsets
pub unsafe fn firstBaselineOffsetFromTop(&self) -> CGFloat
pub unsafe fn lastBaselineOffsetFromBottom(&self) -> CGFloat
pub unsafe fn baselineOffsetFromBottom(&self) -> CGFloat
pub unsafe fn intrinsicContentSize(&self) -> NSSize
pub unsafe fn invalidateIntrinsicContentSize(&self)
pub unsafe fn contentHuggingPriorityForOrientation(
&self,
orientation: NSLayoutConstraintOrientation
) -> NSLayoutPriority
pub unsafe fn setContentHuggingPriority_forOrientation(
&self,
priority: NSLayoutPriority,
orientation: NSLayoutConstraintOrientation
)
pub unsafe fn contentCompressionResistancePriorityForOrientation(
&self,
orientation: NSLayoutConstraintOrientation
) -> NSLayoutPriority
pub unsafe fn setContentCompressionResistancePriority_forOrientation(
&self,
priority: NSLayoutPriority,
orientation: NSLayoutConstraintOrientation
)
pub unsafe fn isHorizontalContentSizeConstraintActive(&self) -> bool
pub unsafe fn setHorizontalContentSizeConstraintActive(
&self,
horizontalContentSizeConstraintActive: bool
)
pub unsafe fn isVerticalContentSizeConstraintActive(&self) -> bool
pub unsafe fn setVerticalContentSizeConstraintActive(
&self,
verticalContentSizeConstraintActive: bool
)
pub unsafe fn fittingSize(&self) -> NSSize
pub unsafe fn constraintsAffectingLayoutForOrientation(
&self,
orientation: NSLayoutConstraintOrientation
) -> Id<NSArray<NSLayoutConstraint>, Shared>
pub unsafe fn hasAmbiguousLayout(&self) -> bool
pub unsafe fn exerciseAmbiguityInLayout(&self)
pub unsafe fn addLayoutGuide(&self, guide: &NSLayoutGuide)
pub unsafe fn removeLayoutGuide(&self, guide: &NSLayoutGuide)
pub unsafe fn layoutGuides(&self) -> Id<NSArray<NSLayoutGuide>, Shared>
pub unsafe fn enclosingMenuItem(&self) -> Option<Id<NSMenuItem, Shared>>
pub unsafe fn wantsBestResolutionOpenGLSurface(&self) -> bool
pub unsafe fn setWantsBestResolutionOpenGLSurface(
&self,
wantsBestResolutionOpenGLSurface: bool
)
pub unsafe fn wantsExtendedDynamicRangeOpenGLSurface(&self) -> bool
pub unsafe fn setWantsExtendedDynamicRangeOpenGLSurface(
&self,
wantsExtendedDynamicRangeOpenGLSurface: bool
)
pub unsafe fn pressureConfiguration(
&self
) -> Option<Id<NSPressureConfiguration, Shared>>
pub unsafe fn setPressureConfiguration(
&self,
pressureConfiguration: Option<&NSPressureConfiguration>
)
pub unsafe fn rulerView_shouldMoveMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
) -> bool
pub unsafe fn rulerView_willMoveMarker_toLocation(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker,
location: CGFloat
) -> CGFloat
pub unsafe fn rulerView_didMoveMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
)
pub unsafe fn rulerView_shouldRemoveMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
) -> bool
pub unsafe fn rulerView_didRemoveMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
)
pub unsafe fn rulerView_shouldAddMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
) -> bool
pub unsafe fn rulerView_willAddMarker_atLocation(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker,
location: CGFloat
) -> CGFloat
pub unsafe fn rulerView_didAddMarker(
&self,
ruler: &NSRulerView,
marker: &NSRulerMarker
)
pub unsafe fn rulerView_handleMouseDown(
&self,
ruler: &NSRulerView,
event: &NSEvent
)
pub unsafe fn rulerView_willSetClientView(
&self,
ruler: &NSRulerView,
newClient: &NSView
)
pub unsafe fn rulerView_locationForPoint(
&self,
ruler: &NSRulerView,
point: NSPoint
) -> CGFloat
pub unsafe fn rulerView_pointForLocation(
&self,
ruler: &NSRulerView,
point: CGFloat
) -> NSPoint
pub unsafe fn window(&self) -> Option<Id<NSWindow, Shared>>
pub unsafe fn superview(&self) -> Option<Id<NSView, Shared>>
pub unsafe fn subviews(&self) -> Id<NSArray<NSView>, Shared>
pub unsafe fn setSubviews(&self, subviews: &NSArray<NSView>)
pub unsafe fn isDescendantOf(&self, view: &NSView) -> bool
pub unsafe fn opaqueAncestor(&self) -> Option<Id<NSView, Shared>>
pub unsafe fn isHidden(&self) -> bool
pub unsafe fn setHidden(&self, hidden: bool)
pub unsafe fn isHiddenOrHasHiddenAncestor(&self) -> bool
pub unsafe fn getRectsBeingDrawn_count(
&self,
rects: *mut *mut NSRect,
count: *mut NSInteger
)
pub unsafe fn needsToDrawRect(&self, rect: NSRect) -> bool
pub unsafe fn wantsDefaultClipping(&self) -> bool
pub unsafe fn viewDidHide(&self)
pub unsafe fn viewDidUnhide(&self)
pub unsafe fn addSubview(&self, view: &NSView)
pub unsafe fn addSubview_positioned_relativeTo(
&self,
view: &NSView,
place: NSWindowOrderingMode,
otherView: Option<&NSView>
)
pub unsafe fn sortSubviewsUsingFunction_context(
&self,
compare: unsafe extern "C" fn(_: NonNull<NSView>, _: NonNull<NSView>, _: *mut c_void) -> NSComparisonResult,
context: *mut c_void
)
pub unsafe fn viewWillMoveToWindow(&self, newWindow: Option<&NSWindow>)
pub unsafe fn viewDidMoveToWindow(&self)
pub unsafe fn viewWillMoveToSuperview(&self, newSuperview: Option<&NSView>)
pub unsafe fn viewDidMoveToSuperview(&self)
pub unsafe fn didAddSubview(&self, subview: &NSView)
pub unsafe fn willRemoveSubview(&self, subview: &NSView)
pub unsafe fn removeFromSuperview(&self)
pub unsafe fn replaceSubview_with(&self, oldView: &NSView, newView: &NSView)
pub unsafe fn removeFromSuperviewWithoutNeedingDisplay(&self)
pub unsafe fn viewDidChangeBackingProperties(&self)
pub unsafe fn postsFrameChangedNotifications(&self) -> bool
pub unsafe fn setPostsFrameChangedNotifications(
&self,
postsFrameChangedNotifications: bool
)
pub unsafe fn resizeSubviewsWithOldSize(&self, oldSize: NSSize)
pub unsafe fn resizeWithOldSuperviewSize(&self, oldSize: NSSize)
pub unsafe fn autoresizesSubviews(&self) -> bool
pub unsafe fn setAutoresizesSubviews(&self, autoresizesSubviews: bool)
pub unsafe fn autoresizingMask(&self) -> NSAutoresizingMaskOptions
pub unsafe fn setAutoresizingMask(
&self,
autoresizingMask: NSAutoresizingMaskOptions
)
pub unsafe fn setFrameOrigin(&self, newOrigin: NSPoint)
pub unsafe fn setFrameSize(&self, newSize: NSSize)
pub unsafe fn frame(&self) -> NSRect
pub unsafe fn setFrame(&self, frame: NSRect)
pub unsafe fn frameRotation(&self) -> CGFloat
pub unsafe fn setFrameRotation(&self, frameRotation: CGFloat)
pub unsafe fn frameCenterRotation(&self) -> CGFloat
pub unsafe fn setFrameCenterRotation(&self, frameCenterRotation: CGFloat)
pub unsafe fn setBoundsOrigin(&self, newOrigin: NSPoint)
pub unsafe fn setBoundsSize(&self, newSize: NSSize)
pub unsafe fn boundsRotation(&self) -> CGFloat
pub unsafe fn setBoundsRotation(&self, boundsRotation: CGFloat)
pub unsafe fn translateOriginToPoint(&self, translation: NSPoint)
pub unsafe fn scaleUnitSquareToSize(&self, newUnitSize: NSSize)
pub unsafe fn rotateByAngle(&self, angle: CGFloat)
pub unsafe fn bounds(&self) -> NSRect
pub unsafe fn setBounds(&self, bounds: NSRect)
pub unsafe fn isFlipped(&self) -> bool
pub unsafe fn isRotatedFromBase(&self) -> bool
pub unsafe fn isRotatedOrScaledFromBase(&self) -> bool
pub unsafe fn isOpaque(&self) -> bool
pub unsafe fn convertPoint_fromView(
&self,
point: NSPoint,
view: Option<&NSView>
) -> NSPoint
pub unsafe fn convertPoint_toView(
&self,
point: NSPoint,
view: Option<&NSView>
) -> NSPoint
pub unsafe fn convertSize_fromView(
&self,
size: NSSize,
view: Option<&NSView>
) -> NSSize
pub unsafe fn convertSize_toView(
&self,
size: NSSize,
view: Option<&NSView>
) -> NSSize
pub unsafe fn convertRect_fromView(
&self,
rect: NSRect,
view: Option<&NSView>
) -> NSRect
pub unsafe fn convertRect_toView(
&self,
rect: NSRect,
view: Option<&NSView>
) -> NSRect
pub unsafe fn backingAlignedRect_options(
&self,
rect: NSRect,
options: NSAlignmentOptions
) -> NSRect
pub unsafe fn centerScanRect(&self, rect: NSRect) -> NSRect
pub unsafe fn convertPointToBacking(&self, point: NSPoint) -> NSPoint
pub unsafe fn convertPointFromBacking(&self, point: NSPoint) -> NSPoint
pub unsafe fn convertSizeToBacking(&self, size: NSSize) -> NSSize
pub unsafe fn convertSizeFromBacking(&self, size: NSSize) -> NSSize
pub unsafe fn convertRectToBacking(&self, rect: NSRect) -> NSRect
pub unsafe fn convertRectFromBacking(&self, rect: NSRect) -> NSRect
pub unsafe fn convertPointToLayer(&self, point: NSPoint) -> NSPoint
pub unsafe fn convertPointFromLayer(&self, point: NSPoint) -> NSPoint
pub unsafe fn convertSizeToLayer(&self, size: NSSize) -> NSSize
pub unsafe fn convertSizeFromLayer(&self, size: NSSize) -> NSSize
pub unsafe fn convertRectToLayer(&self, rect: NSRect) -> NSRect
pub unsafe fn convertRectFromLayer(&self, rect: NSRect) -> NSRect
pub unsafe fn canDrawConcurrently(&self) -> bool
pub unsafe fn setCanDrawConcurrently(&self, canDrawConcurrently: bool)
pub unsafe fn canDraw(&self) -> bool
pub unsafe fn setNeedsDisplayInRect(&self, invalidRect: NSRect)
pub unsafe fn needsDisplay(&self) -> bool
pub unsafe fn setNeedsDisplay(&self, needsDisplay: bool)
pub unsafe fn lockFocus(&self)
pub unsafe fn unlockFocus(&self)
pub unsafe fn lockFocusIfCanDraw(&self) -> bool
pub unsafe fn lockFocusIfCanDrawInContext(
&self,
context: &NSGraphicsContext
) -> bool
pub unsafe fn visibleRect(&self) -> NSRect
pub unsafe fn display(&self)
pub unsafe fn displayIfNeeded(&self)
pub unsafe fn displayIfNeededIgnoringOpacity(&self)
pub unsafe fn displayRect(&self, rect: NSRect)
pub unsafe fn displayIfNeededInRect(&self, rect: NSRect)
pub unsafe fn displayRectIgnoringOpacity(&self, rect: NSRect)
pub unsafe fn displayIfNeededInRectIgnoringOpacity(&self, rect: NSRect)
pub unsafe fn drawRect(&self, dirtyRect: NSRect)
pub unsafe fn displayRectIgnoringOpacity_inContext(
&self,
rect: NSRect,
context: &NSGraphicsContext
)
pub unsafe fn bitmapImageRepForCachingDisplayInRect(
&self,
rect: NSRect
) -> Option<Id<NSBitmapImageRep, Shared>>
pub unsafe fn cacheDisplayInRect_toBitmapImageRep(
&self,
rect: NSRect,
bitmapImageRep: &NSBitmapImageRep
)
pub unsafe fn viewWillDraw(&self)
pub unsafe fn scrollPoint(&self, point: NSPoint)
pub unsafe fn scrollRectToVisible(&self, rect: NSRect) -> bool
pub unsafe fn autoscroll(&self, event: &NSEvent) -> bool
pub unsafe fn adjustScroll(&self, newVisible: NSRect) -> NSRect
pub unsafe fn scrollRect_by(&self, rect: NSRect, delta: NSSize)
pub unsafe fn translateRectsNeedingDisplayInRect_by(
&self,
clipRect: NSRect,
delta: NSSize
)
pub unsafe fn hitTest(&self, point: NSPoint) -> Option<Id<NSView, Shared>>
pub unsafe fn mouse_inRect(&self, point: NSPoint, rect: NSRect) -> bool
pub unsafe fn viewWithTag(&self, tag: NSInteger) -> Option<Id<NSView, Shared>>
pub unsafe fn tag(&self) -> NSInteger
pub unsafe fn performKeyEquivalent(&self, event: &NSEvent) -> bool
pub unsafe fn acceptsFirstMouse(&self, event: Option<&NSEvent>) -> bool
pub unsafe fn shouldDelayWindowOrderingForEvent(&self, event: &NSEvent) -> bool
pub unsafe fn needsPanelToBecomeKey(&self) -> bool
pub unsafe fn mouseDownCanMoveWindow(&self) -> bool
pub unsafe fn acceptsTouchEvents(&self) -> bool
pub unsafe fn setAcceptsTouchEvents(&self, acceptsTouchEvents: bool)
pub unsafe fn wantsRestingTouches(&self) -> bool
pub unsafe fn setWantsRestingTouches(&self, wantsRestingTouches: bool)
pub unsafe fn addCursorRect_cursor(&self, rect: NSRect, object: &NSCursor)
pub unsafe fn removeCursorRect_cursor(&self, rect: NSRect, object: &NSCursor)
pub unsafe fn discardCursorRects(&self)
pub unsafe fn resetCursorRects(&self)
pub unsafe fn addTrackingRect_owner_userData_assumeInside(
&self,
rect: NSRect,
owner: &Object,
data: *mut c_void,
flag: bool
) -> NSTrackingRectTag
pub unsafe fn removeTrackingRect(&self, tag: NSTrackingRectTag)
pub unsafe fn layerContentsRedrawPolicy(
&self
) -> NSViewLayerContentsRedrawPolicy
pub unsafe fn setLayerContentsRedrawPolicy(
&self,
layerContentsRedrawPolicy: NSViewLayerContentsRedrawPolicy
)
pub unsafe fn layerContentsPlacement(&self) -> NSViewLayerContentsPlacement
pub unsafe fn setLayerContentsPlacement(
&self,
layerContentsPlacement: NSViewLayerContentsPlacement
)
pub unsafe fn wantsLayer(&self) -> bool
pub unsafe fn setWantsLayer(&self, wantsLayer: bool)
pub unsafe fn wantsUpdateLayer(&self) -> bool
pub unsafe fn updateLayer(&self)
pub unsafe fn canDrawSubviewsIntoLayer(&self) -> bool
pub unsafe fn setCanDrawSubviewsIntoLayer(&self, canDrawSubviewsIntoLayer: bool)
pub unsafe fn layoutSubtreeIfNeeded(&self)
pub unsafe fn layout(&self)
pub unsafe fn needsLayout(&self) -> bool
pub unsafe fn setNeedsLayout(&self, needsLayout: bool)
pub unsafe fn alphaValue(&self) -> CGFloat
pub unsafe fn setAlphaValue(&self, alphaValue: CGFloat)
pub unsafe fn layerUsesCoreImageFilters(&self) -> bool
pub unsafe fn setLayerUsesCoreImageFilters(
&self,
layerUsesCoreImageFilters: bool
)
pub unsafe fn shadow(&self) -> Option<Id<NSShadow, Shared>>
pub unsafe fn setShadow(&self, shadow: Option<&NSShadow>)
pub unsafe fn addTrackingArea(&self, trackingArea: &NSTrackingArea)
pub unsafe fn removeTrackingArea(&self, trackingArea: &NSTrackingArea)
pub unsafe fn trackingAreas(&self) -> Id<NSArray<NSTrackingArea>, Shared>
pub unsafe fn updateTrackingAreas(&self)
pub unsafe fn postsBoundsChangedNotifications(&self) -> bool
pub unsafe fn setPostsBoundsChangedNotifications(
&self,
postsBoundsChangedNotifications: bool
)
pub unsafe fn enclosingScrollView(&self) -> Option<Id<NSScrollView, Shared>>
pub unsafe fn willOpenMenu_withEvent(&self, menu: &NSMenu, event: &NSEvent)
pub unsafe fn didCloseMenu_withEvent(
&self,
menu: &NSMenu,
event: Option<&NSEvent>
)
pub unsafe fn toolTip(&self) -> Option<Id<NSString, Shared>>
pub unsafe fn setToolTip(&self, toolTip: Option<&NSString>)
pub unsafe fn addToolTipRect_owner_userData(
&self,
rect: NSRect,
owner: &Object,
data: *mut c_void
) -> NSToolTipTag
pub unsafe fn removeToolTip(&self, tag: NSToolTipTag)
pub unsafe fn removeAllToolTips(&self)
pub unsafe fn viewWillStartLiveResize(&self)
pub unsafe fn viewDidEndLiveResize(&self)
pub unsafe fn inLiveResize(&self) -> bool
pub unsafe fn preservesContentDuringLiveResize(&self) -> bool
pub unsafe fn rectPreservedDuringLiveResize(&self) -> NSRect
pub unsafe fn inputContext(&self) -> Option<Id<NSTextInputContext, Shared>>
pub unsafe fn rectForSmartMagnificationAtPoint_inRect(
&self,
location: NSPoint,
visibleRect: NSRect
) -> NSRect
pub unsafe fn userInterfaceLayoutDirection(
&self
) -> NSUserInterfaceLayoutDirection
pub unsafe fn setUserInterfaceLayoutDirection(
&self,
userInterfaceLayoutDirection: NSUserInterfaceLayoutDirection
)
pub unsafe fn prepareForReuse(&self)
pub unsafe fn prepareContentInRect(&self, rect: NSRect)
pub unsafe fn preparedContentRect(&self) -> NSRect
pub unsafe fn setPreparedContentRect(&self, preparedContentRect: NSRect)
pub unsafe fn allowsVibrancy(&self) -> bool
pub unsafe fn viewDidChangeEffectiveAppearance(&self)
pub unsafe fn nextKeyView(&self) -> Option<Id<NSView, Shared>>
pub unsafe fn setNextKeyView(&self, nextKeyView: Option<&NSView>)
pub unsafe fn previousKeyView(&self) -> Option<Id<NSView, Shared>>
pub unsafe fn nextValidKeyView(&self) -> Option<Id<NSView, Shared>>
pub unsafe fn previousValidKeyView(&self) -> Option<Id<NSView, Shared>>
pub unsafe fn canBecomeKeyView(&self) -> bool
pub unsafe fn setKeyboardFocusRingNeedsDisplayInRect(&self, rect: NSRect)
pub unsafe fn focusRingType(&self) -> NSFocusRingType
pub unsafe fn setFocusRingType(&self, focusRingType: NSFocusRingType)
pub unsafe fn drawFocusRingMask(&self)
pub unsafe fn focusRingMaskBounds(&self) -> NSRect
pub unsafe fn noteFocusRingMaskChanged(&self)
pub unsafe fn writeEPSInsideRect_toPasteboard(
&self,
rect: NSRect,
pasteboard: &NSPasteboard
)
pub unsafe fn dataWithEPSInsideRect(&self, rect: NSRect) -> Id<NSData, Shared>
pub unsafe fn writePDFInsideRect_toPasteboard(
&self,
rect: NSRect,
pasteboard: &NSPasteboard
)
pub unsafe fn dataWithPDFInsideRect(&self, rect: NSRect) -> Id<NSData, Shared>
pub unsafe fn print(&self, sender: Option<&Object>)
pub unsafe fn knowsPageRange(&self, range: NSRangePointer) -> bool
pub unsafe fn heightAdjustLimit(&self) -> CGFloat
pub unsafe fn widthAdjustLimit(&self) -> CGFloat
pub unsafe fn adjustPageWidthNew_left_right_limit(
&self,
newRight: NonNull<CGFloat>,
oldLeft: CGFloat,
oldRight: CGFloat,
rightLimit: CGFloat
)
pub unsafe fn adjustPageHeightNew_top_bottom_limit(
&self,
newBottom: NonNull<CGFloat>,
oldTop: CGFloat,
oldBottom: CGFloat,
bottomLimit: CGFloat
)
pub unsafe fn rectForPage(&self, page: NSInteger) -> NSRect
pub unsafe fn locationOfPrintRect(&self, rect: NSRect) -> NSPoint
pub unsafe fn drawPageBorderWithSize(&self, borderSize: NSSize)
pub unsafe fn pageHeader(&self) -> Id<NSAttributedString, Shared>
pub unsafe fn drawSheetBorderWithSize(&self, borderSize: NSSize)
pub unsafe fn printJobTitle(&self) -> Id<NSString, Shared>
pub unsafe fn beginDocument(&self)
pub unsafe fn endDocument(&self)
pub unsafe fn beginPageInRect_atPlacement(&self, rect: NSRect, location: NSPoint)
pub unsafe fn endPage(&self)
pub unsafe fn beginDraggingSessionWithItems_event_source(
&self,
items: &NSArray<NSDraggingItem>,
event: &NSEvent,
source: &NSDraggingSource
) -> Id<NSDraggingSession, Shared>
pub unsafe fn registeredDraggedTypes(
&self
) -> Id<NSArray<NSPasteboardType>, Shared>
pub unsafe fn registerForDraggedTypes(
&self,
newTypes: &NSArray<NSPasteboardType>
)
pub unsafe fn unregisterDraggedTypes(&self)
pub unsafe fn enterFullScreenMode_withOptions(
&self,
screen: &NSScreen,
options: Option<&NSDictionary<NSViewFullScreenModeOptionKey, Object>>
) -> bool
pub unsafe fn exitFullScreenModeWithOptions(
&self,
options: Option<&NSDictionary<NSViewFullScreenModeOptionKey, Object>>
)
pub unsafe fn isInFullScreenMode(&self) -> bool
pub unsafe fn showDefinitionForAttributedString_atPoint(
&self,
attrString: Option<&NSAttributedString>,
textBaselineOrigin: NSPoint
)
pub unsafe fn showDefinitionForAttributedString_range_options_baselineOriginProvider(
&self,
attrString: Option<&NSAttributedString>,
targetRange: NSRange,
options: Option<&NSDictionary<NSDefinitionOptionKey, Object>>,
originProvider: Option<&Block<(NSRange,), NSPoint>>
)
pub unsafe fn isDrawingFindIndicator(&self) -> bool
pub unsafe fn gestureRecognizers(
&self
) -> Id<NSArray<NSGestureRecognizer>, Shared>
pub unsafe fn setGestureRecognizers(
&self,
gestureRecognizers: &NSArray<NSGestureRecognizer>
)
pub unsafe fn addGestureRecognizer(
&self,
gestureRecognizer: &NSGestureRecognizer
)
pub unsafe fn removeGestureRecognizer(
&self,
gestureRecognizer: &NSGestureRecognizer
)
pub unsafe fn allowedTouchTypes(&self) -> NSTouchTypeMask
pub unsafe fn setAllowedTouchTypes(&self, allowedTouchTypes: NSTouchTypeMask)
pub unsafe fn safeAreaInsets(&self) -> NSEdgeInsets
pub unsafe fn additionalSafeAreaInsets(&self) -> NSEdgeInsets
pub unsafe fn setAdditionalSafeAreaInsets(
&self,
additionalSafeAreaInsets: NSEdgeInsets
)
pub unsafe fn safeAreaLayoutGuide(&self) -> Id<NSLayoutGuide, Shared>
pub unsafe fn safeAreaRect(&self) -> NSRect
pub unsafe fn layoutMarginsGuide(&self) -> Id<NSLayoutGuide, Shared>
pub unsafe fn dragImage_at_offset_event_pasteboard_source_slideBack(
&self,
image: &NSImage,
viewLocation: NSPoint,
initialOffset: NSSize,
event: &NSEvent,
pboard: &NSPasteboard,
sourceObj: &Object,
slideFlag: bool
)
pub unsafe fn dragFile_fromRect_slideBack_event(
&self,
filename: &NSString,
rect: NSRect,
flag: bool,
event: &NSEvent
) -> bool
pub unsafe fn dragPromisedFilesOfTypes_fromRect_source_slideBack_event(
&self,
typeArray: &NSArray<NSString>,
rect: NSRect,
sourceObject: &Object,
flag: bool,
event: &NSEvent
) -> bool
pub unsafe fn convertPointToBase(&self, point: NSPoint) -> NSPoint
pub unsafe fn convertPointFromBase(&self, point: NSPoint) -> NSPoint
pub unsafe fn convertSizeToBase(&self, size: NSSize) -> NSSize
pub unsafe fn convertSizeFromBase(&self, size: NSSize) -> NSSize
pub unsafe fn convertRectToBase(&self, rect: NSRect) -> NSRect
pub unsafe fn convertRectFromBase(&self, rect: NSRect) -> NSRect
pub unsafe fn performMnemonic(&self, string: &NSString) -> bool
pub unsafe fn shouldDrawColor(&self) -> bool
pub unsafe fn gState(&self) -> NSInteger
pub unsafe fn allocateGState(&self)
pub unsafe fn setUpGState(&self)
pub unsafe fn renewGState(&self)
Methods from Deref<Target = NSResponder>§
pub unsafe fn interfaceStyle(&self) -> NSInterfaceStyle
pub unsafe fn setInterfaceStyle(&self, interfaceStyle: NSInterfaceStyle)
pub unsafe fn nextResponder(&self) -> Option<Id<NSResponder, Shared>>
pub unsafe fn setNextResponder(&self, nextResponder: Option<&NSResponder>)
pub unsafe fn tryToPerform_with(
&self,
action: Sel,
object: Option<&Object>
) -> bool
pub unsafe fn performKeyEquivalent(&self, event: &NSEvent) -> bool
pub unsafe fn validRequestorForSendType_returnType(
&self,
sendType: Option<&NSPasteboardType>,
returnType: Option<&NSPasteboardType>
) -> Option<Id<Object, Shared>>
pub unsafe fn mouseDown(&self, event: &NSEvent)
pub unsafe fn rightMouseDown(&self, event: &NSEvent)
pub unsafe fn otherMouseDown(&self, event: &NSEvent)
pub unsafe fn mouseUp(&self, event: &NSEvent)
pub unsafe fn rightMouseUp(&self, event: &NSEvent)
pub unsafe fn otherMouseUp(&self, event: &NSEvent)
pub unsafe fn mouseMoved(&self, event: &NSEvent)
pub unsafe fn mouseDragged(&self, event: &NSEvent)
pub unsafe fn scrollWheel(&self, event: &NSEvent)
pub unsafe fn rightMouseDragged(&self, event: &NSEvent)
pub unsafe fn otherMouseDragged(&self, event: &NSEvent)
pub unsafe fn mouseEntered(&self, event: &NSEvent)
pub unsafe fn mouseExited(&self, event: &NSEvent)
pub unsafe fn keyDown(&self, event: &NSEvent)
pub unsafe fn keyUp(&self, event: &NSEvent)
pub unsafe fn flagsChanged(&self, event: &NSEvent)
pub unsafe fn tabletPoint(&self, event: &NSEvent)
pub unsafe fn tabletProximity(&self, event: &NSEvent)
pub unsafe fn cursorUpdate(&self, event: &NSEvent)
pub unsafe fn magnifyWithEvent(&self, event: &NSEvent)
pub unsafe fn rotateWithEvent(&self, event: &NSEvent)
pub unsafe fn swipeWithEvent(&self, event: &NSEvent)
pub unsafe fn beginGestureWithEvent(&self, event: &NSEvent)
pub unsafe fn endGestureWithEvent(&self, event: &NSEvent)
pub unsafe fn smartMagnifyWithEvent(&self, event: &NSEvent)
pub unsafe fn changeModeWithEvent(&self, event: &NSEvent)
pub unsafe fn touchesBeganWithEvent(&self, event: &NSEvent)
pub unsafe fn touchesMovedWithEvent(&self, event: &NSEvent)
pub unsafe fn touchesEndedWithEvent(&self, event: &NSEvent)
pub unsafe fn touchesCancelledWithEvent(&self, event: &NSEvent)
pub unsafe fn quickLookWithEvent(&self, event: &NSEvent)
pub unsafe fn pressureChangeWithEvent(&self, event: &NSEvent)
pub unsafe fn noResponderFor(&self, eventSelector: Sel)
pub unsafe fn acceptsFirstResponder(&self) -> bool
pub unsafe fn becomeFirstResponder(&self) -> bool
pub unsafe fn resignFirstResponder(&self) -> bool
pub unsafe fn interpretKeyEvents(&self, eventArray: &NSArray<NSEvent>)
pub unsafe fn flushBufferedKeyEvents(&self)
pub unsafe fn setMenu(&self, menu: Option<&NSMenu>)
pub unsafe fn showContextHelp(&self, sender: Option<&Object>)
pub unsafe fn helpRequested(&self, eventPtr: &NSEvent)
pub unsafe fn shouldBeTreatedAsInkEvent(&self, event: &NSEvent) -> bool
pub unsafe fn wantsScrollEventsForSwipeTrackingOnAxis(
&self,
axis: NSEventGestureAxis
) -> bool
pub unsafe fn wantsForwardedScrollEventsForAxis(
&self,
axis: NSEventGestureAxis
) -> bool
pub unsafe fn supplementalTargetForAction_sender(
&self,
action: Sel,
sender: Option<&Object>
) -> Option<Id<Object, Shared>>
pub unsafe fn undoManager(&self) -> Option<Id<NSUndoManager, Shared>>
pub unsafe fn validateProposedFirstResponder_forEvent(
&self,
responder: &NSResponder,
event: Option<&NSEvent>
) -> bool
pub unsafe fn presentError_modalForWindow_delegate_didPresentSelector_contextInfo(
&self,
error: &NSError,
window: &NSWindow,
delegate: Option<&Object>,
didPresentSelector: Option<Sel>,
contextInfo: *mut c_void
)
pub unsafe fn presentError(&self, error: &NSError) -> bool
pub unsafe fn willPresentError(&self, error: &NSError) -> Id<NSError, Shared>
pub unsafe fn performTextFinderAction(&self, sender: Option<&Object>)
pub unsafe fn newWindowForTab(&self, sender: Option<&Object>)
pub unsafe fn performMnemonic(&self, string: &NSString) -> bool
pub unsafe fn touchBar(&self) -> Option<Id<NSTouchBar, Shared>>
pub unsafe fn setTouchBar(&self, touchBar: Option<&NSTouchBar>)
pub unsafe fn makeTouchBar(&self) -> Option<Id<NSTouchBar, Shared>>
pub unsafe fn userActivity(&self) -> Option<Id<NSUserActivity, Shared>>
pub unsafe fn setUserActivity(&self, userActivity: Option<&NSUserActivity>)
pub unsafe fn updateUserActivityState(&self, userActivity: &NSUserActivity)
pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn encodeRestorableStateWithCoder_backgroundQueue(
&self,
coder: &NSCoder,
queue: &NSOperationQueue
)
pub unsafe fn restoreStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn invalidateRestorableState(&self)
Methods from Deref<Target = NSObject>§
sourcepub fn is_kind_of<T>(&self) -> boolwhere
T: ClassType,
Available on crate feature Foundation only.
pub fn is_kind_of<T>(&self) -> boolwhere
T: ClassType,
Foundation only.Check if the object is an instance of the class, or one of it’s subclasses.
See Apple’s documentation for more details on what you may (and what you may not) do with this information.
Methods from Deref<Target = Object>§
sourcepub unsafe fn ivar_ptr<T>(&self, name: &str) -> *mut Twhere
T: Encode,
pub unsafe fn ivar_ptr<T>(&self, name: &str) -> *mut Twhere
T: Encode,
Returns a pointer to the instance variable / ivar with the given name.
This is similar to [UnsafeCell::get], see that for more information
on what is and isn’t safe to do.
Usually you will have defined the instance variable yourself with
ClassBuilder::add_ivar, the type of the ivar T must match the
type used in that.
Attempting to access or modify private implementation details of a class that you do no control using this is not supported, and may invoke undefined behaviour.
Library implementors are strongly encouraged to expose a safe interface to the ivar.
Panics
May panic if the object has no ivar with the given name. May also
panic if the type encoding of the ivar differs from the type encoding
of T.
This should purely seen as help while debugging and is not guaranteed
(e.g. it may be disabled when debug_assertions are off).
Safety
The object must have an instance variable with the given name, and it
must be of type T. Any invariants that the object have assumed about
the value of the instance variable must not be violated.
No thread syncronization is done on accesses to the variable, so you must ensure that any access to the returned pointer do not cause data races, and that Rust’s mutability rules are not otherwise violated.
sourcepub unsafe fn ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
pub unsafe fn ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Returns a reference to the instance variable with the given name.
See Object::ivar_ptr for more information, including on when this
panics.
Safety
The object must have an instance variable with the given name, and it
must be of type T.
No thread syncronization is done, so you must ensure that no other
thread is concurrently mutating the variable. This requirement can be
considered upheld if all mutation happens through Object::ivar_mut
(since that takes &mut self).
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: Use Object::ivar instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Object::ivar instead.sourcepub unsafe fn ivar_mut<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
pub unsafe fn ivar_mut<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Returns a mutable reference to the ivar with the given name.
See Object::ivar_ptr for more information, including on when this
panics.
Safety
The object must have an instance variable with the given name, and it
must be of type T.
This access happens through &mut self, which means we know it to be
the only reference, hence you do not need to do any work to ensure
that data races do not happen.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: Use Object::ivar_mut instead.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Object::ivar_mut instead.sourcepub unsafe fn set_ivar<T>(&mut self, name: &str, value: T)where
T: Encode,
pub unsafe fn set_ivar<T>(&mut self, name: &str, value: T)where
T: Encode,
Sets the value of the ivar with the given name.
This is just a helpful shorthand for Object::ivar_mut, see that
for more information.
Safety
Same as Object::ivar_mut.
Trait Implementations§
source§impl AsMut<NSObject> for NSTextView
impl AsMut<NSObject> for NSTextView
source§impl AsMut<NSResponder> for NSTextView
impl AsMut<NSResponder> for NSTextView
source§fn as_mut(&mut self) -> &mut NSResponder
fn as_mut(&mut self) -> &mut NSResponder
source§impl AsMut<NSText> for NSTextView
impl AsMut<NSText> for NSTextView
source§impl AsMut<NSTextView> for NSTextView
impl AsMut<NSTextView> for NSTextView
source§impl AsMut<NSView> for NSTextView
impl AsMut<NSView> for NSTextView
source§impl AsMut<Object> for NSTextView
impl AsMut<Object> for NSTextView
source§impl AsRef<NSObject> for NSTextView
impl AsRef<NSObject> for NSTextView
source§impl AsRef<NSResponder> for NSTextView
impl AsRef<NSResponder> for NSTextView
source§fn as_ref(&self) -> &NSResponder
fn as_ref(&self) -> &NSResponder
source§impl AsRef<NSText> for NSTextView
impl AsRef<NSText> for NSTextView
source§impl AsRef<NSTextView> for NSTextView
impl AsRef<NSTextView> for NSTextView
source§impl AsRef<NSView> for NSTextView
impl AsRef<NSView> for NSTextView
source§impl AsRef<Object> for NSTextView
impl AsRef<Object> for NSTextView
source§impl Borrow<NSObject> for NSTextView
impl Borrow<NSObject> for NSTextView
source§impl Borrow<NSResponder> for NSTextView
impl Borrow<NSResponder> for NSTextView
source§fn borrow(&self) -> &NSResponder
fn borrow(&self) -> &NSResponder
source§impl Borrow<NSText> for NSTextView
impl Borrow<NSText> for NSTextView
source§impl Borrow<NSView> for NSTextView
impl Borrow<NSView> for NSTextView
source§impl Borrow<Object> for NSTextView
impl Borrow<Object> for NSTextView
source§impl BorrowMut<NSObject> for NSTextView
impl BorrowMut<NSObject> for NSTextView
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
source§impl BorrowMut<NSResponder> for NSTextView
impl BorrowMut<NSResponder> for NSTextView
source§fn borrow_mut(&mut self) -> &mut NSResponder
fn borrow_mut(&mut self) -> &mut NSResponder
source§impl BorrowMut<NSText> for NSTextView
impl BorrowMut<NSText> for NSTextView
source§fn borrow_mut(&mut self) -> &mut NSText
fn borrow_mut(&mut self) -> &mut NSText
source§impl BorrowMut<NSView> for NSTextView
impl BorrowMut<NSView> for NSTextView
source§fn borrow_mut(&mut self) -> &mut NSView
fn borrow_mut(&mut self) -> &mut NSView
source§impl BorrowMut<Object> for NSTextView
impl BorrowMut<Object> for NSTextView
source§fn borrow_mut(&mut self) -> &mut Object
fn borrow_mut(&mut self) -> &mut Object
source§impl ClassType for NSTextView
impl ClassType for NSTextView
source§impl Debug for NSTextView
impl Debug for NSTextView
source§impl Deref for NSTextView
impl Deref for NSTextView
source§impl DerefMut for NSTextView
impl DerefMut for NSTextView
source§impl Hash for NSTextView
impl Hash for NSTextView
source§impl PartialEq<NSTextView> for NSTextView
impl PartialEq<NSTextView> for NSTextView
source§fn eq(&self, other: &NSTextView) -> bool
fn eq(&self, other: &NSTextView) -> bool
self and other values to be equal, and is used
by ==.