Package ch.bailu.gtk.gio
Class FileAttributeInfoList
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.FileAttributeInfoList
- All Implemented Interfaces:
PointerInterface
Acts as a lightweight registry for possible valid file attributes.
The registry stores Key-Value pair formats as #GFileAttributeInfos.
The registry stores Key-Value pair formats as #GFileAttributeInfos.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new file attribute info list.FileAttributeInfoList
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new attribute with @name to the @list, setting
its @type and @flags.void
Adds a new attribute with @name to the @list, setting
its @type and @flags.dup()
Makes a duplicate of a file attribute info list.static ClassHandler
an array of #GFileAttributeInfos.int
the number of values in the array.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
Gets the file attribute with the name @name from @list.Gets the file attribute with the name @name from @list.ref()
References a file attribute info list.void
setFieldInfos
(FileAttributeInfo infos) an array of #GFileAttributeInfos.void
setFieldNInfos
(int n_infos) the number of values in the array.void
unref()
Removes a reference from the given @list.Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
INFOS
an array of #GFileAttributeInfos.- See Also:
-
N_INFOS
the number of values in the array.- See Also:
-
-
Constructor Details
-
FileAttributeInfoList
-
FileAttributeInfoList
public FileAttributeInfoList()Creates a new file attribute info list.
-
-
Method Details
-
getClassHandler
-
setFieldInfos
an array of #GFileAttributeInfos. -
getFieldInfos
an array of #GFileAttributeInfos. -
setFieldNInfos
public void setFieldNInfos(int n_infos) the number of values in the array. -
getFieldNInfos
public int getFieldNInfos()the number of values in the array. -
add
Adds a new attribute with @name to the @list, setting
its @type and @flags.- Parameters:
name
- the name of the attribute to add.type
- the #GFileAttributeType for the attribute.flags
- #GFileAttributeInfoFlags for the attribute.
-
add
Adds a new attribute with @name to the @list, setting
its @type and @flags.- Parameters:
name
- the name of the attribute to add.type
- the #GFileAttributeType for the attribute.flags
- #GFileAttributeInfoFlags for the attribute.
-
dup
Makes a duplicate of a file attribute info list.- Returns:
- a copy of the given @list.
-
lookup
Gets the file attribute with the name @name from @list.- Parameters:
name
- the name of the attribute to look up.- Returns:
- a #GFileAttributeInfo for the @name, or %NULL if an attribute isn't found.
-
lookup
Gets the file attribute with the name @name from @list.- Parameters:
name
- the name of the attribute to look up.- Returns:
- a #GFileAttributeInfo for the @name, or %NULL if an attribute isn't found.
-
ref
References a file attribute info list.- Returns:
- #GFileAttributeInfoList or %NULL on error.
-
unref
public void unref()Removes a reference from the given @list. If the reference count
falls to zero, the @list is deleted. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-