feat: created PopupWrapper for the popup view

This commit is contained in:
Serhiy Mytrovtsiy
2023-03-25 14:54:30 +01:00
parent 4ddb45e4e1
commit 5105c8c20d
10 changed files with 18 additions and 47 deletions

View File

@@ -12,9 +12,7 @@
import Cocoa
import Kit
internal class Popup: NSStackView, Popup_p {
public var sizeCallback: ((NSSize) -> Void)? = nil
internal class Popup: PopupWrapper {
public init() {
super.init(frame: NSRect(x: 0, y: 0, width: Constants.Popup.width, height: 0))
@@ -53,12 +51,6 @@ internal class Popup: NSStackView, Popup_p {
self.sizeCallback?(self.frame.size)
}
}
// MARK: - Settings
public func settings() -> NSView? {
return nil
}
}
private class GPUView: NSStackView {