This class may be subclassed by custom control implementors who are building controls that are not constructed from aggregates of other controls. That is, they are either painted using SWT graphics calls or are handled by native methods.
Composite, Canvas snippets, SWT Example: ControlExample, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv Caret | |
| pack-priv boolean | |
| pack-priv IME |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | drawBackground(GC
the gc where the rectangle is to be filled gc, int the x coordinate of the rectangle to be filled x, int the y coordinate of the rectangle to be filled y, int the width of the rectangle to be filled width, int the height of the rectangle to be filled height)Fills the interior of the rectangle specified by the arguments, with the receiver's background. |
| private void | |
| pack-priv void | |
| public Caret | |
| pack-priv Point | |
| public IME | |
| pack-priv long | gtk_button_press_event(long widget, long event)
Overrides org. |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | gtk_focus_in_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_focus_out_event(long widget, long event)
Overrides org. |
| pack-priv long | |
| pack-priv void | redrawWidget(int x, int y, int width, int height, boolean redrawAll, boolean all, boolean trim)
|
| pack-priv void | |
| pack-priv void | |
| public void | scroll(int
the x coordinate of the destination destX, int the y coordinate of the destination destY, int the x coordinate of the source x, int the y coordinate of the source y, int the width of the area width, int the height of the area height, boolean trueif children should be scrolled, and false otherwiseScrolls a rectangular area of the receiver by first copying the source area to the destination and then causing the area of the source which is not covered by the destination to be repainted. |
| pack-priv void | |
| pack-priv int | setBounds(int x, int y, int width, int height, boolean move, boolean resize)
Overrides org. |
| public void | |
| public void | setFont(Font
the new font (or null) font)Overrides org. |
| public void | |
| pack-priv void |
| blink | back to summary |
|---|---|
| pack-priv boolean blink | |
| caret | back to summary |
|---|---|
| pack-priv Caret caret | |
| drawFlag | back to summary |
|---|---|
| pack-priv boolean drawFlag | |
| ime | back to summary |
|---|---|
| pack-priv IME ime | |
| Canvas | back to summary |
|---|---|
| pack-priv Canvas() | |
| Canvas | back to summary |
|---|---|
| public Canvas(Composite parent, int style) Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class
| |
| drawBackground | back to summary |
|---|---|
| public void 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.
| |
| drawCaret | back to summary |
|---|---|
| private void drawCaret(long widget, long cairo) | |
| drawCaretInFocus | back to summary |
|---|---|
| pack-priv void drawCaretInFocus(long widget, long cairo) | |
| getCaret | back to summary |
|---|---|
| public Caret getCaret() Returns the caret. The caret for the control is automatically hidden and shown when the control is painted or resized, when focus is gained or lost and when an the control is scrolled. To avoid drawing on top of the caret, the programmer must hide and show the caret when drawing in the window any other time.
| |
| getIMCaretPos | back to summary |
|---|---|
| pack-priv Point getIMCaretPos() Overrides org.
| |
| getIME | back to summary |
|---|---|
| public IME getIME() Returns the IME.
| |
| gtk_button_press_event | back to summary |
|---|---|
| pack-priv long gtk_button_press_event(long widget, long event) Overrides org.
| |
| gtk_commit | back to summary |
|---|---|
| pack-priv long gtk_commit(long imcontext, long text) Overrides org.
| |
| gtk_draw | back to summary |
|---|---|
| pack-priv long gtk_draw(long widget, long cairo) Overrides org.
| |
| gtk_focus_in_event | back to summary |
|---|---|
| pack-priv long gtk_focus_in_event(long widget, long event) Overrides org.
| |
| gtk_focus_out_event | back to summary |
|---|---|
| pack-priv long gtk_focus_out_event(long widget, long event) Overrides org.
| |
| gtk_preedit_changed | back to summary |
|---|---|
| pack-priv long gtk_preedit_changed(long imcontext) Overrides org.
| |
| redrawWidget | back to summary |
|---|---|
| pack-priv void redrawWidget(int x, int y, int width, int height, boolean redrawAll, boolean all, boolean trim) Overrides org.
| |
| releaseChildren | back to summary |
|---|---|
| pack-priv void releaseChildren(boolean destroy) Overrides org.
| |
| reskinChildren | back to summary |
|---|---|
| pack-priv void reskinChildren(int flags) Overrides org.
| |
| scroll | back to summary |
|---|---|
| public void scroll(int destX, int destY, int x, int y, int width, int height, boolean all) Scrolls a rectangular area of the receiver by first copying the source area to the destination and then causing the area of the source which is not covered by the destination to be repainted. Children that intersect the rectangle are optionally moved during the operation. In addition, all outstanding paint events are flushed before the source area is copied to ensure that the contents of the canvas are drawn correctly.
| |
| scrollInPixels | back to summary |
|---|---|
| pack-priv void scrollInPixels(int destX, int destY, int x, int y, int width, int height, boolean all) | |
| setBounds | back to summary |
|---|---|
| pack-priv int setBounds(int x, int y, int width, int height, boolean move, boolean resize) Overrides org.
| |
| setCaret | back to summary |
|---|---|
| public void setCaret(Caret caret) Sets the receiver's caret. The caret for the control is automatically hidden and shown when the control is painted or resized, when focus is gained or lost and when an the control is scrolled. To avoid drawing on top of the caret, the programmer must hide and show the caret when drawing in the window any other time.
| |
| setFont | back to summary |
|---|---|
| public void setFont(Font font) Overrides org. Doc from org. Sets the font that the receiver will use to paint textual information to the font specified by the argument, or to the default font for that kind of control if the argument is null. | |
| setIME | back to summary |
|---|---|
| public void setIME(IME ime) Sets the receiver's IME.
| |
| updateCaret | back to summary |
|---|---|
| pack-priv void updateCaret() | |