Top Fields Constructors Methods
org.lwjgl.opengl

pack-priv abstract Class MacOSXCanvasPeerInfo

extends MacOSXPeerInfo
Class Inheritance
Known Direct Subclasses
org.lwjgl.opengl.MacOSXDisplayPeerInfo, org.lwjgl.opengl.MacOSXAWTGLCanvasPeerInfo
Imports
java.awt.Canvas, .Insets, .Container, .Component, .Point, .Window, java.awt.event.ComponentEvent, .ComponentListener, java.nio.ByteBuffer, javax.swing.SwingUtilities, org.lwjgl.LWJGLException, .LWJGLUtil

Authors
elias_naur , kappaOne
Version
$Revision$ $Id$

Field Summary

Modifier and TypeField and Description
private final AWTSurfaceLock
public ByteBuffer

Constructor Summary

AccessConstructor and Description
protected
MacOSXCanvasPeerInfo(PixelFormat pixel_format, ContextAttribs attribs, boolean support_pbuffer)

Method Summary

Modifier and TypeMethod and Description
private void
addComponentListener(final Canvas component)

protected void
private static Insets

Returns:

rootpane insets (peer insets) values.
getInsets
(Canvas component)

protected void
initHandle(Canvas component)

private static native ByteBuffer
nInitHandle(ByteBuffer surface_buffer, ByteBuffer peer_info_handle, ByteBuffer window_handle, boolean forceCALayer, boolean autoResizable, int x, int y)

private static native void
nSetLayerBounds(ByteBuffer peer_info_handle, int x, int y, int width, int height)

private static native void
nSetLayerPosition(ByteBuffer peer_info_handle, int x, int y)

private static void
reSetLayerBounds(Canvas component, ByteBuffer peer_info_handle)

fix for CALayer position not covering Canvas due to a Java 7 bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7172187

Inherited from org.lwjgl.opengl.MacOSXPeerInfo:
destroy

Field Detail

awt_surfaceback to summary
private final AWTSurfaceLock awt_surface
window_handleback to summary
public ByteBuffer window_handle

Constructor Detail

MacOSXCanvasPeerInfoback to summary
protected MacOSXCanvasPeerInfo(PixelFormat pixel_format, ContextAttribs attribs, boolean support_pbuffer) throws LWJGLException

Method Detail

addComponentListenerback to summary
private void addComponentListener(final Canvas component)
doUnlockback to summary
protected void doUnlock() throws LWJGLException

Implements abstract org.lwjgl.opengl.PeerInfo.doUnlock.

getInsetsback to summary
private static Insets getInsets(Canvas component)
Returns:Insets

rootpane insets (peer insets) values.

initHandleback to summary
protected void initHandle(Canvas component) throws LWJGLException
nInitHandleback to summary
private static native ByteBuffer nInitHandle(ByteBuffer surface_buffer, ByteBuffer peer_info_handle, ByteBuffer window_handle, boolean forceCALayer, boolean autoResizable, int x, int y) throws LWJGLException
nSetLayerBoundsback to summary
private static native void nSetLayerBounds(ByteBuffer peer_info_handle, int x, int y, int width, int height)
nSetLayerPositionback to summary
private static native void nSetLayerPosition(ByteBuffer peer_info_handle, int x, int y)
reSetLayerBoundsback to summary
private static void reSetLayerBounds(Canvas component, ByteBuffer peer_info_handle)

fix for CALayer position not covering Canvas due to a Java 7 bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7172187