Descriptor of a file.
More...
#include <src/gui/backend/io/file_descriptor.h>
|
|
| FileDescriptor (const std::filesystem::path &abs_path) |
| bool | is_audio () const |
| bool | is_midi () const |
| bool | is_supported () const |
| auto | get_label () const |
|
bool | should_autoplay () const |
| | Returns whether the given file should auto-play (shorter than 1 min).
|
|
utils::Utf8String | get_icon_name () const |
| | Gets the corresponding icon name for the given FileDescriptor's type.
|
|
utils::Utf8String | get_info_text_for_label () const |
| | Returns a pango markup to be used in GTK labels.
|
Descriptor of a file.
Definition at line 41 of file file_descriptor.h.
◆ get_label()
| auto zrythm::legacy::FileDescriptor::get_label |
( |
| ) |
const |
|
inline |
◆ get_type_description()
Returns a human readable description of the given file type.
Example: wav -> "Wave file".
◆ is_audio()
| bool zrythm::legacy::FileDescriptor::is_audio |
( |
| ) |
const |
|
inline |
◆ is_midi()
| bool zrythm::legacy::FileDescriptor::is_midi |
( |
| ) |
const |
|
inline |
◆ is_supported()
| bool zrythm::legacy::FileDescriptor::is_supported |
( |
| ) |
const |
|
inline |
◆ new_from_uri()
| std::unique_ptr< FileDescriptor > zrythm::legacy::FileDescriptor::new_from_uri |
( |
const utils::Utf8String & | uri | ) |
|
|
static |
Creates a new FileDescriptor from a URI.
- Parameters
-
- Returns
- std::unique_ptr<FileDescriptor>
- Exceptions
-
◆ abs_path_
| std::filesystem::path zrythm::legacy::FileDescriptor::abs_path_ |
◆ hidden_
| bool zrythm::legacy::FileDescriptor::hidden_ = false |
◆ label_
◆ type_
| FileType zrythm::legacy::FileDescriptor::type_ = {} |
The documentation for this class was generated from the following file: