Package org.gnome.gtk
Class RecentData
java.lang.Object
org.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
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe 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.@Nullable String @Nullable []Read the value of the fieldgroups.booleanRead the value of the fieldis_private.Read the value of the fieldmime_type.voidwriteAppExec(String appExec, Arena _arena) Write a value in the fieldapp_exec.voidwriteAppName(String appName, Arena _arena) Write a value in the fieldapp_name.voidwriteDescription(String description, Arena _arena) Write a value in the fielddescription.voidwriteDisplayName(String displayName, Arena _arena) Write a value in the fielddisplay_name.voidwriteGroups(@Nullable String @Nullable [] groups, Arena _arena) Write a value in the fieldgroups.voidwriteIsPrivate(boolean isPrivate) Write a value in the fieldis_private.voidwriteMimeType(String mimeType, Arena _arena) Write a value in the fieldmime_type.Methods inherited from class org.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 fielddisplayNamedescription- value for the fielddescriptionmimeType- value for the fieldmimeTypeappName- value for the fieldappNameappExec- value for the fieldappExecgroups- value for the fieldgroupsisPrivate- value for the fieldisPrivatearena- 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 fielddisplayNamedescription- value for the fielddescriptionmimeType- value for the fieldmimeTypeappName- value for the fieldappNameappExec- value for the fieldappExecgroups- value for the fieldgroupsisPrivate- 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
-