enum GLib::UserDirectory

Overview

These are logical ids for special directories which are defined depending on the platform used. You should use g_get_user_special_dir() to retrieve the full path associated to the logical id.

The #GUserDirectory enumeration can be extended at later date. Not every platform has a directory for every logical id in this enumeration.

Defined in:

lib/gi-crystal/src/auto/g_lib-2.0/g_lib.cr

Enum Members

DirectoryDesktop = 0_u32

the user's Desktop directory

DirectoryDocuments = 1_u32

the user's Documents directory

DirectoryDownload = 2_u32

the user's Downloads directory

DirectoryMusic = 3_u32

the user's Music directory

DirectoryPictures = 4_u32

the user's Pictures directory

DirectoryPublicShare = 5_u32

the user's shared directory

DirectoryTemplates = 6_u32

the user's Templates directory

DirectoryVideos = 7_u32

the user's Movies directory

NDirectories = 8_u32

the number of enum values

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Instance Method Detail

def directory_desktop? #

[View source]
def directory_documents? #

[View source]
def directory_download? #

[View source]
def directory_music? #

[View source]
def directory_pictures? #

[View source]
def directory_public_share? #

[View source]
def directory_templates? #

[View source]
def directory_videos? #

[View source]
def n_directories? #

[View source]