JQDesktopBridge.h

00001 /*
00002  * @(#)JQDesktopBridge.h  0.2.0 / 2007-12-23
00003  *
00004  * Copyright (c) 2007, ETF and contributors. All rights reserved.
00005  *
00006  * This software is licensed under the LGPL, version 2.1, license.
00007  * A copy of the license is included in the file LICENSE-LGPL.txt.
00008  */
00009 #ifndef JQDESKTOPBRIDGE_H
00010 #define JQDESKTOPBRIDGE_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 /*^**************************************************************************^*/
00015 /*- JQDesktopBridge Class.                                                   -*/
00016 /*^**************************************************************************^*/
00017 
00024 class JAVAQX_EXPORT JQDesktopBridge
00025 {
00026 public: // native calls
00027   static jobject getScreenSize(JNIEnv *env, jclass cls);
00028   static int getScreenResolution(JNIEnv *env, jclass cls);
00029   static jobject getDesktopBounds(JNIEnv *env, jclass cls);
00030   static jobject takeScreenshot(JNIEnv *env, jclass cls, jlong componentBridge,
00031                                 jstring imageFormat);
00032 };
00033 
00034 /*^**************************************************************************^*/
00035 /*- Macro Definition.                                                        -*/
00036 /*^**************************************************************************^*/
00037 
00038 #define jqDesktopBridge (reinterpret_cast<JQDesktopBridge *>(bridge))
00039 
00040 #endif //JQDESKTOPBRIDGE_H
00041 
00042 /*^*****************************************************************************
00043   File History:
00044 
00045  - 2007-12-23 09:51:03 Slobodan
00046    Initial version
00047 
00048 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.