Platforms to show: All Mac Windows Linux Cross-Platform
NSRectMBS class
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | Cocoa | MBS Main Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
- 14 properties
- property Handle as Ptr
- property Height as Double
- property IsEmpty as boolean
- property MaxX as Double
- property MaxY as Double
- property MidX as Double
- property MidY as Double
- property MinX as Double
- property MinY as Double
- property Origin as NSPointMBS
- property Size as NSSizeMBS
- property Width as Double
- property X as Double
- property Y as Double
- 14 methods
- method Constructor
- method Constructor(p as Ptr)
- method Constructor(s as string)
- method Constructor(X as Double, Y as Double, W as Double, H as Double)
- method Contains(other as NSPointMBS) as boolean
- method Contains(other as NSRectMBS) as boolean
- method Equal(other as NSRectMBS) as boolean
- method Inset(dx as Double, dy as Double) as NSRectMBS
- method Integral as NSRectMBS
- method Intersection(other as NSRectMBS) as NSRectMBS
- method Intersects(other as NSRectMBS) as boolean
- method Operator_Convert as String
- method String as String
- method Union(other as NSRectMBS) as NSRectMBS
- shared method Zero as NSRectMBS
This class has no sub classes.
Blog Entries
- News from the MBS Xojo Plugins in version 24.5
- News from the MBS Xojo Plugins Version 24.4
- Several ways for picture to PDF in MBS Plugins
- MBS Xojo Plugins, version 17.3pr4
- MBS Xojo / Real Studio Plugins, version 16.1pr1
- Apply fonts to font PopupMenu
- MBS Real Studio Plugins, version 12.1pr1
- MBS REALbasic plug-in 9.6
Xojo Developer Magazine
Release notes
- Version 17.3
- Added MinY, MinX, MidY, MidX, MaxY and MaxX for NSRectMBS class.
Some useful global functions for this class:
- NSMakeRectMBS(x as Double, y as Double, w as Double, h as Double) as NSRectMBS
Some methods using this class:
- NSBezierPathMBS.bezierPathWithOvalInRect(r as NSRectMBS) as NSBezierPathMBS
- NSCoderMBS.encodeRect(value as NSRectMBS, key as string)
- NSGraphicsMBS.drawInRect(text as NSAttributedStringMBS, rect as NSRectMBS)
- NSGraphicsMBS.fillRect(r as NSRectMBS)
- NSLayoutManagerMBS.setExtraLineFragmentRect(fragmentRect as NSRectMBS, usedRect as NSRectMBS, TextContainer as NSTextContainerMBS)
- NSScreenMBS.backingAlignedRect(r as NSRectMBS, options as UInt64) as NSRectMBS
- NSSliderMBS.rectOfTickMarkAtIndex(index as Integer) as NSRectMBS
- NSTableViewMBS.rectOfRow(row as Integer) as NSRectMBS
- NSViewControllerMBS.presentViewControllerAsPopover(ViewController as NSViewControllerMBS, RelativeToRect as NSRectMBS, positioningView as NSViewMBS, preferredEdge as Integer, behavior as Integer)
- NSWindowMBS.dataWithPDFInsideRect(r as NSRectMBS) as Memoryblock
Some properties using for this class:
- AVPlayerViewControlMBS.videoBounds as NSRectMBS
- ICScannerFunctionalUnitMBS.scanArea as NSRectMBS
- MKMapViewMBS.annotationVisibleRect as NSRectMBS
- NSBezierPathMBS.Bounds as NSRectMBS
- NSFontMBS.boundingRectForFont as NSRectMBS
- NSSearchFieldMBS.searchTextBounds as NSRectMBS
- NSTextAttachmentMBS.bounds as NSRectMBS
- NSViewMBS.bounds as NSRectMBS
- NSWindowMBS.contentLayoutRect as NSRectMBS
- PDFPageMBS.boundsForBox(box as Integer) as NSRectMBS
Some events using this class:
- CustomNSTextFieldCellMBS.didDrawWithFrame(cellFrame as NSRectMBS, controlView as NSViewMBS)
- CustomNSTextFieldCellMBS.drawWithFrame(cellFrame as NSRectMBS, controlView as NSViewMBS) as boolean
- CustomNSTextFieldCellMBS.imageRectForBounds(rect as NSRectMBS) as NSRectMBS
- CustomNSTextFieldCellMBS.titleRectForBounds(rect as NSRectMBS) as NSRectMBS
- CustomNSViewMBS.focusRingMaskBounds as NSRectMBS
- DesktopNSTableControlMBS.toolTipForCell(cell as NSCellMBS, r as NSRectMBS, tableColumn as NSTableColumnMBS, row as Int64, mouseLocation as NSPointMBS) as string
- NSSearchFieldControlMBS.searchButtonRectForBounds(controlRect as NSRectMBS, cellRect as NSRectMBS) as NSRectMBS
- NSSharingServiceDelegateMBS.sourceFrameOnScreenForShareItem(service as NSSharingServiceMBS, item as Variant) as NSRectMBS
- QLPreviewPanelMBS.sourceFrameOnScreenForPreviewItem(file as folderitem) as NSRectMBS
- QLPreviewPanelMBS.transitionImageForPreviewItem(file as folderitem, byref contentRect as NSRectMBS) as NSImageMBS
Some examples using this class:
- /MacCocoa/Font PopupMenu in Cocoa
- /MacCocoa/NSStatusItem/Statusitem with PopOver
- /MacCocoa/NSStatusItem/Statusitem with PopOver using Container
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV TableView
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListboxTV with ContainerControl Cells
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Hierarchical & Flat/ListBoxTV OutlineView
- /MacControls/NSCollectionView Test
- /MacFrameworks/CustomNSScroller/Dark scrollbar
- /PDFKit/PDFView/PDFView overlay/PDFView overlay
- /PDFKit/Search and Highlight/Search and Highlight
Some related classes:
- class CustomNSViewMBS
- class ICScannerFunctionalUnitMBS
- class MKMapViewMBS
- class NSBezierPathMBS
- class NSCellMBS
- class NSPointMBS
- class NSSharingServiceDelegateMBS
- class NSSizeMBS
- class PDFPageMBS
- class QLPreviewPanelMBS
The items on this page are in the following plugins: MBS Main Plugin.
NSRangeMBS - NSRegularExpressionMBS