Enum Class ThemeSettings.ModKey

java.lang.Object
java.lang.Enum<ThemeSettings.ModKey>
dev.myriadclient.api.ui.ThemeSettings.ModKey
All Implemented Interfaces:
Serializable, Comparable<ThemeSettings.ModKey>, Constable
Enclosing class:
ThemeSettings

public static enum ThemeSettings.ModKey extends Enum<ThemeSettings.ModKey>
The modifier that, held, turns keys and clicks into menu shortcuts (ThemeSettings.modKey): workspaces, launcher, moving and resizing windows. Both the left and the right key count.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Alt, the default: Hyprland keeps Super for itself.
    Control.
    Super (the Windows or Command key).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    in(int modifiers)
    Whether it was held with an input whose modifier bits are modifiers (a click's, say).
    boolean
    Whether it's held now, on either side: as the window's key events last said, or its key state (some compositors keep the window from seeing a held modifier in the key state).
    static void
    keyEvent(int key, int action)
    Core's: a key event from the window (KeyboardHandlerMixin), pressed or released, if it's one of the modifier keys.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static ThemeSettings.ModKey[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ThemeSettings.ModKey valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • in

      @AvailableSince("1.2") public boolean in(int modifiers)
      Whether it was held with an input whose modifier bits are modifiers (a click's, say).
    • isDown

      @AvailableSince("1.2") public boolean isDown()
      Whether it's held now, on either side: as the window's key events last said, or its key state (some compositors keep the window from seeing a held modifier in the key state).
    • keyEvent

      @Internal public static void keyEvent(int key, int action)
      Core's: a key event from the window (KeyboardHandlerMixin), pressed or released, if it's one of the modifier keys.