< prev index next >

src/java.desktop/share/native/libsplashscreen/splashscreen_impl.h

Print this page




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef SPLASHSCREEN_IMPL_H
  27 #define SPLASHSCREEN_IMPL_H
  28 
  29 #include "splashscreen_config.h"
  30 #include "splashscreen_gfx.h"
  31 #include "jni.h"
  32 
  33 JNIEXPORT int
  34 SplashLoadMemory(void *pdata, int size); /* requires preloading the file */
  35 
  36 JNIEXPORT int
  37 SplashLoadFile(const char *filename);  // FIXME: range checking for SplashLoadMemory
  38 
  39 JNIEXPORT int
  40 SplashInit(void);
  41 
  42 JNIEXPORT void
  43 SplashClose(void);
  44 
  45 JNIEXPORT void
  46 SplashSetScaleFactor(float);
  47 
  48 JNIEXPORT jboolean
  49 SplashGetScaledImageName(const char*, const char*,
  50                               float*, char*, const size_t scaledImageNameLength);
  51 
  52 JNIEXPORT void
  53 SplashSetFileJarName(const char* fileName, const char* jarName);
  54 
  55 JNIEXPORT int
  56 SplashGetScaledImgNameMaxPstfixLen(const char*);
  57 typedef struct SplashImage
  58 {
  59     rgbquad_t *bitmapBits;


 108     Screen *screen;
 109     Visual *visual;
 110     Colormap cmap;
 111     pthread_mutex_t lock;
 112     Cursor cursor;
 113     XWMHints* wmHints;
 114 #elif defined(WITH_MACOSX)
 115     pthread_mutex_t lock;
 116     int controlpipe[2];
 117     NSWindow * window;
 118 #endif
 119 } Splash;
 120 
 121 /* various shared and/or platform dependent splash screen functions */
 122 
 123 /*************** Platform-specific ******************/
 124 
 125 /* To be implemented in the platform-specific native code. */
 126 
 127 
 128 int  SplashInitPlatform(Splash * splash);
 129 void SplashCreateThread(Splash * splash);
 130 void SplashCleanupPlatform(Splash * splash);
 131 void SplashDonePlatform(Splash * splash);
 132 
 133 unsigned SplashTime();
 134 char* SplashConvertStringAlloc(const char* in, int *size);
 135 void SplashLock(Splash * splash);
 136 void SplashUnlock(Splash * splash);
 137 
 138 void SplashInitFrameShape(Splash * splash, int imageIndex);
 139 
 140 void SplashUpdate(Splash * splash);
 141 void SplashReconfigure(Splash * splash);
 142 void SplashClosePlatform(Splash * splash);
 143 
 144 
 145 
 146 /********************* Shared **********************/
 147 Splash *SplashGetInstance();
 148 




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef SPLASHSCREEN_IMPL_H
  27 #define SPLASHSCREEN_IMPL_H
  28 
  29 #include "splashscreen_config.h"
  30 #include "splashscreen_gfx.h"
  31 #include "jni.h"
  32 
  33 JNIEXPORT int
  34 SplashLoadMemory(void *pdata, int size); /* requires preloading the file */
  35 
  36 JNIEXPORT int
  37 SplashLoadFile(const char *filename);  // FIXME: range checking for SplashLoadMemory
  38 
  39 JNIEXPORT void
  40 SplashInit(void);
  41 
  42 JNIEXPORT void
  43 SplashClose(void);
  44 
  45 JNIEXPORT void
  46 SplashSetScaleFactor(float);
  47 
  48 JNIEXPORT jboolean
  49 SplashGetScaledImageName(const char*, const char*,
  50                               float*, char*, const size_t scaledImageNameLength);
  51 
  52 JNIEXPORT void
  53 SplashSetFileJarName(const char* fileName, const char* jarName);
  54 
  55 JNIEXPORT int
  56 SplashGetScaledImgNameMaxPstfixLen(const char*);
  57 typedef struct SplashImage
  58 {
  59     rgbquad_t *bitmapBits;


 108     Screen *screen;
 109     Visual *visual;
 110     Colormap cmap;
 111     pthread_mutex_t lock;
 112     Cursor cursor;
 113     XWMHints* wmHints;
 114 #elif defined(WITH_MACOSX)
 115     pthread_mutex_t lock;
 116     int controlpipe[2];
 117     NSWindow * window;
 118 #endif
 119 } Splash;
 120 
 121 /* various shared and/or platform dependent splash screen functions */
 122 
 123 /*************** Platform-specific ******************/
 124 
 125 /* To be implemented in the platform-specific native code. */
 126 
 127 
 128 void SplashInitPlatform(Splash * splash);
 129 void SplashCreateThread(Splash * splash);
 130 void SplashCleanupPlatform(Splash * splash);
 131 void SplashDonePlatform(Splash * splash);
 132 
 133 unsigned SplashTime();
 134 char* SplashConvertStringAlloc(const char* in, int *size);
 135 void SplashLock(Splash * splash);
 136 void SplashUnlock(Splash * splash);
 137 
 138 void SplashInitFrameShape(Splash * splash, int imageIndex);
 139 
 140 void SplashUpdate(Splash * splash);
 141 void SplashReconfigure(Splash * splash);
 142 void SplashClosePlatform(Splash * splash);
 143 
 144 
 145 
 146 /********************* Shared **********************/
 147 Splash *SplashGetInstance();
 148 


< prev index next >