Examples of FlagSet


Examples of org.sf.feeling.swt.win32.internal.extension.util.FlagSet

   * keystroke is repeated as a result of the user's holding down the key.
   *
   * @return the repeat count.
   */
  public int getRepeatCount() {
    FlagSet flagSet = new FlagSet(getLParam());
    return flagSet.getBits(0, 15);
  }
View Full Code Here

Examples of org.sf.feeling.swt.win32.internal.extension.util.FlagSet

   * Specifies the scan code. The value depends on the OEM.
   *
   * @return scan code.
   */
  public int getScanCode() {
    FlagSet flagSet = new FlagSet(getLParam());
    return flagSet.getBits(16, 23);
  }
View Full Code Here

Examples of org.sf.feeling.swt.win32.internal.extension.util.FlagSet

   * key on the numeric keypad.
   *
   * @return true, if the key is an extended key; otherwise, it is false.
   */
  public boolean isExtendedKey() {
    FlagSet flagSet = new FlagSet(getLParam());
    return flagSet.getBit(24);
  }
View Full Code Here

Examples of org.sf.feeling.swt.win32.internal.extension.util.FlagSet

   * Specifies the context code.
   *
   * @return true, if the ALT key is down; otherwise, it is false.
   */
  public boolean isAltPressed() {
    FlagSet flagSet = new FlagSet(getLParam());
    return flagSet.getBit(29);
  }
View Full Code Here

Examples of org.sf.feeling.swt.win32.internal.extension.util.FlagSet

   *
   * @return true, if the key is down before the message is sent; false if the
   *         key is up.
   */
  public boolean getPreviousState() {
    FlagSet flagSet = new FlagSet(getLParam());
    return flagSet.getBit(30);
  }
View Full Code Here

Examples of org.sf.feeling.swt.win32.internal.extension.util.FlagSet

   * Specifies the transition state.
   *
   * @return true, if the key is being pressed; false if it is being released.
   */
  public boolean getTransitionState() {
    FlagSet flagSet = new FlagSet(getLParam());
    return !flagSet.getBit(31);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.