Create a GLCanvas widget using the attributes described in the GLData object provided.
Returns a GLData object describing the created context.
Returns a bool indicating whether the receiver's OpenGL context is the current context.
Sets the OpenGL context associated with this GLCanvas to be the current GL context.
Swaps the front and back color buffers.
Fills the interior of the rectangle specified by the arguments, with the receiver's background.
Returns the caret. <p> The caret for the control is automatically hidden and shown when the control is painted or resized, when focus is gained or lost and when an the control is scrolled. To avoid drawing on top of the caret, the programmer must hide and show the caret when drawing in the window any other time. </p>
Returns the IME.
Scrolls a rectangular area of the receiver by first copying the source area to the destination and then causing the area of the source which is not covered by the destination to be repainted. Children that intersect the rectangle are optionally moved during the operation. In addition, outstanding paint events are flushed before the source area is copied to ensure that the contents of the canvas are drawn correctly.
Sets the receiver's caret. <p> The caret for the control is automatically hidden and shown when the control is painted or resized, when focus is gained or lost and when an the control is scrolled. To avoid drawing on top of the caret, the programmer must hide and show the caret when drawing in the window any other time. </p> @param caret the new caret for the receiver, may be null
Sets the receiver's IME.
GLCanvas is a widget capable of displaying OpenGL content.
@see GLData @see <a href="http://www.eclipse.org/swt/snippets/#opengl">OpenGL snippets</a> @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
@since 3.2