Uses of Class
org.eclipse.swt.graphics.GC

Packages that use GC
  • Uses of GC in org.eclipse.swt.custom

    Fields in org.eclipse.swt.custom declared as GC
    Modifier and Type
    Field
    Description
    PaintObjectEvent.gc
    the GC
    Methods in org.eclipse.swt.custom with parameters of type GC
    Modifier and Type
    Method
    Description
    protected Point
    CTabFolderRenderer.computeSize(int part, int state, GC gc, int wHint, int hHint)
    Returns the preferred size of a part.
    protected void
    CTabFolderRenderer.draw(int part, int state, Rectangle bounds, GC gc)
    Draw a specified part of the CTabFolder using the provided bounds and GC.
    protected String
    CLabel.shortenText(GC gc, String t, int width)
    Shorten the given text t so that its length doesn't exceed the given width.
  • Uses of GC in org.eclipse.swt.events

    Fields in org.eclipse.swt.events declared as GC
    Modifier and Type
    Field
    Description
    PaintEvent.gc
    the graphics context to use when painting that is configured to use the colors, font and damaged region of the control.
  • Uses of GC in org.eclipse.swt.graphics

    Methods in org.eclipse.swt.graphics that return GC
    Modifier and Type
    Method
    Description
    static GC
    GC.win32_new(int hDC, GCData data)
    Invokes platform specific functionality to wrap a graphics context.
    static GC
    GC.win32_new(Drawable drawable, GCData data)
    Invokes platform specific functionality to allocate a new graphics context.
    Methods in org.eclipse.swt.graphics with parameters of type GC
    Modifier and Type
    Method
    Description
    boolean
    Path.contains(float x, float y, GC gc, boolean outline)
    Returns true if the specified point is contained by the receiver and false otherwise.
    void
    TextLayout.draw(GC gc, int x, int y)
    Draws the receiver's text using the specified GC at the specified point.
    void
    TextLayout.draw(GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground)
    Draws the receiver's text using the specified GC at the specified point.
    void
    TextLayout.draw(GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground, int flags)
    Draws the receiver's text using the specified GC at the specified point.
  • Uses of GC in org.eclipse.swt.internal

    Methods in org.eclipse.swt.internal with parameters of type GC
    Modifier and Type
    Method
    Description
    static void
    BidiUtil.drawGlyphs(GC gc, char[] renderBuffer, int[] renderDx, int x, int y)
    Wraps the ExtTextOut function.
    static int
    Return bidi attribute information for the font in the specified gc.
    static void
    BidiUtil.getOrderInfo(GC gc, String text, int[] order, byte[] classBuffer, int flags, int[] offsets)
    Return bidi ordering information for the given text.
    static char[]
    BidiUtil.getRenderInfo(GC gc, String text, int[] order, byte[] classBuffer, int[] dx, int flags, int[] offsets)
    Return ordering and rendering information for the given text.
  • Uses of GC in org.eclipse.swt.widgets

    Fields in org.eclipse.swt.widgets declared as GC
    Modifier and Type
    Field
    Description
    Event.gc
    the graphics context to use when painting that is configured to use the colors, font and damaged region of the control.
    Methods in org.eclipse.swt.widgets with parameters of type GC
    Modifier and Type
    Method
    Description
    void
    Canvas.drawBackground(GC gc, int x, int y, int width, int height)
    Fills the interior of the rectangle specified by the arguments, with the receiver's background.
    void
    Composite.drawBackground(GC gc, int x, int y, int width, int height, int offsetX, int offsetY)
    Fills the interior of the rectangle specified by the arguments, with the receiver's background.
    boolean
    Control.print(GC gc)
    Prints the receiver and all children.
    boolean
    Shell.print(GC gc)