Interface Drawable

    • Method Detail

      • internal_new_GC

        long internal_new_GC​(GCData data)
        Invokes platform specific functionality to allocate a new GC handle.

        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.

        Parameters:
        data - the platform specific GC data
        Returns:
        the platform specific GC handle
        Restriction:
        This method is not intended to be referenced by clients.
      • internal_dispose_GC

        void internal_dispose_GC​(long handle,
                                 GCData data)
        Invokes platform specific functionality to dispose a GC handle.

        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.

        Parameters:
        handle - the platform specific GC handle
        data - the platform specific GC data
        Restriction:
        This method is not intended to be referenced by clients.
      • isAutoScalable

        default boolean isAutoScalable()
        Returns 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.
        Returns:
        true if auto-scaling is enabled for this drawable
        Restriction:
        This method is not intended to be referenced by clients.