4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/motion/popup/panel.rb', line 4
def (width, height)
self.initWithContentRect([[0, 0], [width, height]],
styleMask: NSBorderlessWindowMask,
backing: NSBackingStoreBuffered,
defer: false)
self.title = NSBundle.mainBundle.infoDictionary['CFBundleName']
self.delegate = self
self.setBackgroundColor(NSColor.clearColor)
self.setOpaque(false)
self.background = Motion::Popup::Background.alloc.initWithFrame(self.frame)
self.setContentView(self.background)
self.arrow = true
self
end
|