Mercurial > projects > dwt-win
diff dwt/DWT.d @ 213:36f5cb12e1a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 17:34:28 +0200 |
parents | ab60f3309436 |
children | fd9c62a2998e |
line wrap: on
line diff
--- a/dwt/DWT.d Mon May 05 00:12:38 2008 +0200 +++ b/dwt/DWT.d Sat May 17 17:34:28 2008 +0200 @@ -640,9 +640,76 @@ */ public static const int PaintItem = 42; + /** + * The IME composition event type (value is 43). + * <p> + * The IME composition event is sent to allow + * custom text editors to implement in-line + * editing of international text. + * </p> + * + * The detail field indicates the action to be taken: + * <p><ul> + * <li>{@link DWT#COMPOSITION_CHANGED}</li> + * <li>{@link DWT#COMPOSITION_OFFSET}</li> + * <li>{@link DWT#COMPOSITION_SELECTION}</li> + * </ul></p> + * + * @see dwt.widgets.Widget#addListener + * @see dwt.widgets.Display#addFilter + * @see dwt.widgets.Event + * + * @since 3.4 + */ + public static const int ImeComposition = 43; + /* Event Details */ /** + * The IME composition event detail that indicates + * a change in the IME composition. The text field + * of the event is the new composition text. + * The start and end indicate the offsets where the + * composition text should be inserted. + * The styles and ranges are stored in the IME + * object (value is 1). + * + * @see DWT#ImeComposition + * + * @since 3.4 + */ + public static const int COMPOSITION_CHANGED = 1; + + /** + * The IME composition event detail that indicates + * that the IME needs the offset for a given location. + * The x and y fields of the event are used by the + * application to determine the offset. + * + * The index field of the event should be set to the + * text offset at that location. The count field should + * be set to indicate whether the location is closer to + * the leading edge (0) or the trailing edge (1) (value is 2). + * + * @see DWT#ImeComposition + * @see dwt.graphics.TextLayout#getOffset(int, int, int[]) + * + * @since 3.4 + */ + public static const int COMPOSITION_OFFSET = 2; + + /** + * The IME composition event detail that indicates + * that IME needs the selected text and its start + * and end offsets (value is 3). + * + * @see DWT#ImeComposition + * + * @since 3.4 + */ + public static const int COMPOSITION_SELECTION = 3; + + /** * Indicates that a user-interface component is being dragged, * for example dragging the thumb of a scroll bar (value is 1). */ @@ -1135,6 +1202,23 @@ public static const int V_SCROLL = 1 << 9; /** + * Style constant for no scrollbar behavior (value is 1<<4). + * <p> + * When neither H_SCROLL or V_SCROLL are specified, controls + * are free to create the default scroll bars for the control. + * Using NO_SCROLL overrides the default and forces the control + * to have no scroll bars. + * + * <b>Used By:</b><ul> + * <li><code>Tree</code></li> + * <li><code>Table</code></li> + * </ul></p> + * + * @since 3.4 + */ + public static const int NO_SCROLL = 1 << 4; + + /** * Style constant for bordered behavior (value is 1<<11). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> @@ -1289,7 +1373,15 @@ /** * Style constant for no focus from the mouse behavior (value is 1<<19). + * <p> + * Normally, when the user clicks on a control, focus is assigned to that + * control, providing the control has no children. Some controls, such as + * tool bars and sashes, don't normally take focus when the mouse is clicked + * or accept focus when assigned from within the program. This style allows + * Composites to implement "no focus" mouse behavior. + * * <br>Note that this is a <em>HINT</em>. + * </p> * <p><b>Used By:</b><ul> * <li><code>Composite</code></li> * </ul></p> @@ -1304,6 +1396,8 @@ * the DWT.Paint event is not sent. When it gets bigger, an DWT.Paint event is * sent with a GC clipped to only the new areas to be painted. Without this * style, the entire client area will be repainted. + * + * <br>Note that this is a <em>HINT</em>. * </p><p><b>Used By:</b><ul> * <li><code>Composite</code></li> * </ul></p> @@ -1312,6 +1406,8 @@ /** * Style constant for no paint event merging behavior (value is 1<<21). + * + * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Composite</code></li> * </ul></p> @@ -1409,16 +1505,104 @@ public static const int DOUBLE_BUFFERED = 1 << 29; /** + * Style constant for transparent behavior (value is 1<<30). + * <p> + * By default, before a widget paints, the client area is filled with the current background. + * When this style is specified, the background is not filled and widgets that are obscured + * will draw through. + * </p><p><b>Used By:</b><ul> + * <li><code>Composite</code></li> + * </ul></p> + * + * @since 3.4 + * + * WARNING: THIS API IS UNDER CONSTRUCTION AND SHOULD NOT BE USED + */ + public static const int TRANSPARENT = 1 << 30; + + /** * Style constant for align up behavior (value is 1<<7, * since align UP and align TOP are considered the same). * <p><b>Used By:</b><ul> * <li><code>Button</code> with <code>ARROW</code> style</li> * <li><code>Tracker</code></li> + * <li><code>Table</code></li> + * <li><code>Tree</code></li> * </ul></p> */ public static const int UP = 1 << 7; /** + * Style constant to indicate single underline (value is 0). + * <p><b>Used By:</b><ul> + * <li><code>TextStyle</code></li> + * </ul></p> + * + * @since 3.4 + */ + public static const int UNDERLINE_SINGLE = 0; + + /** + * Style constant to indicate double underline (value is 1). + * <p><b>Used By:</b><ul> + * <li><code>TextStyle</code></li> + * </ul></p> + * + * @since 3.4 + */ + public static const int UNDERLINE_DOUBLE = 1; + + /** + * Style constant to indicate error underline (value is 2). + * <p><b>Used By:</b><ul> + * <li><code>TextStyle</code></li> + * </ul></p> + * + * @since 3.4 + */ + public static const int UNDERLINE_ERROR = 2; + + /** + * Style constant to indicate squiggle underline (value is 3). + * <p><b>Used By:</b><ul> + * <li><code>TextStyle</code></li> + * </ul></p> + * + * @since 3.4 + */ + public static const int UNDERLINE_SQUIGGLE = 3; + + /** + * Style constant to indicate solid border (value is 1). + * <p><b>Used By:</b><ul> + * <li><code>TextStyle</code></li> + * </ul></p> + * + * @since 3.4 + */ + public static const int BORDER_SOLID = 1; + + /** + * Style constant to indicate dashed border (value is 2). + * <p><b>Used By:</b><ul> + * <li><code>TextStyle</code></li> + * </ul></p> + * + * @since 3.4 + */ + public static const int BORDER_DASH = 2; + + /** + * Style constant to indicate dotted border (value is 4). + * <p><b>Used By:</b><ul> + * <li><code>TextStyle</code></li> + * </ul></p> + * + * @since 3.4 + */ + public static const int BORDER_DOT = 4; + + /** * Style constant for align top behavior (value is 1<<7, * since align UP and align TOP are considered the same). * <p><b>Used By:</b><ul> @@ -1433,6 +1617,8 @@ * <p><b>Used By:</b><ul> * <li><code>Button</code> with <code>ARROW</code> style</li> * <li><code>Tracker</code></li> + * <li><code>Table</code></li> + * <li><code>Tree</code></li> * </ul></p> */ public static const int DOWN = 1 << 10; @@ -2950,8 +3136,32 @@ public static const int IMAGE_GRAY = 2; /** + * Constant to indicate an error state (value is 1). + * <p><b>Used By:</b><ul> + * <li><code>ProgressBar</code></li> + * </ul></p> + * + * @since 3.4 + */ + public static const int ERROR = 1; + + /** + * Constant to a indicate a paused state (value is 4). + * <p><b>Used By:</b><ul> + * <li><code>ProgressBar</code></li> + * </ul></p> + * + * @since 3.4 + */ + public static const int PAUSED = 1 << 2; + + /** * The font style constant indicating a normal weight, non-italic font - * (value is 0). + * (value is 0). This constant is also used with <code>ProgressBar</code> + * to indicate a normal state. + * <p><b>Used By:</b><ul> + * <li><code>ProgressBar</code></li> + * </ul></p> */ public static const int NORMAL = 0;