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

Packages that use GC
Package
Description
SWT Custom widgets.
SWT typed listener support.
SWT graphics classes.
SWT internal classes
SWT widget public API classes.
  • Uses of GC in org.eclipse.swt.custom

    Fields in org.eclipse.swt.custom declared as GC
    Modifier and Type
    Field
    Description
    private GC
    MouseNavigator.gc
     
    PaintObjectEvent.gc
    the GC
    (package private) GC
    StyledText.Printing.gc
     
    Methods in org.eclipse.swt.custom with parameters of type GC
    Modifier and Type
    Method
    Description
    (package private) void
    CTabFolderRenderer.antialias(int[] shape, Color innerColor, Color outerColor, GC gc)
     
    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.
    (package private) void
    CTabFolderRenderer.drawBackground(GC gc, int[] shape, boolean selected)
     
    (package private) void
    CTabFolderRenderer.drawBackground(GC gc, int[] shape, int x, int y, int width, int height, Color defaultBackground, Image image, Color[] colors, int[] percents, boolean vertical)
     
    (package private) void
    CTabFolderRenderer.drawBackground(GC gc, Rectangle bounds, int state)
     
    private void
    AnimatedProgress.drawBevelRect(GC gc, int x, int y, int w, int h, Color topleft, Color bottomright)
    Deprecated.
     
    private void
    CLabel.drawBevelRect(GC gc, int x, int y, int w, int h, Color topleft, Color bottomright)
    Draw a rectangle in the given colors.
    (package private) void
    CTabFolderRenderer.drawBody(GC gc, Rectangle bounds, int state)
     
    (package private) void
    CTabFolderRenderer.drawBorder(GC gc, int[] shape)
     
    (package private) void
    StyledTextRenderer.drawBullet(Bullet bullet, GC gc, int paintX, int paintY, int index, int lineAscent, int lineDescent)
     
    (package private) void
    CTabFolderRenderer.drawChevron(GC gc, Rectangle chevronRect, int chevronImageState)
     
    private void
    CTabFolderRenderer.drawChevronContent(GC gc, int x, int y, String chevronString)
     
    (package private) void
    CTabFolderRenderer.drawClose(GC gc, Rectangle closeRect, int closeImageState)
     
    private void
    CTabFolderRenderer.drawCloseLines(GC gc, int x, int y, int lineLength, boolean hot)
     
    (package private) void
    CTabFolderRenderer.drawHighlight(GC gc, Rectangle bounds, int state, int rightEdge)
     
    (package private) void
    CTabFolderRenderer.drawLeftUnselectedBorder(GC gc, Rectangle bounds, int state)
     
    private void
    StyledTextRenderer.drawLineBackground(StyledTextRenderer.LineDrawInfo lineInfo, int paintY, GC gc, Color widgetBackground)
     
    private void
    StyledTextRenderer.drawLineForeground(StyledTextRenderer.LineDrawInfo lineInfo, int paintX, int paintY, GC gc, Color widgetForeground)
     
    (package private) int
    StyledTextRenderer.drawLines(int startLine, int endLine, int begX, int begY, int endY, GC gc, Color widgetBackground, Color widgetForeground)
     
    (package private) void
    CTabFolderRenderer.drawMaximize(GC gc, Rectangle maxRect, int maxImageState)
     
    (package private) void
    CTabFolderRenderer.drawMinimize(GC gc, Rectangle minRect, int minImageState)
     
    (package private) void
    CTabFolderRenderer.drawRightUnselectedBorder(GC gc, Rectangle bounds, int state)
     
    private void
    CTabFolderRenderer.drawRoundRectangle(GC gc, Rectangle chevronRect)
     
    (package private) void
    CTabFolderRenderer.drawSelected(int itemIndex, GC gc, Rectangle bounds, int state)
     
    (package private) void
    CTabFolderRenderer.drawTabArea(GC gc, Rectangle bounds, int state)
     
    (package private) void
    CTabFolderRenderer.drawUnselected(int index, GC gc, Rectangle bounds, int state)
     
    (package private) void
    CTabFolderRenderer.fillRegion(GC gc, Region region)
     
    (package private) int
    CTabFolder.getLeftItemEdge(GC gc, int part)
     
    (package private) int
    CTabFolder.getRightItemEdge(GC gc)
     
    (package private) void
    CBanner.onPaint(GC gc)
     
    (package private) void
    ViewForm.onPaint(GC gc)
     
    private void
    CLabel.paintBorder(GC gc, Rectangle r)
    Paint the Label's border.
    (package private) void
    StyledText.paintObject(GC gc, int x, int y, int ascent, int descent, StyleRange style, Bullet bullet, int bulletIndex)
     
    (package private) void
    AnimatedProgress.paintStripes(GC gc)
    Deprecated.
    (package private) void
    StyledText.Printing.printLine(int x, int y, GC gc, Color foreground, Color background, TextLayout layout, TextLayout printLayout, int index)
     
    (package private) boolean
    CTabFolder.setItemLocation(GC gc)
     
    (package private) boolean
    CTabFolder.setItemSize(GC 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.
    (package private) String
    CTabFolderRenderer.shortenText(GC gc, String text, int width)
     
    (package private) String
    CTabFolderRenderer.shortenText(GC gc, String text, int width, String ellipses)
     
  • 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

    Fields in org.eclipse.swt.graphics declared as GC
    Modifier and Type
    Field
    Description
    (package private) GC
    Image.memGC
    The GC the image is currently selected in.
    Methods in org.eclipse.swt.graphics that return GC
    Modifier and Type
    Method
    Description
    static GC
    GC.gtk_new(long handle, GCData data)
    Invokes platform specific functionality to wrap a graphics context.
    static GC
    GC.gtk_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.
    static void
    Image.drawAtSize(GC gc, ImageData imageData, int width, int height)
    IMPORTANT: This method is not part of the public API for Image.
    (package private) void
    TextLayout.drawBorder(GC gc, int x, int y, GdkRGBA selectionColor)
     
    (package private) void
    TextLayout.drawInPixels(GC gc, int x, int y)
     
    (package private) void
    TextLayout.drawInPixels(GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground)
     
    (package private) void
    TextLayout.drawInPixels(GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground, int flags)
     
    void
    ImageGcDrawer.drawOn(GC gc, int imageWidth, int imageHeight)
    Draws an image on a GC for a requested zoom level.
    (package private) void
    TextLayout.drawWithCairo(GC gc, int x, int y, int start, int end, int yExtent, boolean fullSelection, GdkRGBA fg, GdkRGBA bg)
     
    (package private) static void
    ImageData.fillGradientRectangle(GC gc, Device device, int x, int y, int width, int height, boolean vertical, RGB fromRGB, RGB toRGB, int redBits, int greenBits, int blueBits, int zoom)
    Renders a gradient onto a GC.
  • Uses of GC in org.eclipse.swt.internal

    Methods in org.eclipse.swt.internal with parameters of type GC
    Modifier and Type
    Method
    Description
    void
    DPIUtil.ImageDrawFunction.draw(GC gc, ImageData imageData, int width, int height)
     
    static void
    BidiUtil.drawGlyphs(GC gc, char[] renderBuffer, int[] renderDx, int x, int y)
     
    static int
     
    static void
    BidiUtil.getOrderInfo(GC gc, String text, int[] order, byte[] classBuffer, int flags, int[] offsets)
     
    static char[]
    BidiUtil.getRenderInfo(GC gc, String text, int[] order, byte[] classBuffer, int[] dx, int flags, int[] offsets)
     
  • 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 that return GC
    Modifier and Type
    Method
    Description
    private GC
    Table.getGC(long cr)
     
    private GC
    Tree.getGC(long cr)
     
    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.
    (package private) boolean
    Control.drawGripper(GC gc, int x, int y, int width, int height, boolean vertical)
     
    (package private) void
    Control.drawWidget(GC gc)
     
    (package private) void
    Link.drawWidget(GC gc)
     
    boolean
    Control.print(GC gc)
    Prints the receiver and all children.
    boolean
    Shell.print(GC gc)
     
    (package private) void
    Composite.printWidget(GC gc, long drawable, int depth, int x, int y)
     
    (package private) void
    Control.printWidget(GC gc, long drawable, int depth, int x, int y)
     
    (package private) void
    Control.printWindow(boolean first, Control control, GC gc, long drawable, int depth, long window, int x, int y)