comparison 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
comparison
equal deleted inserted replaced
212:ab60f3309436 213:36f5cb12e1a2
638 * 638 *
639 * @since 3.2 639 * @since 3.2
640 */ 640 */
641 public static const int PaintItem = 42; 641 public static const int PaintItem = 42;
642 642
643 /**
644 * The IME composition event type (value is 43).
645 * <p>
646 * The IME composition event is sent to allow
647 * custom text editors to implement in-line
648 * editing of international text.
649 * </p>
650 *
651 * The detail field indicates the action to be taken:
652 * <p><ul>
653 * <li>{@link DWT#COMPOSITION_CHANGED}</li>
654 * <li>{@link DWT#COMPOSITION_OFFSET}</li>
655 * <li>{@link DWT#COMPOSITION_SELECTION}</li>
656 * </ul></p>
657 *
658 * @see dwt.widgets.Widget#addListener
659 * @see dwt.widgets.Display#addFilter
660 * @see dwt.widgets.Event
661 *
662 * @since 3.4
663 */
664 public static const int ImeComposition = 43;
665
643 /* Event Details */ 666 /* Event Details */
667
668 /**
669 * The IME composition event detail that indicates
670 * a change in the IME composition. The text field
671 * of the event is the new composition text.
672 * The start and end indicate the offsets where the
673 * composition text should be inserted.
674 * The styles and ranges are stored in the IME
675 * object (value is 1).
676 *
677 * @see DWT#ImeComposition
678 *
679 * @since 3.4
680 */
681 public static const int COMPOSITION_CHANGED = 1;
682
683 /**
684 * The IME composition event detail that indicates
685 * that the IME needs the offset for a given location.
686 * The x and y fields of the event are used by the
687 * application to determine the offset.
688 *
689 * The index field of the event should be set to the
690 * text offset at that location. The count field should
691 * be set to indicate whether the location is closer to
692 * the leading edge (0) or the trailing edge (1) (value is 2).
693 *
694 * @see DWT#ImeComposition
695 * @see dwt.graphics.TextLayout#getOffset(int, int, int[])
696 *
697 * @since 3.4
698 */
699 public static const int COMPOSITION_OFFSET = 2;
700
701 /**
702 * The IME composition event detail that indicates
703 * that IME needs the selected text and its start
704 * and end offsets (value is 3).
705 *
706 * @see DWT#ImeComposition
707 *
708 * @since 3.4
709 */
710 public static const int COMPOSITION_SELECTION = 3;
644 711
645 /** 712 /**
646 * Indicates that a user-interface component is being dragged, 713 * Indicates that a user-interface component is being dragged,
647 * for example dragging the thumb of a scroll bar (value is 1). 714 * for example dragging the thumb of a scroll bar (value is 1).
648 */ 715 */
1131 * <p><b>Used By:</b><ul> 1198 * <p><b>Used By:</b><ul>
1132 * <li><code>Scrollable</code> and subclasses</li> 1199 * <li><code>Scrollable</code> and subclasses</li>
1133 * </ul></p> 1200 * </ul></p>
1134 */ 1201 */
1135 public static const int V_SCROLL = 1 << 9; 1202 public static const int V_SCROLL = 1 << 9;
1203
1204 /**
1205 * Style constant for no scrollbar behavior (value is 1&lt;&lt;4).
1206 * <p>
1207 * When neither H_SCROLL or V_SCROLL are specified, controls
1208 * are free to create the default scroll bars for the control.
1209 * Using NO_SCROLL overrides the default and forces the control
1210 * to have no scroll bars.
1211 *
1212 * <b>Used By:</b><ul>
1213 * <li><code>Tree</code></li>
1214 * <li><code>Table</code></li>
1215 * </ul></p>
1216 *
1217 * @since 3.4
1218 */
1219 public static const int NO_SCROLL = 1 << 4;
1136 1220
1137 /** 1221 /**
1138 * Style constant for bordered behavior (value is 1&lt;&lt;11). 1222 * Style constant for bordered behavior (value is 1&lt;&lt;11).
1139 * <br>Note that this is a <em>HINT</em>. 1223 * <br>Note that this is a <em>HINT</em>.
1140 * <p><b>Used By:</b><ul> 1224 * <p><b>Used By:</b><ul>
1287 */ 1371 */
1288 public static const int NO_BACKGROUND = 1 << 18; 1372 public static const int NO_BACKGROUND = 1 << 18;
1289 1373
1290 /** 1374 /**
1291 * Style constant for no focus from the mouse behavior (value is 1&lt;&lt;19). 1375 * Style constant for no focus from the mouse behavior (value is 1&lt;&lt;19).
1376 * <p>
1377 * Normally, when the user clicks on a control, focus is assigned to that
1378 * control, providing the control has no children. Some controls, such as
1379 * tool bars and sashes, don't normally take focus when the mouse is clicked
1380 * or accept focus when assigned from within the program. This style allows
1381 * Composites to implement "no focus" mouse behavior.
1382 *
1292 * <br>Note that this is a <em>HINT</em>. 1383 * <br>Note that this is a <em>HINT</em>.
1384 * </p>
1293 * <p><b>Used By:</b><ul> 1385 * <p><b>Used By:</b><ul>
1294 * <li><code>Composite</code></li> 1386 * <li><code>Composite</code></li>
1295 * </ul></p> 1387 * </ul></p>
1296 */ 1388 */
1297 public static const int NO_FOCUS = 1 << 19; 1389 public static const int NO_FOCUS = 1 << 19;
1302 * This style stops the entire client area from being invalidated when the size 1394 * This style stops the entire client area from being invalidated when the size
1303 * of the Canvas changes. Specifically, when the size of the Canvas gets smaller, 1395 * of the Canvas changes. Specifically, when the size of the Canvas gets smaller,
1304 * the DWT.Paint event is not sent. When it gets bigger, an DWT.Paint event is 1396 * the DWT.Paint event is not sent. When it gets bigger, an DWT.Paint event is
1305 * sent with a GC clipped to only the new areas to be painted. Without this 1397 * sent with a GC clipped to only the new areas to be painted. Without this
1306 * style, the entire client area will be repainted. 1398 * style, the entire client area will be repainted.
1399 *
1400 * <br>Note that this is a <em>HINT</em>.
1307 * </p><p><b>Used By:</b><ul> 1401 * </p><p><b>Used By:</b><ul>
1308 * <li><code>Composite</code></li> 1402 * <li><code>Composite</code></li>
1309 * </ul></p> 1403 * </ul></p>
1310 */ 1404 */
1311 public static const int NO_REDRAW_RESIZE = 1 << 20; 1405 public static const int NO_REDRAW_RESIZE = 1 << 20;
1312 1406
1313 /** 1407 /**
1314 * Style constant for no paint event merging behavior (value is 1&lt;&lt;21). 1408 * Style constant for no paint event merging behavior (value is 1&lt;&lt;21).
1409 *
1410 * <br>Note that this is a <em>HINT</em>.
1315 * <p><b>Used By:</b><ul> 1411 * <p><b>Used By:</b><ul>
1316 * <li><code>Composite</code></li> 1412 * <li><code>Composite</code></li>
1317 * </ul></p> 1413 * </ul></p>
1318 */ 1414 */
1319 public static const int NO_MERGE_PAINTS = 1 << 21; 1415 public static const int NO_MERGE_PAINTS = 1 << 21;
1407 * @since 3.1 1503 * @since 3.1
1408 */ 1504 */
1409 public static const int DOUBLE_BUFFERED = 1 << 29; 1505 public static const int DOUBLE_BUFFERED = 1 << 29;
1410 1506
1411 /** 1507 /**
1508 * Style constant for transparent behavior (value is 1&lt;&lt;30).
1509 * <p>
1510 * By default, before a widget paints, the client area is filled with the current background.
1511 * When this style is specified, the background is not filled and widgets that are obscured
1512 * will draw through.
1513 * </p><p><b>Used By:</b><ul>
1514 * <li><code>Composite</code></li>
1515 * </ul></p>
1516 *
1517 * @since 3.4
1518 *
1519 * WARNING: THIS API IS UNDER CONSTRUCTION AND SHOULD NOT BE USED
1520 */
1521 public static const int TRANSPARENT = 1 << 30;
1522
1523 /**
1412 * Style constant for align up behavior (value is 1&lt;&lt;7, 1524 * Style constant for align up behavior (value is 1&lt;&lt;7,
1413 * since align UP and align TOP are considered the same). 1525 * since align UP and align TOP are considered the same).
1414 * <p><b>Used By:</b><ul> 1526 * <p><b>Used By:</b><ul>
1415 * <li><code>Button</code> with <code>ARROW</code> style</li> 1527 * <li><code>Button</code> with <code>ARROW</code> style</li>
1416 * <li><code>Tracker</code></li> 1528 * <li><code>Tracker</code></li>
1529 * <li><code>Table</code></li>
1530 * <li><code>Tree</code></li>
1417 * </ul></p> 1531 * </ul></p>
1418 */ 1532 */
1419 public static const int UP = 1 << 7; 1533 public static const int UP = 1 << 7;
1534
1535 /**
1536 * Style constant to indicate single underline (value is 0).
1537 * <p><b>Used By:</b><ul>
1538 * <li><code>TextStyle</code></li>
1539 * </ul></p>
1540 *
1541 * @since 3.4
1542 */
1543 public static const int UNDERLINE_SINGLE = 0;
1544
1545 /**
1546 * Style constant to indicate double underline (value is 1).
1547 * <p><b>Used By:</b><ul>
1548 * <li><code>TextStyle</code></li>
1549 * </ul></p>
1550 *
1551 * @since 3.4
1552 */
1553 public static const int UNDERLINE_DOUBLE = 1;
1554
1555 /**
1556 * Style constant to indicate error underline (value is 2).
1557 * <p><b>Used By:</b><ul>
1558 * <li><code>TextStyle</code></li>
1559 * </ul></p>
1560 *
1561 * @since 3.4
1562 */
1563 public static const int UNDERLINE_ERROR = 2;
1564
1565 /**
1566 * Style constant to indicate squiggle underline (value is 3).
1567 * <p><b>Used By:</b><ul>
1568 * <li><code>TextStyle</code></li>
1569 * </ul></p>
1570 *
1571 * @since 3.4
1572 */
1573 public static const int UNDERLINE_SQUIGGLE = 3;
1574
1575 /**
1576 * Style constant to indicate solid border (value is 1).
1577 * <p><b>Used By:</b><ul>
1578 * <li><code>TextStyle</code></li>
1579 * </ul></p>
1580 *
1581 * @since 3.4
1582 */
1583 public static const int BORDER_SOLID = 1;
1584
1585 /**
1586 * Style constant to indicate dashed border (value is 2).
1587 * <p><b>Used By:</b><ul>
1588 * <li><code>TextStyle</code></li>
1589 * </ul></p>
1590 *
1591 * @since 3.4
1592 */
1593 public static const int BORDER_DASH = 2;
1594
1595 /**
1596 * Style constant to indicate dotted border (value is 4).
1597 * <p><b>Used By:</b><ul>
1598 * <li><code>TextStyle</code></li>
1599 * </ul></p>
1600 *
1601 * @since 3.4
1602 */
1603 public static const int BORDER_DOT = 4;
1420 1604
1421 /** 1605 /**
1422 * Style constant for align top behavior (value is 1&lt;&lt;7, 1606 * Style constant for align top behavior (value is 1&lt;&lt;7,
1423 * since align UP and align TOP are considered the same). 1607 * since align UP and align TOP are considered the same).
1424 * <p><b>Used By:</b><ul> 1608 * <p><b>Used By:</b><ul>
1431 * Style constant for align down behavior (value is 1&lt;&lt;10, 1615 * Style constant for align down behavior (value is 1&lt;&lt;10,
1432 * since align DOWN and align BOTTOM are considered the same). 1616 * since align DOWN and align BOTTOM are considered the same).
1433 * <p><b>Used By:</b><ul> 1617 * <p><b>Used By:</b><ul>
1434 * <li><code>Button</code> with <code>ARROW</code> style</li> 1618 * <li><code>Button</code> with <code>ARROW</code> style</li>
1435 * <li><code>Tracker</code></li> 1619 * <li><code>Tracker</code></li>
1620 * <li><code>Table</code></li>
1621 * <li><code>Tree</code></li>
1436 * </ul></p> 1622 * </ul></p>
1437 */ 1623 */
1438 public static const int DOWN = 1 << 10; 1624 public static const int DOWN = 1 << 10;
1439 1625
1440 /** 1626 /**
2948 * copy of the image provided as an argument (value is 2). 3134 * copy of the image provided as an argument (value is 2).
2949 */ 3135 */
2950 public static const int IMAGE_GRAY = 2; 3136 public static const int IMAGE_GRAY = 2;
2951 3137
2952 /** 3138 /**
3139 * Constant to indicate an error state (value is 1).
3140 * <p><b>Used By:</b><ul>
3141 * <li><code>ProgressBar</code></li>
3142 * </ul></p>
3143 *
3144 * @since 3.4
3145 */
3146 public static const int ERROR = 1;
3147
3148 /**
3149 * Constant to a indicate a paused state (value is 4).
3150 * <p><b>Used By:</b><ul>
3151 * <li><code>ProgressBar</code></li>
3152 * </ul></p>
3153 *
3154 * @since 3.4
3155 */
3156 public static const int PAUSED = 1 << 2;
3157
3158 /**
2953 * The font style constant indicating a normal weight, non-italic font 3159 * The font style constant indicating a normal weight, non-italic font
2954 * (value is 0). 3160 * (value is 0). This constant is also used with <code>ProgressBar</code>
3161 * to indicate a normal state.
3162 * <p><b>Used By:</b><ul>
3163 * <li><code>ProgressBar</code></li>
3164 * </ul></p>
2955 */ 3165 */
2956 public static const int NORMAL = 0; 3166 public static const int NORMAL = 0;
2957 3167
2958 /** 3168 /**
2959 * The font style constant indicating a bold weight font 3169 * The font style constant indicating a bold weight font