Package org.gnome.gtk
Class RecentData
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gtk.RecentData
- All Implemented Interfaces:
Proxy
Meta-data to be passed to gtk_recent_manager_add_full() when
registering a recently used resource.
-
Constructor Summary
ConstructorDescriptionAllocate a new RecentData.RecentData
(Arena arena) Allocate a new RecentData.RecentData
(MemorySegment address) Create a RecentData proxy instance for the provided memory address.RecentData
(String displayName, String description, String mimeType, String appName, String appExec, String[] groups, boolean isPrivate) Allocate a new RecentData with the fields set to the provided values.RecentData
(String displayName, String description, String mimeType, String appName, String appExec, String[] groups, boolean isPrivate, Arena arena) Allocate a new RecentData 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 fieldapp_exec
.Read the value of the fieldapp_name
.Read the value of the fielddescription
.Read the value of the fielddisplay_name
.String[]
Read the value of the fieldgroups
.boolean
Read the value of the fieldis_private
.Read the value of the fieldmime_type
.void
writeAppExec
(String appExec, Arena _arena) Write a value in the fieldapp_exec
.void
writeAppName
(String appName, Arena _arena) Write a value in the fieldapp_name
.void
writeDescription
(String description, Arena _arena) Write a value in the fielddescription
.void
writeDisplayName
(String displayName, Arena _arena) Write a value in the fielddisplay_name
.void
writeGroups
(String[] groups, Arena _arena) Write a value in the fieldgroups
.void
writeIsPrivate
(boolean isPrivate) Write a value in the fieldis_private
.void
writeMimeType
(String mimeType, Arena _arena) Write a value in the fieldmime_type
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
RecentData
Create a RecentData proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
RecentData
Allocate a new RecentData.- Parameters:
arena
- to control the memory allocation scope
-
RecentData
public RecentData()Allocate a new RecentData. The memory is allocated withArena.ofAuto()
. -
RecentData
public RecentData(String displayName, String description, String mimeType, String appName, String appExec, String[] groups, boolean isPrivate, Arena arena) Allocate a new RecentData with the fields set to the provided values.- Parameters:
displayName
- value for the fielddisplayName
description
- value for the fielddescription
mimeType
- value for the fieldmimeType
appName
- value for the fieldappName
appExec
- value for the fieldappExec
groups
- value for the fieldgroups
isPrivate
- value for the fieldisPrivate
arena
- to control the memory allocation scope
-
RecentData
public RecentData(String displayName, String description, String mimeType, String appName, String appExec, String[] groups, boolean isPrivate) Allocate a new RecentData with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
displayName
- value for the fielddisplayName
description
- value for the fielddescription
mimeType
- value for the fieldmimeType
appName
- value for the fieldappName
appExec
- value for the fieldappExec
groups
- value for the fieldgroups
isPrivate
- value for the fieldisPrivate
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readDisplayName
Read the value of the fielddisplay_name
.- Returns:
- The value of the field
display_name
-
writeDisplayName
-
readDescription
Read the value of the fielddescription
.- Returns:
- The value of the field
description
-
writeDescription
-
readMimeType
Read the value of the fieldmime_type
.- Returns:
- The value of the field
mime_type
-
writeMimeType
-
readAppName
Read the value of the fieldapp_name
.- Returns:
- The value of the field
app_name
-
writeAppName
-
readAppExec
Read the value of the fieldapp_exec
.- Returns:
- The value of the field
app_exec
-
writeAppExec
-
readGroups
Read the value of the fieldgroups
.- Returns:
- The value of the field
groups
-
writeGroups
-
readIsPrivate
public boolean readIsPrivate()Read the value of the fieldis_private
.- Returns:
- The value of the field
is_private
-
writeIsPrivate
public void writeIsPrivate(boolean isPrivate) Write a value in the fieldis_private
.- Parameters:
isPrivate
- The new value for the fieldis_private
-