|
Zrythm
a highly automated and intuitive digital audio workstation
|
Supported file info. More...
#include <glib.h>

Go to the source code of this file.
Data Structures | |
| struct | SupportedFile |
| Metadata for a supported file. More... | |
Macros | |
| #define | SUPPORTED_FILE_DND_PREFIX Z_DND_STRING_PREFIX "SupportedFile::" |
Typedefs | |
| typedef struct _WrappedObjectWithChangeSignal | WrappedObjectWithChangeSignal |
Enumerations | |
| enum class | ZFileType { FILE_TYPE_MIDI , FILE_TYPE_MP3 , FILE_TYPE_FLAC , FILE_TYPE_OGG , FILE_TYPE_WAV , FILE_TYPE_DIR , ZFileType::FILE_TYPE_PARENT_DIR , FILE_TYPE_OTHER , NUM_FILE_TYPES } |
| File type. More... | |
Functions | |
| SupportedFile * | supported_file_new_from_path (const char *path) |
| Creates a new SupportedFile from the given absolute path. | |
| SupportedFile * | supported_file_new_from_uri (const char *uri, GError **error) |
| char * | supported_file_type_get_description (ZFileType type) |
| Returns a human readable description of the given file type. | |
| SupportedFile * | supported_file_clone (const SupportedFile *src) |
| Clones the given SupportedFile. | |
| int | supported_file_type_is_supported (ZFileType type) |
| Returns if the given type is supported. | |
| int | supported_file_type_is_audio (ZFileType type) |
| Returns if the SupportedFile is an audio file. | |
| int | supported_file_type_is_midi (ZFileType type) |
| Returns if the SupportedFile is a midi file. | |
| const char * | supported_file_type_get_ext (ZFileType type) |
| Returns the most common extension for the given filetype. | |
| NONNULL ZFileType | supported_file_get_type (const char *file) |
| Returns the file type of the given file path. | |
| NONNULL bool | supported_file_should_autoplay (const SupportedFile *self) |
| Returns whether the given file should auto-play (shorter than 1 min). | |
| const char * | supported_file_get_icon_name (const SupportedFile *const self) |
| Gets the corresponding icon name for the given SupportedFile's type. | |
| NONNULL char * | supported_file_get_info_text_for_label (const SupportedFile *self) |
| Returns a pango markup to be used in GTK labels. | |
| void | supported_file_free (SupportedFile *self) |
| Frees the instance and all its members. | |
Supported file info.
Definition in file supported_file.h.
| typedef struct _WrappedObjectWithChangeSignal WrappedObjectWithChangeSignal |
Definition at line 17 of file supported_file.h.