/*
 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
 */

#import <Cocoa/Cocoa.h>
#import <jni.h>

#import "GlassWindow.h"

@interface GlassWindow (Java)

- (void)_sendJavaWindowMoveToAnotherScreenEventIfNeeded;
- (void)_sendJavaWindowMoveEventForFrame:(NSRect)frame;
- (void)_sendJavaWindowResizeEvent:(int)type forFrame:(NSRect)frame;

- (id)_initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle screen:(NSScreen *)screen jwindow:(jobject)jwindow;
- (NSWindow*)_getCurrentWindow;
- (void)_ungrabFocus;
+ (void)_resetGrab;
- (void)_checkUngrab;
- (void)_grabFocus;
- (void)_setLevel;
- (void)_setResizable;
- (void)_setAlpha;
- (NSRect)_constrainFrame:(NSRect)frame;
- (void)_setFrame;
- (void)_verifyFrame;
- (void)_setMinimumSize;
- (void)_setMaximumSize;
- (void)_setVisible;
- (void)_setWindowFrameWithRect:(NSRect)rect withDisplay:(jboolean)display withAnimate:(jboolean)animate;
- (void)_restorePreZoomedRect;
- (NSScreen*)_getScreen;
- (void)_setEnabled:(NSNumber*)enabled;

- (void)_startSetFrame;
- (void)_stopSetFrame;

- (void)_setFlipFrame:(NSRect)frameRect display:(BOOL)displayFlag animate:(BOOL)animateFlag;
- (NSRect)_flipFrame;

@end
