-
Notifications
You must be signed in to change notification settings - Fork 1
OrionTabStretcherView
The view that stretches the background of the tab item to allow it to be centered in older operating systems but also to auto resize whenever needed as well
class OrionTabStretcherView: NSView, OrionWindowResizeDelegate
NSView
, OrionWindowResizeDelegate
A window that gets set to the view before the view gets added to the window to allow the view to iterate the toolbar items
var beforeLoadWindow: NSWindow?
The controlled width constraint that determines that width needed for the tab item
var widthConstraint: NSLayoutConstraint?
A swap variable for the new sizes to be implemented
private var newSize: NSSize?
A boolean value indicating whether the subview has had its centerXAnchor constraint set
private var setSubviewConstraint: Bool = false
Called by the window, alerts the TabStretcherView to resize its constraints
func windowWillResize(toSize: NSSize)
Called by the OrionWindowController
, this resizes the constraints for
on this view corresponding to the amount of size the search field item
should take up.
@objc func updateCustomSizing()
Calculates the width for the view depending on where it is located in the toolbar and expands accordingly
func calculateWidth() -> CGFloat
Generated at 2022-01-11T21:56:49-0800 using swift-doc 1.0.0-rc.1.
Types
- BrowserAction
- MozillaBrowserExtensionManifest
- OptionsUI
- OrionBrowserExtension
- OrionBrowserExtensionError
- OrionDelegate
- OrionExtensionManager
- OrionMenu
- OrionSearchField
- OrionSearchFieldController
- OrionTabStretcherView
- OrionTabbedLocationViewController
- OrionTopSitesAPI
- OrionUserContentController
- OrionWindowController
- OrionWindowType