Enum Class ThemeSettings.ModKey
- All Implemented Interfaces:
Serializable, Comparable<ThemeSettings.ModKey>, Constable
- Enclosing class:
ThemeSettings
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanin(int modifiers) Whether it was held with an input whose modifier bits aremodifiers(a click's, say).booleanisDown()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 voidkeyEvent(int key, int action) Core's: a key event from the window (KeyboardHandlerMixin), pressed or released, if it's one of the modifier keys.static ThemeSettings.ModKeyReturns the enum constant of this class with the specified name.static ThemeSettings.ModKey[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALT
Alt, the default: Hyprland keeps Super for itself. -
SUPER
Super (the Windows or Command key). -
CTRL
Control.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
in
@AvailableSince("1.2") public boolean in(int modifiers) Whether it was held with an input whose modifier bits aremodifiers(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.
-