java.lang.Object
com.github.moaxcp.x11client.protocol.xkb.ModDef
All Implemented Interfaces:
XObject, XStruct

public final class ModDef extends Object implements XStruct
  • Method Details

    • readModDef

      public static ModDef readModDef(X11Input in) throws IOException
      Throws:
      IOException
    • write

      public void write(X11Output out) throws IOException
      Specified by:
      write in interface XStruct
      Throws:
      IOException
    • isMaskEnabled

      public boolean isMaskEnabled(@NonNull @NonNull ModMask... maskEnums)
    • isRealModsEnabled

      public boolean isRealModsEnabled(@NonNull @NonNull ModMask... maskEnums)
    • isVmodsEnabled

      public boolean isVmodsEnabled(@NonNull @NonNull VMod... maskEnums)
    • getSize

      public int getSize()
      Description copied from interface: XObject
      length of object expressed in units of 4 bytes
      Specified by:
      getSize in interface XObject
      Returns:
    • builder

      public static ModDef.ModDefBuilder builder()
    • getMask

      public byte getMask()
    • getRealMods

      public byte getRealMods()
    • getVmods

      public short getVmods()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPluginName

      default String getPluginName()
      Specified by:
      getPluginName in interface XObject