|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Drawable
Implementers of Drawable
can have a graphics context (GC)
created for them, and then they can be drawn on by sending messages to
their associated GC. SWT images, and device objects such as the Display
device and the Printer device, are drawables.
IMPORTANT: This class is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It should never be referenced from application code.
Device
,
Image
,
GC
Method Summary | |
---|---|
void |
internal_copyArea(int handle,
int x,
int y,
int width,
int height)
Call's the object's appropriate platform copyArea() function. |
void |
internal_dispose_GC(int handle,
InternalGCData data)
Invokes platform specific functionality to dispose a GC handle. |
Rectangle |
internal_getBounds()
Call's the object's appropriate getBounds() function. |
Rectangle |
internal_getDefaultClipping()
Returns the appropriate clipping based on the type of object implementing Drawable. |
int |
internal_new_GC(InternalGCData data)
Invokes platform specific functionality to allocate a new GC handle. |
Method Detail |
---|
int internal_new_GC(InternalGCData data)
IMPORTANT: This method is not part of the public
API for Drawable
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
data
- the platform specific GC data
void internal_dispose_GC(int handle, InternalGCData data)
IMPORTANT: This method is not part of the public
API for Drawable
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
handle
- the platform specific GC handledata
- the platform specific GC dataRectangle internal_getDefaultClipping()
IMPORTANT: This method is not part of the public
API for Drawable
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
void internal_copyArea(int handle, int x, int y, int width, int height)
IMPORTANT: This method is not part of the public
API for Drawable
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
handle
- to the GCx
- coordinate of the area to be copiedy
- coordinate of the area to be copiedwidth
- of the area to be copiedheight
- of the area to be copiedRectangle internal_getBounds()
IMPORTANT: This method is not part of the public
API for Drawable
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |