Package org.gnome.gdk
Class KeymapKey
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gdk.KeymapKey
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.intRead the value of the fieldgroup.intRead the value of the fieldkeycode.intRead the value of the fieldlevel.voidwriteGroup(int group) Write a value in the fieldgroup.voidwriteKeycode(int keycode) Write a value in the fieldkeycode.voidwriteLevel(int level) Write a value in the fieldlevel.Methods inherited from class org.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 fieldkeycodegroup- value for the fieldgrouplevel- value for the fieldlevelarena- 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 fieldkeycodegroup- value for the fieldgrouplevel- 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
-