Platforms to show: All Mac Windows Linux Cross-Platform
NSSizeMBS class
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | Cocoa | MBS Main Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
- 3 properties
- 7 methods
- method Constructor
- method Constructor(p as Ptr)
- method Constructor(s as string)
- method Constructor(Width as Double, Height as Double)
- method Equal(other as NSSizeMBS) as boolean
- method Operator_Convert as String
- method String as String
- shared method Zero as NSSizeMBS
This class has no sub classes.
Blog Entries
- MBS Xojo / Real Studio Plugins, version 16.1pr1
- Apply fonts to font PopupMenu
- MBS REALbasic plug-in 9.6
Some useful global functions for this class:
- NSMakeSizeMBS(w as Double, h as Double) as NSSizeMBS
Some methods using this class:
- AVAudioUnitMBS.CreateView(PreferredSize as NSSizeMBS) as NSViewMBS
- NSAttributedStringMBS.size as NSSizeMBS
- NSDockTileMBS.size as NSSizeMBS
- NSFontMBS.advancementForGlyph(aGlyph as Integer) as NSSizeMBS
- NSGraphicsMBS.sizeWithAttributes(text as string, DicAttributes as dictionary = nil) as NSSizeMBS
- NSPrinterMBS.pageSizeForPaper(paperName as string) as NSSizeMBS
- NSViewMBS.convertSizeToView(Size as NSSizeMBS, View as NSViewMBS) as NSSizeMBS
- NSViewMBS.dragImage(image as NSImageMBS, viewLocation as NSPointMBS, offset as NSSizeMBS, NSEvent as NSEventMBS, pboard as NSPasteboardMBS, source as NSViewMBS, slideFlag as boolean)
- NSWindowMBS.dragImage(image as NSImageMBS, viewLocation as NSPointMBS, offset as NSSizeMBS, NSEvent as NSEventMBS, pboard as NSPasteboardMBS, source as NSViewMBS, slideFlag as boolean)
- PDFPageMBS.thumbnailOfSize(size as NSSizeMBS, box as integer) as NSImageMBS
Some properties using for this class:
- NSCollectionViewFlowLayoutMBS.estimatedItemSize as NSSizeMBS
- NSCollectionViewFlowLayoutMBS.headerReferenceSize as NSSizeMBS
- NSCollectionViewLayoutAttributesMBS.size as NSSizeMBS
- NSMenuMBS.size as NSSizeMBS
- NSShadowMBS.shadowOffset as NSSizeMBS
- NSToolbarItemMBS.MaxSize as NSSizeMBS
- NSWindowMBS.aspectRatio as NSSizeMBS
- NSWindowMBS.contentAspectRatio as NSSizeMBS
- IKImageBrowserViewMBS.cellSize as NSSizeMBS
- NSPopoverMBS.contentSize as NSSizeMBS
Some events using this class:
- CustomNSTextFieldCellMBS.cellSize(size as NSSizeMBS) as NSSizeMBS
- DesktopNSCollectionViewControlMBS.referenceSizeForFooterInSection(layout as NSCollectionViewLayoutMBS, section as Integer) as NSSizeMBS
- DesktopNSCollectionViewControlMBS.referenceSizeForHeaderInSection(layout as NSCollectionViewLayoutMBS, section as Integer) as NSSizeMBS
- DesktopNSCollectionViewControlMBS.sizeForItemAtIndexPath(layout as NSCollectionViewLayoutMBS, indexPath as NSIndexPathMBS) as NSSizeMBS
- DesktopNSSplitViewControlMBS.resizeSubviewsWithOldSize(oldSize as NSSizeMBS)
- NSCollectionViewControlMBS.referenceSizeForFooterInSection(layout as NSCollectionViewLayoutMBS, section as Integer) as NSSizeMBS
- NSCollectionViewControlMBS.referenceSizeForHeaderInSection(layout as NSCollectionViewLayoutMBS, section as Integer) as NSSizeMBS
- NSCollectionViewControlMBS.sizeForItemAtIndexPath(layout as NSCollectionViewLayoutMBS, indexPath as NSIndexPathMBS) as NSSizeMBS
- NSSplitViewControlMBS.resizeSubviewsWithOldSize(oldSize as NSSizeMBS)
- NSWindowDelegateMBS.willResizeForVersionBrowser(win as NSWindowMBS, maxPreferredFrameSize as NSSizeMBS, maxAllowedFrameSize as NSSizeMBS) as NSSizeMBS
Some examples using this class:
- /MacBase/NSDictionary Conversion Test
- /MacCocoa/Print RTF via NSGraphics
- /MacCocoa/Shadow Test
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV TableView
- /MacControls/NSCollectionView Test
- /MacControls/Toolbar/Toolbar buttons/Toolbar buttons
- /MacControls/TransparentTextFields
- /MacFrameworks/CustomNSScroller/Dark scrollbar
- /MacFrameworks/Image Capture/Scanner Browser
- /PDFKit/PDFView iOS Test
Some related classes:
- class CustomNSTextFieldCellMBS
- class NSAttributedStringMBS
- class NSCollectionViewLayoutMBS
- class NSDockTileMBS
- class NSEventMBS
- class NSGraphicsMBS
- class NSMenuMBS
- class NSPopoverMBS
- class NSShadowMBS
- class PDFPageMBS
The items on this page are in the following plugins: MBS Main Plugin.
NSSharingServicePickerMBS - NSSliderMBS