Uses of Class
org.eclipse.swt.graphics.Rectangle
-
-
Uses of Rectangle in org.eclipse.swt.accessibility
Fields in org.eclipse.swt.accessibility declared as Rectangle Modifier and Type Field Description Rectangle[]
AccessibleTextEvent. rectangles
-
Uses of Rectangle in org.eclipse.swt.custom
Methods in org.eclipse.swt.custom that return Rectangle Modifier and Type Method Description Rectangle
CTabFolder. computeTrim(int x, int y, int width, int height)
protected Rectangle
CTabFolderRenderer. computeTrim(int part, int state, int x, int y, int width, int height)
Given a desired client area for the part (as described by the arguments), returns the bounding rectangle which would be required to produce that client area.Rectangle
ViewForm. computeTrim(int x, int y, int width, int height)
Rectangle
StyledText. getBlockSelectionBounds()
Returns the block selection bounds.Rectangle
CTabItem. getBounds()
Returns a rectangle describing the receiver's size and location relative to its parent.Rectangle
CBanner. getClientArea()
Rectangle
CTabFolder. getClientArea()
Rectangle
ViewForm. getClientArea()
Rectangle
StyledText. getTextBounds(int start, int end)
Returns the smallest bounding rectangle that includes the characters between two offsets.Methods in org.eclipse.swt.custom with parameters of type Rectangle Modifier and Type Method Description protected void
CTabFolderRenderer. draw(int part, int state, Rectangle bounds, GC gc)
Draw a specifiedpart
of the CTabFolder using the providedbounds
andGC
.java.lang.String
PopupList. open(Rectangle rect)
Launches the Popup List, waits for an item to be selected and then closes the PopupList.void
StyledText. setBlockSelectionBounds(Rectangle rect)
Sets the block selection bounds. -
Uses of Rectangle in org.eclipse.swt.graphics
Methods in org.eclipse.swt.graphics that return Rectangle Modifier and Type Method Description Rectangle
Device. getBounds()
Returns a rectangle describing the receiver's size and location.Rectangle
Image. getBounds()
Returns the bounds of the receiver.Rectangle
Region. getBounds()
Returns a rectangle which represents the rectangular union of the collection of polygons the receiver maintains to describe its area.Rectangle
TextLayout. getBounds()
Returns the bounds of the receiver.Rectangle
TextLayout. getBounds(int start, int end)
Returns the bounds for the specified range of characters.Rectangle
Image. getBoundsInPixels()
Deprecated.This API doesn't serve the purpose in an environment having multiple monitors with different DPIs, hence deprecated.Rectangle
Device. getClientArea()
Returns a rectangle which describes the area of the receiver which is capable of displaying data.Rectangle
GC. getClipping()
Returns the bounding rectangle of the receiver's clipping region.Rectangle
TextLayout. getLineBounds(int lineIndex)
Returns the bounds of the line for the specified line index.Rectangle
Rectangle. intersection(Rectangle rect)
Returns a new rectangle which represents the intersection of the receiver and the given rectangle.Rectangle
Rectangle. union(Rectangle rect)
Returns a new rectangle which represents the union of the receiver and the given rectangle.Methods in org.eclipse.swt.graphics with parameters of type Rectangle Modifier and Type Method Description void
Rectangle. add(Rectangle rect)
Destructively replaces the x, y, width and height values in the receiver with ones which represent the union of the rectangles specified by the receiver and the given rectangle.void
Region. add(Rectangle rect)
Adds the given rectangle to the collection of polygons the receiver maintains to describe its area.void
GC. drawRectangle(Rectangle rect)
Draws the outline of the specified rectangle, using the receiver's foreground color.void
GC. fillRectangle(Rectangle rect)
Fills the interior of the specified rectangle, using the receiver's background color.void
Rectangle. intersect(Rectangle rect)
Destructively replaces the x, y, width and height values in the receiver with ones which represent the intersection of the rectangles specified by the receiver and the given rectangle.void
Region. intersect(Rectangle rect)
Intersects the given rectangle to the collection of polygons the receiver maintains to describe its area.Rectangle
Rectangle. intersection(Rectangle rect)
Returns a new rectangle which represents the intersection of the receiver and the given rectangle.boolean
Rectangle. intersects(Rectangle rect)
Returnstrue
if the given rectangle intersects with the receiver andfalse
otherwise.boolean
Region. intersects(Rectangle rect)
Returnstrue
if the given rectangle intersects with any of the polygons the receiver maintains to describe its area andfalse
otherwise.void
GC. setClipping(Rectangle rect)
Sets the area of the receiver which can be changed by drawing operations to the rectangular area specified by the argument.void
Region. subtract(Rectangle rect)
Subtracts the given rectangle from the collection of polygons the receiver maintains to describe its area.Rectangle
Rectangle. union(Rectangle rect)
Returns a new rectangle which represents the union of the receiver and the given rectangle.Constructors in org.eclipse.swt.graphics with parameters of type Rectangle Constructor Description Image(Device device, Rectangle bounds)
Constructs an empty instance of this class with the width and height of the specified rectangle. -
Uses of Rectangle in org.eclipse.swt.internal
Methods in org.eclipse.swt.internal that return Rectangle Modifier and Type Method Description static Rectangle
DPIUtil. autoScaleBounds(Rectangle rect, int targetZoom, int currentZoom)
Returns a new rectangle as per the scaleFactor.static Rectangle
DPIUtil. autoScaleDown(Drawable drawable, Rectangle rect)
Returns a new scaled down Rectangle if enabled for Drawable class.static Rectangle
DPIUtil. autoScaleDown(Rectangle rect)
Returns a new scaled down Rectangle.static Rectangle
DPIUtil. autoScaleUp(Drawable drawable, Rectangle rect)
Returns a new scaled up Rectangle if enabled for Drawable class.static Rectangle
DPIUtil. autoScaleUp(Rectangle rect)
Returns a new scaled up Rectangle.Methods in org.eclipse.swt.internal with parameters of type Rectangle Modifier and Type Method Description static Rectangle
DPIUtil. autoScaleBounds(Rectangle rect, int targetZoom, int currentZoom)
Returns a new rectangle as per the scaleFactor.static Rectangle
DPIUtil. autoScaleDown(Drawable drawable, Rectangle rect)
Returns a new scaled down Rectangle if enabled for Drawable class.static Rectangle
DPIUtil. autoScaleDown(Rectangle rect)
Returns a new scaled down Rectangle.static Rectangle
DPIUtil. autoScaleUp(Drawable drawable, Rectangle rect)
Returns a new scaled up Rectangle if enabled for Drawable class.static Rectangle
DPIUtil. autoScaleUp(Rectangle rect)
Returns a new scaled up Rectangle. -
Uses of Rectangle in org.eclipse.swt.internal.gtk
Methods in org.eclipse.swt.internal.gtk that return Rectangle Modifier and Type Method Description Rectangle
GdkRectangle. toRectangle()
-
Uses of Rectangle in org.eclipse.swt.printing
Methods in org.eclipse.swt.printing that return Rectangle Modifier and Type Method Description Rectangle
Printer. computeTrim(int x, int y, int width, int height)
Given a client area (as described by the arguments), returns a rectangle, relative to the client area's coordinates, that is the client area expanded by the printer's trim (or minimum margins).Rectangle
Printer. getBounds()
Returns a rectangle describing the receiver's size and location.Rectangle
Printer. getClientArea()
Returns a rectangle which describes the area of the receiver which is capable of displaying data. -
Uses of Rectangle in org.eclipse.swt.widgets
Methods in org.eclipse.swt.widgets that return Rectangle Modifier and Type Method Description Rectangle
Scrollable. computeTrim(int x, int y, int width, int height)
Given a desired client area for the receiver (as described by the arguments), returns the bounding rectangle which would be required to produce that client area.Rectangle
Caret. getBounds()
Returns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null).Rectangle
Control. getBounds()
Returns a rectangle describing the receiver's size and location in points relative to its parent (or its display if its parent is null), unless the receiver is a shell.Rectangle
CoolItem. getBounds()
Returns a rectangle describing the receiver's size and location relative to its parent.Rectangle
Display. getBounds()
Returns a rectangle describing the receiver's size and location.Rectangle
Event. getBounds()
Gets the bounds.Rectangle
Monitor. getBounds()
Returns a rectangle describing the receiver's size and location relative to its device.Rectangle
TabItem. getBounds()
Returns a rectangle describing the receiver's size and location relative to its parent.Rectangle
TableItem. getBounds()
Returns a rectangle describing the size and location of the receiver's text relative to its parent.Rectangle
TableItem. getBounds(int index)
Returns a rectangle describing the receiver's size and location relative to its parent at a column in the table.Rectangle
ToolItem. getBounds()
Returns a rectangle describing the receiver's size and location relative to its parent.Rectangle
TouchSource. getBounds()
Returns the bounding rectangle of the device.Rectangle
TreeItem. getBounds()
Returns a rectangle describing the size and location of the receiver's text relative to its parent.Rectangle
TreeItem. getBounds(int index)
Returns a rectangle describing the receiver's size and location relative to its parent at a column in the tree.Rectangle
Display. getClientArea()
Returns a rectangle which describes the area of the receiver which is capable of displaying data.Rectangle
Monitor. getClientArea()
Returns a rectangle which describes the area of the receiver which is capable of displaying data.Rectangle
Scrollable. getClientArea()
Returns a rectangle which describes the area of the receiver which is capable of displaying data (that is, not covered by the "trimmings").Rectangle
TableItem. getImageBounds(int index)
Returns a rectangle describing the size and location relative to its parent of an image at a column in the table.Rectangle
TreeItem. getImageBounds(int index)
Returns a rectangle describing the size and location relative to its parent of an image at a column in the tree.Rectangle[]
Tracker. getRectangles()
Returns the bounds that are being drawn, expressed relative to the parent widget.Rectangle
TableItem. getTextBounds(int index)
Returns a rectangle describing the size and location relative to its parent of the text at a column in the table.Rectangle
TreeItem. getTextBounds(int index)
Returns a rectangle describing the size and location relative to its parent of the text at a column in the tree.Rectangle
ScrollBar. getThumbBounds()
Returns a rectangle describing the size and location of the receiver's thumb relative to its parent.Rectangle
ScrollBar. getThumbTrackBounds()
Returns a rectangle describing the size and location of the receiver's thumb track relative to its parent.Rectangle
Display. map(Control from, Control to, int x, int y, int width, int height)
Maps a point from one coordinate system to another.Rectangle
Display. map(Control from, Control to, Rectangle rectangle)
Maps a point from one coordinate system to another.Methods in org.eclipse.swt.widgets with parameters of type Rectangle Modifier and Type Method Description Rectangle
Display. map(Control from, Control to, Rectangle rectangle)
Maps a point from one coordinate system to another.void
Caret. setBounds(Rectangle rect)
Sets the receiver's size and location to the rectangular area specified by the argument.void
Control. setBounds(Rectangle rect)
Sets the receiver's size and location in points to the rectangular area specified by the argument.void
Event. setBounds(Rectangle rect)
Sets the bounds.void
Tracker. setRectangles(Rectangle[] rectangles)
Specifies the rectangles that should be drawn, expressed relative to the parent widget.
-