comparison dwt/SWT.d @ 54:8f049b136add

first example working
author Frank Benoit <benoit@tionex.de>
date Fri, 11 Jan 2008 14:31:37 +0100
parents 8e9ea24111fd
children 93981635e709
comparison
equal deleted inserted replaced
53:3da31bec7de0 54:8f049b136add
1744 * 1744 *
1745 * <code>(stateMask & SWT.MODIFIER_MASK) != 0</code>. 1745 * <code>(stateMask & SWT.MODIFIER_MASK) != 0</code>.
1746 * 1746 *
1747 * @since 2.1 1747 * @since 2.1
1748 */ 1748 */
1749 public static const int MODIFIER_MASK; 1749 public static /*const*/ int MODIFIER_MASK;
1750 1750
1751 /** 1751 /**
1752 * Keyboard and/or mouse event mask indicating that mouse button one 1752 * Keyboard and/or mouse event mask indicating that mouse button one
1753 * was pushed when the event was generated. (value is 1&lt;&lt;19). 1753 * was pushed when the event was generated. (value is 1&lt;&lt;19).
1754 */ 1754 */
1794 * 1794 *
1795 * <code>(stateMask & SWT.BUTTON_MASK) != 0</code>. 1795 * <code>(stateMask & SWT.BUTTON_MASK) != 0</code>.
1796 * 1796 *
1797 * @since 2.1 1797 * @since 2.1
1798 */ 1798 */
1799 public static const int BUTTON_MASK; 1799 public static /*const*/ int BUTTON_MASK;
1800 1800
1801 /** 1801 /**
1802 * Keyboard and/or mouse event mask indicating that the MOD1 key 1802 * Keyboard and/or mouse event mask indicating that the MOD1 key
1803 * was pushed on the keyboard when the event was generated. 1803 * was pushed on the keyboard when the event was generated.
1804 * 1804 *
1805 * This is the primary keyboard modifier for the platform. 1805 * This is the primary keyboard modifier for the platform.
1806 * 1806 *
1807 * @since 2.1 1807 * @since 2.1
1808 */ 1808 */
1809 public static const int MOD1; 1809 public static /*const*/ int MOD1;
1810 1810
1811 /** 1811 /**
1812 * Keyboard and/or mouse event mask indicating that the MOD2 key 1812 * Keyboard and/or mouse event mask indicating that the MOD2 key
1813 * was pushed on the keyboard when the event was generated. 1813 * was pushed on the keyboard when the event was generated.
1814 * 1814 *
1815 * This is the secondary keyboard modifier for the platform. 1815 * This is the secondary keyboard modifier for the platform.
1816 * 1816 *
1817 * @since 2.1 1817 * @since 2.1
1818 */ 1818 */
1819 public static const int MOD2; 1819 public static /*const*/ int MOD2;
1820 1820
1821 /** 1821 /**
1822 * Keyboard and/or mouse event mask indicating that the MOD3 key 1822 * Keyboard and/or mouse event mask indicating that the MOD3 key
1823 * was pushed on the keyboard when the event was generated. 1823 * was pushed on the keyboard when the event was generated.
1824 * 1824 *
1825 * @since 2.1 1825 * @since 2.1
1826 */ 1826 */
1827 public static const int MOD3; 1827 public static /*const*/ int MOD3;
1828 1828
1829 /** 1829 /**
1830 * Keyboard and/or mouse event mask indicating that the MOD4 key 1830 * Keyboard and/or mouse event mask indicating that the MOD4 key
1831 * was pushed on the keyboard when the event was generated. 1831 * was pushed on the keyboard when the event was generated.
1832 * 1832 *
1833 * @since 2.1 1833 * @since 2.1
1834 */ 1834 */
1835 public static const int MOD4; 1835 public static /*const*/ int MOD4;
1836 1836
1837 /** 1837 /**
1838 * Constants to indicate line scrolling (value is 1). 1838 * Constants to indicate line scrolling (value is 1).
1839 * <p><b>Used By:</b><ul> 1839 * <p><b>Used By:</b><ul>
1840 * <li><code>Control</code></li> 1840 * <li><code>Control</code></li>
3607 SWTError error = new SWTError (code, message); 3607 SWTError error = new SWTError (code, message);
3608 error.throwable = throwable; 3608 error.throwable = throwable;
3609 throw error; 3609 throw error;
3610 } 3610 }
3611 3611
3612 static this(){ 3612 public static void static_this() {
3613 /* 3613 /*
3614 * These values represent bit masks that may need to 3614 * These values represent bit masks that may need to
3615 * expand in the future. Therefore they are not initialized 3615 * expand in the future. Therefore they are not initialized
3616 * in the declaration to stop the compiler from inlining. 3616 * in the declaration to stop the compiler from inlining.
3617 */ 3617 */