Package org.eclipse.swt.internal.cocoa
Class NSWindow
- java.lang.Object
-
- org.eclipse.swt.internal.cocoa.id
-
- org.eclipse.swt.internal.cocoa.NSObject
-
- org.eclipse.swt.internal.cocoa.NSResponder
-
- org.eclipse.swt.internal.cocoa.NSWindow
-
public class NSWindow extends NSResponder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChildWindow(NSWindow childWin, long place)
double
alphaValue()
boolean
areCursorRectsEnabled()
void
becomeKeyWindow()
boolean
canBecomeKeyWindow()
NSPoint
cascadeTopLeftFromPoint(NSPoint topLeftPoint)
void
close()
long
collectionBehavior()
NSView
contentView()
NSPoint
convertBaseToScreen(NSPoint aPoint)
NSPoint
convertScreenToBase(NSPoint aPoint)
NSButtonCell
defaultButtonCell()
id
delegate()
void
deminiaturize(id sender)
void
disableCursorRects()
void
disableFlushWindow()
void
display()
void
enableCursorRects()
void
enableFlushWindow()
void
endEditingFor(id anObject)
NSText
fieldEditor(boolean createFlag, id anObject)
NSResponder
firstResponder()
void
flushWindowIfNeeded()
NSRect
frame()
NSRect
frameRectForContentRect(NSRect contentRect)
NSGraphicsContext
graphicsContext()
boolean
hasShadow()
NSWindow
initWithContentRect(NSRect contentRect, long aStyle, long bufferingType, boolean flag)
NSWindow
initWithContentRect(NSRect contentRect, long aStyle, long bufferingType, boolean flag, NSScreen screen)
void
invalidateShadow()
boolean
isDocumentEdited()
boolean
isKeyWindow()
boolean
isMainWindow()
boolean
isMiniaturized()
boolean
isSheet()
boolean
isVisible()
boolean
isZoomed()
boolean
makeFirstResponder(NSResponder aResponder)
void
makeKeyAndOrderFront(id sender)
NSSize
maxSize()
static double
minFrameWidthWithTitle(NSString aTitle, long aStyle)
void
miniaturize(id sender)
NSSize
minSize()
NSPoint
mouseLocationOutsideOfEventStream()
void
orderBack(id sender)
void
orderFront(id sender)
void
orderFrontRegardless()
void
orderOut(id sender)
void
orderWindow(long place, long otherWin)
NSWindow
parentWindow()
void
removeChildWindow(NSWindow childWin)
NSScreen
screen()
void
sendEvent(NSEvent theEvent)
void
setAcceptsMouseMovedEvents(boolean acceptsMouseMovedEvents)
void
setAlphaValue(double alphaValue)
void
setBackgroundColor(NSColor backgroundColor)
void
setCollectionBehavior(long collectionBehavior)
void
setContentView(NSView contentView)
void
setDefaultButtonCell(NSButtonCell defaultButtonCell)
void
setDelegate(id delegate)
void
setDocumentEdited(boolean documentEdited)
void
setFrame(NSRect frameRect, boolean flag)
void
setFrame(NSRect frameRect, boolean displayFlag, boolean animateFlag)
void
setHasShadow(boolean hasShadow)
void
setHidesOnDeactivate(boolean hidesOnDeactivate)
void
setLevel(long level)
void
setMaxSize(NSSize maxSize)
void
setMinSize(NSSize minSize)
void
setMovable(boolean movable)
void
setOpaque(boolean opaque)
void
setReleasedWhenClosed(boolean releasedWhenClosed)
void
setRepresentedFilename(NSString representedFilename)
void
setRepresentedURL(NSURL representedURL)
void
setShowsResizeIndicator(boolean showsResizeIndicator)
void
setShowsToolbarButton(boolean showsToolbarButton)
void
setTitle(NSString title)
void
setToolbar(NSToolbar toolbar)
long
styleMask()
void
toggleFullScreen(id sender)
NSToolbar
toolbar()
long
windowNumber()
static long
windowNumberAtPoint(NSPoint point, long windowNumber)
void
zoom(id sender)
-
Methods inherited from class org.eclipse.swt.internal.cocoa.NSResponder
acceptsFirstResponder, becomeFirstResponder, cancelOperation, cursorUpdate, doCommandBySelector, flagsChanged, helpRequested, interpretKeyEvents, keyDown, keyUp, magnifyWithEvent, mouseDown, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseUp, noResponderFor, otherMouseDown, otherMouseDragged, otherMouseUp, pageDown, pageUp, performKeyEquivalent, resignFirstResponder, rightMouseDown, rightMouseDragged, rightMouseUp, rotateWithEvent, scrollWheel, swipeWithEvent, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesMovedWithEvent, undoManager, validRequestorForSendType
-
Methods inherited from class org.eclipse.swt.internal.cocoa.NSObject
accessibilityAttributeValue, accessibilitySetOverrideValue, addEventListener, alloc, autorelease, cancelAuthenticationChallenge, className, conformsToProtocol, copy, description, draggedImage, draggingDestinationWindow, draggingLocation, draggingPasteboard, draggingSourceOperationMask, handleEvent, init, isEqual, isKindOfClass, mutableCopy, outlineView, outlineView, outlineView, performSelector, performSelectorOnMainThread, readSelectionFromPasteboard, release, respondsToSelector, retain, retainCount, setValue, superclass, tableView, tableView, useCredential, valueForKey, writeSelectionToPasteboard
-
Methods inherited from class org.eclipse.swt.internal.cocoa.id
equals, hashCode, objc_getClass, toString
-
-
-
-
Constructor Detail
-
NSWindow
public NSWindow()
-
NSWindow
public NSWindow(long id)
-
NSWindow
public NSWindow(id id)
-
-
Method Detail
-
addChildWindow
public void addChildWindow(NSWindow childWin, long place)
-
alphaValue
public double alphaValue()
-
areCursorRectsEnabled
public boolean areCursorRectsEnabled()
-
becomeKeyWindow
public void becomeKeyWindow()
-
canBecomeKeyWindow
public boolean canBecomeKeyWindow()
-
close
public void close()
-
collectionBehavior
public long collectionBehavior()
-
contentView
public NSView contentView()
-
defaultButtonCell
public NSButtonCell defaultButtonCell()
-
delegate
public id delegate()
-
deminiaturize
public void deminiaturize(id sender)
-
disableCursorRects
public void disableCursorRects()
-
disableFlushWindow
public void disableFlushWindow()
-
display
public void display()
-
enableCursorRects
public void enableCursorRects()
-
enableFlushWindow
public void enableFlushWindow()
-
endEditingFor
public void endEditingFor(id anObject)
-
firstResponder
public NSResponder firstResponder()
-
flushWindowIfNeeded
public void flushWindowIfNeeded()
-
frame
public NSRect frame()
-
graphicsContext
public NSGraphicsContext graphicsContext()
-
hasShadow
public boolean hasShadow()
-
initWithContentRect
public NSWindow initWithContentRect(NSRect contentRect, long aStyle, long bufferingType, boolean flag)
-
initWithContentRect
public NSWindow initWithContentRect(NSRect contentRect, long aStyle, long bufferingType, boolean flag, NSScreen screen)
-
invalidateShadow
public void invalidateShadow()
-
isDocumentEdited
public boolean isDocumentEdited()
-
isKeyWindow
public boolean isKeyWindow()
-
isMainWindow
public boolean isMainWindow()
-
isMiniaturized
public boolean isMiniaturized()
-
isSheet
public boolean isSheet()
-
isVisible
public boolean isVisible()
-
isZoomed
public boolean isZoomed()
-
makeFirstResponder
public boolean makeFirstResponder(NSResponder aResponder)
-
makeKeyAndOrderFront
public void makeKeyAndOrderFront(id sender)
-
maxSize
public NSSize maxSize()
-
minFrameWidthWithTitle
public static double minFrameWidthWithTitle(NSString aTitle, long aStyle)
-
minSize
public NSSize minSize()
-
miniaturize
public void miniaturize(id sender)
-
mouseLocationOutsideOfEventStream
public NSPoint mouseLocationOutsideOfEventStream()
-
orderBack
public void orderBack(id sender)
-
orderFront
public void orderFront(id sender)
-
orderFrontRegardless
public void orderFrontRegardless()
-
orderOut
public void orderOut(id sender)
-
orderWindow
public void orderWindow(long place, long otherWin)
-
parentWindow
public NSWindow parentWindow()
-
removeChildWindow
public void removeChildWindow(NSWindow childWin)
-
screen
public NSScreen screen()
-
sendEvent
public void sendEvent(NSEvent theEvent)
-
setAcceptsMouseMovedEvents
public void setAcceptsMouseMovedEvents(boolean acceptsMouseMovedEvents)
-
setAlphaValue
public void setAlphaValue(double alphaValue)
-
setBackgroundColor
public void setBackgroundColor(NSColor backgroundColor)
-
setCollectionBehavior
public void setCollectionBehavior(long collectionBehavior)
-
setContentView
public void setContentView(NSView contentView)
-
setDefaultButtonCell
public void setDefaultButtonCell(NSButtonCell defaultButtonCell)
-
setDelegate
public void setDelegate(id delegate)
-
setDocumentEdited
public void setDocumentEdited(boolean documentEdited)
-
setFrame
public void setFrame(NSRect frameRect, boolean flag)
-
setFrame
public void setFrame(NSRect frameRect, boolean displayFlag, boolean animateFlag)
-
setHasShadow
public void setHasShadow(boolean hasShadow)
-
setHidesOnDeactivate
public void setHidesOnDeactivate(boolean hidesOnDeactivate)
-
setLevel
public void setLevel(long level)
-
setMaxSize
public void setMaxSize(NSSize maxSize)
-
setMinSize
public void setMinSize(NSSize minSize)
-
setMovable
public void setMovable(boolean movable)
-
setOpaque
public void setOpaque(boolean opaque)
-
setReleasedWhenClosed
public void setReleasedWhenClosed(boolean releasedWhenClosed)
-
setRepresentedFilename
public void setRepresentedFilename(NSString representedFilename)
-
setRepresentedURL
public void setRepresentedURL(NSURL representedURL)
-
setShowsResizeIndicator
public void setShowsResizeIndicator(boolean showsResizeIndicator)
-
setShowsToolbarButton
public void setShowsToolbarButton(boolean showsToolbarButton)
-
setTitle
public void setTitle(NSString title)
-
setToolbar
public void setToolbar(NSToolbar toolbar)
-
styleMask
public long styleMask()
-
toggleFullScreen
public void toggleFullScreen(id sender)
-
toolbar
public NSToolbar toolbar()
-
windowNumber
public long windowNumber()
-
windowNumberAtPoint
public static long windowNumberAtPoint(NSPoint point, long windowNumber)
-
zoom
public void zoom(id sender)
-
-