|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
org.eclipse.swt.opengl.GLCanvas
GLCanvas is a widget capable of displaying OpenGL content. WARNING API STILL UNDER CONSTRUCTION AND SUBJECT TO CHANGE
Field Summary |
---|
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
GLCanvas(Composite parent,
int style,
GLData data)
Create a GLCanvas widget using the attributes described in the GLData object provided. |
Method Summary | |
---|---|
GLData |
getGLData()
Returns a GLData object describing the created context. |
boolean |
isCurrent()
Returns a boolean indicating whether the receiver's OpenGL context is the current context. |
void |
setCurrent()
Sets the OpenGL context associated with this GLCanvas to be the current GL context. |
void |
swapBuffers()
Swaps the front and back color buffers. |
Methods inherited from class org.eclipse.swt.widgets.Canvas |
---|
drawBackground, getCaret, scroll, setCaret, setFont |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GLCanvas(Composite parent, int style, GLData data)
parent
- a composite widgetstyle
- the bitwise OR'ing of widget stylesdata
- the requested attributes of the GLCanvas
IllegalArgumentException
- Method Detail |
public GLData getGLData()
SWTException
- public boolean isCurrent()
SWTException
- public void setCurrent()
SWTException
- public void swapBuffers()
SWTException
-
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.