Package org.gnome.gtk
Enum Class MovementStep
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<MovementStep>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum MovementStep
extends Enum<MovementStep>
implements Enumeration
Passed as argument to various keybinding signals for moving the
cursor position.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMove to ends of the bufferMove to either end of a lineMove up or down lines (wrapped lines)Move horizontally by pagesMove forward or back by graphemesMove by pagesMove to either end of a paragraphMove up or down paragraphs (newline-ended lines)Move left or right by graphemesMove forward or back by words -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the MovementStep classint
getValue()
Get the numeric value of this enumstatic MovementStep
of
(int value) Create a new MovementStep for the provided valuestatic MovementStep
Returns the enum constant of this class with the specified name.static MovementStep[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOGICAL_POSITIONS
Move forward or back by graphemes -
VISUAL_POSITIONS
Move left or right by graphemes -
WORDS
Move forward or back by words -
DISPLAY_LINES
Move up or down lines (wrapped lines) -
DISPLAY_LINE_ENDS
Move to either end of a line -
PARAGRAPHS
Move up or down paragraphs (newline-ended lines) -
PARAGRAPH_ENDS
Move to either end of a paragraph -
PAGES
Move by pages -
BUFFER_ENDS
Move to ends of the buffer -
HORIZONTAL_PAGES
Move horizontally by pages
-
-
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
-
of
Create a new MovementStep for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-