227 Rectangle r = peer.getBounds();
228 r.x = r.y = 0;
229 return r;
230 } else {
231 return new Rectangle(width, height);
232 }
233 }
234
235 /**
236 * Returns destination Image associated with this SurfaceData.
237 */
238 public Object getDestination() {
239 return offscreenImage;
240 }
241 }
242
243 /**
244 * Updates the layered window with the contents of the surface.
245 *
246 * @param psdops pointer to the native ogl sd structure
247 * @param pData pointer to the AwtWindow peer data
248 * @param w width of the window
249 * @param h height of the window
250 * @see sun.awt.windows.TranslucentWindowPainter
251 */
252 public static native boolean updateWindowAccelImpl(long psdops,
253 WComponentPeer peer,
254 int w, int h);
255 }
|
227 Rectangle r = peer.getBounds();
228 r.x = r.y = 0;
229 return r;
230 } else {
231 return new Rectangle(width, height);
232 }
233 }
234
235 /**
236 * Returns destination Image associated with this SurfaceData.
237 */
238 public Object getDestination() {
239 return offscreenImage;
240 }
241 }
242
243 /**
244 * Updates the layered window with the contents of the surface.
245 *
246 * @param psdops pointer to the native ogl sd structure
247 * @param peer pointer to the AwtWindow peer data
248 * @param w width of the window
249 * @param h height of the window
250 * @see sun.awt.windows.TranslucentWindowPainter
251 */
252 public static native boolean updateWindowAccelImpl(long psdops,
253 WComponentPeer peer,
254 int w, int h);
255 }
|