Package org.gnome.gtk
Class PadActionEntry
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gtk.PadActionEntry
-
Constructor Summary
ConstructorDescriptionAllocate a new PadActionEntry.PadActionEntry
(Arena arena) Allocate a new PadActionEntry.PadActionEntry
(MemorySegment address) Create a PadActionEntry proxy instance for the provided memory address.PadActionEntry
(PadActionType type, int index, int mode, String label, String actionName) Allocate a new PadActionEntry with the fields set to the provided values.PadActionEntry
(PadActionType type, int index, int mode, String label, String actionName, Arena arena) Allocate a new PadActionEntry with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.Read the value of the fieldaction_name
.int
Read the value of the fieldindex
.Read the value of the fieldlabel
.int
readMode()
Read the value of the fieldmode
.readType()
Read the value of the fieldtype
.void
writeActionName
(String actionName, Arena _arena) Write a value in the fieldaction_name
.void
writeIndex
(int index) Write a value in the fieldindex
.void
writeLabel
(String label, Arena _arena) Write a value in the fieldlabel
.void
writeMode
(int mode) Write a value in the fieldmode
.void
writeType
(PadActionType type) Write a value in the fieldtype
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PadActionEntry
Create a PadActionEntry proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
PadActionEntry
Allocate a new PadActionEntry.- Parameters:
arena
- to control the memory allocation scope
-
PadActionEntry
public PadActionEntry()Allocate a new PadActionEntry. The memory is allocated withArena.ofAuto()
. -
PadActionEntry
public PadActionEntry(PadActionType type, int index, int mode, String label, String actionName, Arena arena) Allocate a new PadActionEntry with the fields set to the provided values.- Parameters:
type
- value for the fieldtype
index
- value for the fieldindex
mode
- value for the fieldmode
label
- value for the fieldlabel
actionName
- value for the fieldactionName
arena
- to control the memory allocation scope
-
PadActionEntry
Allocate a new PadActionEntry with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
type
- value for the fieldtype
index
- value for the fieldindex
mode
- value for the fieldmode
label
- value for the fieldlabel
actionName
- value for the fieldactionName
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readType
Read the value of the fieldtype
.- Returns:
- The value of the field
type
-
writeType
Write a value in the fieldtype
.- Parameters:
type
- The new value for the fieldtype
-
readIndex
public int readIndex()Read the value of the fieldindex
.- Returns:
- The value of the field
index
-
writeIndex
public void writeIndex(int index) Write a value in the fieldindex
.- Parameters:
index
- The new value for the fieldindex
-
readMode
public int readMode()Read the value of the fieldmode
.- Returns:
- The value of the field
mode
-
writeMode
public void writeMode(int mode) Write a value in the fieldmode
.- Parameters:
mode
- The new value for the fieldmode
-
readLabel
-
writeLabel
-
readActionName
Read the value of the fieldaction_name
.- Returns:
- The value of the field
action_name
-
writeActionName
-