Package org.gnome.gdk
Class KeymapKey
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gdk.KeymapKey
-
Constructor Summary
ConstructorDescriptionAllocate a new KeymapKey.KeymapKey
(int keycode, int group, int level) Allocate a new KeymapKey with the fields set to the provided values.Allocate a new KeymapKey with the fields set to the provided values.Allocate a new KeymapKey.KeymapKey
(MemorySegment address) Create a KeymapKey proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.int
Read the value of the fieldgroup
.int
Read the value of the fieldkeycode
.int
Read the value of the fieldlevel
.void
writeGroup
(int group) Write a value in the fieldgroup
.void
writeKeycode
(int keycode) Write a value in the fieldkeycode
.void
writeLevel
(int level) Write a value in the fieldlevel
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
KeymapKey
Create a KeymapKey proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
KeymapKey
Allocate a new KeymapKey.- Parameters:
arena
- to control the memory allocation scope
-
KeymapKey
public KeymapKey()Allocate a new KeymapKey. The memory is allocated withArena.ofAuto()
. -
KeymapKey
Allocate a new KeymapKey with the fields set to the provided values.- Parameters:
keycode
- value for the fieldkeycode
group
- value for the fieldgroup
level
- value for the fieldlevel
arena
- to control the memory allocation scope
-
KeymapKey
public KeymapKey(int keycode, int group, int level) Allocate a new KeymapKey with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
keycode
- value for the fieldkeycode
group
- value for the fieldgroup
level
- value for the fieldlevel
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readKeycode
public int readKeycode()Read the value of the fieldkeycode
.- Returns:
- The value of the field
keycode
-
writeKeycode
public void writeKeycode(int keycode) Write a value in the fieldkeycode
.- Parameters:
keycode
- The new value for the fieldkeycode
-
readGroup
public int readGroup()Read the value of the fieldgroup
.- Returns:
- The value of the field
group
-
writeGroup
public void writeGroup(int group) Write a value in the fieldgroup
.- Parameters:
group
- The new value for the fieldgroup
-
readLevel
public int readLevel()Read the value of the fieldlevel
.- Returns:
- The value of the field
level
-
writeLevel
public void writeLevel(int level) Write a value in the fieldlevel
.- Parameters:
level
- The new value for the fieldlevel
-