public interface Drawable
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 interface 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.
Modifier and Type | Method and Description |
---|---|
void |
internal_dispose_GC(long handle,
GCData data)
Invokes platform specific functionality to dispose a GC handle.
|
long |
internal_new_GC(GCData data)
Invokes platform specific functionality to allocate a new GC handle.
|
boolean |
isAutoScalable()
Returns
true iff coordinates can be auto-scaled on this
drawable and false if not. |
long internal_new_GC(GCData 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 datavoid internal_dispose_GC(long handle, GCData 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 databoolean isAutoScalable()
true
iff coordinates can be auto-scaled on this
drawable and false
if not. E.g. a GC
method should not
auto-scale the bounds of a figure drawn on a Printer device, but it may have
to auto-scale when drawing on a high-DPI Display monitor.true
if auto-scaling is enabled for this drawableCopyright © 2017. All Rights Reserved.