Package | Description |
---|---|
org.eclipse.swt.custom | |
org.eclipse.swt.graphics | |
org.eclipse.swt.ole.win32 | |
org.eclipse.swt.widgets |
Modifier and Type | Field and Description |
---|---|
Color |
LineBackgroundEvent.lineBackground
line background color
|
Modifier and Type | Method and Description |
---|---|
Color |
TreeCursor.getBackground()
Returns the background color that the receiver will use to draw.
|
Color |
TableTreeItem.getBackground()
Deprecated.
Returns the receiver's background color.
|
Color |
TableTree.getBackground()
Deprecated.
|
Color |
TableCursor.getBackground()
Returns the background color that the receiver will use to draw.
|
Color |
StyledText.getBackground() |
Color |
TreeCursor.getForeground()
Returns the foreground color that the receiver will use to draw.
|
Color |
TableTreeItem.getForeground()
Deprecated.
Returns the foreground color that the receiver will use to draw.
|
Color |
TableTree.getForeground()
Deprecated.
|
Color |
TableCursor.getForeground()
Returns the foreground color that the receiver will use to draw.
|
Color |
StyledText.getForeground() |
Color |
StyledText.getLineBackground(int index)
Returns the background color of the line at the given index.
|
Color |
StyledText.getMarginColor()
Returns the color of the margins.
|
Color |
StyledText.getSelectionBackground()
Returns the receiver's selection background color.
|
Color |
CTabFolder.getSelectionBackground()
Returns the receiver's selection background color.
|
Color |
StyledText.getSelectionForeground()
Returns the receiver's selection foreground color.
|
Color |
CTabFolder.getSelectionForeground()
Returns the receiver's selection foreground color.
|
Modifier and Type | Method and Description |
---|---|
void |
TreeCursor.setBackground(Color color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
TableTreeItem.setBackground(Color color)
Deprecated.
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the item
if the argument is null.
|
void |
TableTree.setBackground(Color color)
Deprecated.
|
void |
TableCursor.setBackground(Color color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
StyledText.setBackground(Color color) |
void |
SashForm.setBackground(Color color) |
void |
CTabFolder.setBackground(Color color) |
void |
CLabel.setBackground(Color color) |
void |
CCombo.setBackground(Color color) |
void |
CTabFolder.setBackground(Color[] colors,
int[] percents)
Specify a gradient of colors to be drawn in the background of the unselected tabs.
|
void |
CLabel.setBackground(Color[] colors,
int[] percents)
Specify a gradient of colours to be drawn in the background of the CLabel.
|
void |
CTabFolder.setBackground(Color[] colors,
int[] percents,
boolean vertical)
Specify a gradient of colors to be drawn in the background of the unselected tab.
|
void |
CLabel.setBackground(Color[] colors,
int[] percents,
boolean vertical)
Specify a gradient of colours to be drawn in the background of the CLabel.
|
void |
TreeCursor.setForeground(Color color)
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
TableTreeItem.setForeground(Color color)
Deprecated.
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the item
if the argument is null.
|
void |
TableTree.setForeground(Color color)
Deprecated.
|
void |
TableCursor.setForeground(Color color)
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
StyledText.setForeground(Color color) |
void |
SashForm.setForeground(Color color) |
void |
CTabFolder.setForeground(Color color) |
void |
CCombo.setForeground(Color color) |
void |
StyledText.setLineBackground(int startLine,
int lineCount,
Color background)
Sets the background color of the specified lines.
|
void |
StyledText.setMarginColor(Color color)
Sets the color of the margins.
|
void |
StyledText.setSelectionBackground(Color color)
Sets the receiver's selection background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
CTabFolder.setSelectionBackground(Color color)
Sets the receiver's selection background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
CTabFolder.setSelectionBackground(Color[] colors,
int[] percents)
Specify a gradient of colours to be draw in the background of the selected tab.
|
void |
CTabFolder.setSelectionBackground(Color[] colors,
int[] percents,
boolean vertical)
Specify a gradient of colours to be draw in the background of the selected tab.
|
void |
StyledText.setSelectionForeground(Color color)
Sets the receiver's selection foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
CTabFolder.setSelectionForeground(Color color)
Set the foreground color of the selected tab.
|
Constructor and Description |
---|
StyleRange(int start,
int length,
Color foreground,
Color background)
Create a new style range.
|
StyleRange(int start,
int length,
Color foreground,
Color background,
int fontStyle)
Create a new style range.
|
Modifier and Type | Field and Description |
---|---|
Color |
TextStyle.background
the background of the style
|
Color |
TextStyle.borderColor
the border color of the style
|
Color |
TextStyle.foreground
the foreground of the style
|
Color |
TextStyle.strikeoutColor
the strikeout color of the style
|
Color |
TextStyle.underlineColor
the underline color of the style
|
Modifier and Type | Method and Description |
---|---|
Color |
Image.getBackground()
Returns the color to which to map the transparent pixel, or null if
the receiver has no transparent pixel.
|
Color |
GC.getBackground()
Returns the background color.
|
Color |
GC.getForeground()
Returns the receiver's foreground color.
|
Color |
Device.getSystemColor(int id)
Returns the matching standard color for the given
constant, which should be one of the color constants
specified in class
SWT . |
static Color |
Color.win32_new(Device device,
int handle)
Invokes platform specific functionality to allocate a new color.
|
static Color |
Color.win32_new(Device device,
int handle,
int alpha)
Invokes platform specific functionality to allocate a new color.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
Image.setBackground(Color color)
Sets the color to which to map the transparent pixel.
|
void |
GC.setBackground(Color color)
Sets the background color.
|
void |
GC.setForeground(Color color)
Sets the foreground color.
|
Constructor and Description |
---|
Pattern(Device device,
float x1,
float y1,
float x2,
float y2,
Color color1,
Color color2)
Constructs a new Pattern that represents a linear, two color
gradient.
|
Pattern(Device device,
float x1,
float y1,
float x2,
float y2,
Color color1,
int alpha1,
Color color2,
int alpha2)
Constructs a new Pattern that represents a linear, two color
gradient.
|
TextStyle(Font font,
Color foreground,
Color background)
Create a new text style with the specified font, foreground
and background.
|
Modifier and Type | Method and Description |
---|---|
Color |
OleControlSite.getBackground() |
Color |
OleControlSite.getForeground() |
Modifier and Type | Method and Description |
---|---|
void |
OleControlSite.setBackground(Color color) |
void |
OleControlSite.setForeground(Color color) |
Modifier and Type | Method and Description |
---|---|
Color |
TreeItem.getBackground()
Returns the receiver's background color.
|
Color |
TableItem.getBackground()
Returns the receiver's background color.
|
Color |
Control.getBackground()
Returns the receiver's background color.
|
Color |
TreeItem.getBackground(int index)
Returns the background color at the given column index in the receiver.
|
Color |
TableItem.getBackground(int index)
Returns the background color at the given column index in the receiver.
|
Color |
TreeItem.getForeground()
Returns the foreground color that the receiver will use to draw.
|
Color |
TableItem.getForeground()
Returns the foreground color that the receiver will use to draw.
|
Color |
Control.getForeground()
Returns the foreground color that the receiver will use to draw.
|
Color |
TreeItem.getForeground(int index)
Returns the foreground color at the given column index in the receiver.
|
Color |
TableItem.getForeground(int index)
Returns the foreground color at the given column index in the receiver.
|
Color |
Link.getLinkForeground()
Returns the link foreground color.
|
Color |
Display.getSystemColor(int id)
Returns the matching standard color for the given
constant, which should be one of the color constants
specified in class
SWT . |
Modifier and Type | Method and Description |
---|---|
void |
TreeItem.setBackground(Color color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the item
if the argument is null.
|
void |
TableItem.setBackground(Color color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the item
if the argument is null.
|
void |
Control.setBackground(Color color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
TreeItem.setBackground(int index,
Color color)
Sets the background color at the given column index in the receiver
to the color specified by the argument, or to the default system color for the item
if the argument is null.
|
void |
TableItem.setBackground(int index,
Color color)
Sets the background color at the given column index in the receiver
to the color specified by the argument, or to the default system color for the item
if the argument is null.
|
void |
TreeItem.setForeground(Color color)
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the item
if the argument is null.
|
void |
TableItem.setForeground(Color color)
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the item
if the argument is null.
|
void |
Control.setForeground(Color color)
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
|
void |
TreeItem.setForeground(int index,
Color color)
Sets the foreground color at the given column index in the receiver
to the color specified by the argument, or to the default system color for the item
if the argument is null.
|
void |
TableItem.setForeground(int index,
Color color)
Sets the foreground color at the given column index in the receiver
to the color specified by the argument, or to the default system color for the item
if the argument is null.
|
void |
Link.setLinkForeground(Color color)
Sets the link foreground color to the color specified
by the argument, or to the default system color for the link
if the argument is null.
|
Copyright © 2017. All Rights Reserved.