class Gio::FileAttributeInfoList

Overview

Acts as a lightweight registry for possible valid file attributes. The registry stores Key-Value pair formats as #GFileAttributeInfos.

Defined in:

lib/gi-crystal/src/auto/gio-2.0/file_attribute_info_list.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(data : LibGio::FileAttributeInfoList, transfer : GICrystal::Transfer) #

def self.new(n_infos : Int32? = nil) #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def add(name : String, type : Gio::FileAttributeType, flags : Gio::FileAttributeInfoFlags) : Nil #

Description copied from class Reference

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.


def infos : Gio::FileAttributeInfo? #

def infos! #

def lookup(name : String) : Gio::FileAttributeInfo #

def n_infos : Int32 #

def n_infos=(value : Int32) #


def to_unsafe #

def unref : Nil #