Package org.gnome.gtk
Class PadActionEntry
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.PadActionEntry
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.Read the value of the fieldaction_name.intRead the value of the fieldindex.Read the value of the fieldlabel.intreadMode()Read the value of the fieldmode.readType()Read the value of the fieldtype.voidwriteActionName(String actionName, Arena _arena) Write a value in the fieldaction_name.voidwriteIndex(int index) Write a value in the fieldindex.voidwriteLabel(String label, Arena _arena) Write a value in the fieldlabel.voidwriteMode(int mode) Write a value in the fieldmode.voidwriteType(PadActionType type) Write a value in the fieldtype.Methods inherited from class org.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 fieldtypeindex- value for the fieldindexmode- value for the fieldmodelabel- value for the fieldlabelactionName- value for the fieldactionNamearena- 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 fieldtypeindex- value for the fieldindexmode- value for the fieldmodelabel- value for the fieldlabelactionName- 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
-