Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
Utilities

Various utilities. More...

Files

file  resources.h
 Helpers for loading and using resources such as icons.

Data Structures

struct  ZGObjectImpl
 GObject struct (from GObject source code), used where hacks are needed. More...
struct  PangoLayoutDeleter
class  FileDescriptor
 Descriptor of a file. More...
class  UiColors
 Commonly used UI colors. More...
class  UiTextures
 Commonly used UI textures. More...
struct  fmt::formatter< std::filesystem::path >
struct  fmt::formatter< juce::String >
struct  fmt::formatter< juce::File >
struct  fmt::formatter< QString >
struct  fmt::formatter< Ptr >
struct  fmt::formatter< std::optional< T > >
struct  fmt::formatter< std::atomic< T > >
struct  fmt::formatter< QPointer< T > >
struct  fmt::formatter< utils::QObjectUniquePtr< T > >
struct  fmt::formatter< QUuid >
struct  fmt::formatter< std::source_location >
struct  fmt::formatter< std::variant< Ts... > >
struct  fmt::formatter< T >
struct  fmt::formatter<::au::Quantity< U, R > >
struct  fmt::formatter< T, char, std::enable_if_t< boost::describe::has_describe_bases< T >::value &&boost::describe::has_describe_members< T >::value &&!std::is_union_v< T > > >
class  MPMCQueue< T >
 Multiple Producer Multiple Consumer lock-free queue. More...
class  ProgressInfo
 Generic progress info. More...
class  Resampler
 Audio resampler. More...
struct  EngineProcessTimeInfo
 Common struct to pass around during processing to avoid repeating the data in function arguments. More...
struct  EngineState
struct  OptionalRef< T >
 Wrapper around std::optional<std::reference_wrapper<T>> that provides a more convenient API. More...

Macros

#define Z_CAIRO_FONT   "Bold 9"
 Default font for drawing pango text.
#define Z_CAIRO_TEXT_PADDING   2
 Padding to leave from the top/left edges when drawing text.
#define z_cairo_get_text_extents_for_widget(_widget, _layout, _text, _width, _height)
#define z_cairo_draw_text(cr, widget, layout, text)
 Draw text with default padding.
#define DEFAULT_CLIPBOARD   gdk_display_get_clipboard (gdk_display_get_default ())
#define CREATE_MIDI_LEARN_MENU_ITEM(action)
#define CREATE_CUT_MENU_ITEM(action)
#define CREATE_COPY_MENU_ITEM(action)
#define CREATE_PASTE_MENU_ITEM(action)
#define CREATE_DELETE_MENU_ITEM(action)
#define CREATE_CLEAR_SELECTION_MENU_ITEM(action)
#define CREATE_SELECT_ALL_MENU_ITEM(action)
#define CREATE_DUPLICATE_MENU_ITEM(action)
#define CREATE_MUTE_MENU_ITEM(action)
#define CREATE_UNMUTE_MENU_ITEM(action)
#define z_gtk_assistant_set_current_page_complete(assistant, complete)
#define Z_GDK_RGBA_INIT(r, g, b, a)
#define Z_GDK_RECTANGLE_INIT(_x, _y, _w, _h)
#define Z_GDK_RECTANGLE_INIT_UNIT(_x, _y)
#define Z_GRAPHENE_RECT_INIT(_x, _y, _w, _h)
#define Z_GRAPHENE_POINT_INIT(_x, _y)
#define Z_GRAPHENE_SIZE_INIT(_w, _h)
#define z_gtk_create_menu_item(lbl_name, icn_name, action_name)
#define RESOURCES_PATH_TOP   "/org/zrythm/Zrythm"
#define RESOURCES_PATH   RESOURCES_PATH_TOP "/app"
#define RESOURCES_TEMPLATE_PATH   RESOURCES_PATH "/ui"
#define RESOURCES_GL_SHADERS_PATH   RESOURCES_PATH "/gl/shaders"
#define SUPPORTED_FILE_DND_PREFIX   Z_DND_STRING_PREFIX "FileDescriptor::"
#define UI_CACHES   (zrythm_app->ui_caches_)
#define UI_COLORS   (&UI_CACHES->colors_)
#define z_return_val_if_fail_cmp(a, comparator, b, val)
#define z_return_if_fail_cmp(a, comparator, b)
#define z_warn_if_fail_cmp(a, comparator, b)
#define DEBUG_BREAK()
#define DEFINE_FORMATTER_PRELUDE
#define VA_ARGS_SIZE(...)
#define DEFINE_ENUM_FORMATTER(enum_type, enum_name, ...)
#define ENUM_INT_TO_VALUE_CONST(_enum, _int)
#define ENUM_INT_TO_VALUE(_enum, _int)
#define ENUM_VALUE_TO_INT(_val)
#define ENUM_ENABLE_BITSET(_enum)
#define ENUM_BITSET(_enum, _val)
#define ENUM_BITSET_TEST(_val, _other_val)
#define ENUM_BITSET_TO_STRING(_enum, _val)
#define ENUM_COUNT(_enum)
#define ENUM_NAME(_val)
#define ENUM_NAME_FROM_INT(_enum, _int)
#define ZRYTHM_IS_QT_THREAD   (QThread::currentThread () == qApp->thread ())
#define Z_DISABLE_COPY_MOVE(Class)
#define Z_DISABLE_COPY(Class)
#define Z_DISABLE_MOVE(Class)

Typedefs

using PangoLayoutUniquePtr = std::unique_ptr<PangoLayout, PangoLayoutDeleter>
using Color = zrythm::utils::Color
using RtTimePoint = int64_t
using RtDuration = int64_t
using midi_byte_t = uint8_t
 MIDI byte.
using nframes_t = uint32_t
 Frame count.
using midi_time_t = uint32_t
 MIDI time in global frames.
using channels_t = uint_fast8_t
 Number of channels.
using audio_sample_type_t = float
 The sample type.
using bpm_t = float
 The BPM type.
using curviness_t = double
using signed_frame_t = int_fast64_t
 Signed type for frame index.
using unsigned_frame_t = uint_fast64_t
 Unsigned type for frame index.
using signed_ms_t = signed_frame_t
 Signed millisecond index.
using signed_sec_t = signed_frame_t
 Signed second index.
using ProcessId = qint64
 GPid equivalent.
using GenericFloatGetter = std::function<float ()>
 Getter prototype for float values.
using GenericFloatSetter = std::function<void (float)>
 Setter prototype for float values.
using GenericStringGetter = std::function<std::string ()>
 Getter prototype for strings.
using GenericStringSetter = std::function<void (const std::string &)>
 Setter prototype for float values.
using GenericCallback = std::function<void ()>
 Generic callback.
using GenericBoolGetter = std::function<bool ()>
using SteadyClock = std::chrono::steady_clock
using SteadyTimePoint = SteadyClock::time_point
using SteadyDuration = SteadyClock::duration
using basic_enum_base_type_t = uint8_t

Enumerations

enum  ZGtkResize { Z_GTK_NO_RESIZE , Z_GTK_RESIZE }
enum  ZGtkShrink { Z_GTK_NO_SHRINK , Z_GTK_SHRINK }
enum class  FileType {
  Midi , Mp3 , Flac , Ogg ,
  Wav , Directory , FileType::ParentDirectory , Other ,
  NumFileTypes
}
 File type. More...
enum class  UiCursorState {
  UI_CURSOR_STATE_DEFAULT , UI_CURSOR_STATE_RESIZE_L , UI_CURSOR_STATE_REPEAT_L , UI_CURSOR_STATE_RESIZE_R ,
  UI_CURSOR_STATE_REPEAT_R , UI_CURSOR_STATE_RESIZE_UP
}
 Various cursor states to be shared. More...
enum class  UiOverlayAction {
  None , CreatingResizingR , CREATING_MOVING , ResizingL ,
  ResizingLLoop , ResizingLFade , ResizingR , ResizingRLoop ,
  ResizingRFade , RESIZING_UP , RESIZING_UP_FADE_IN , RESIZING_UP_FADE_OUT ,
  StretchingL , StretchingR , STARTING_AUDITIONING , AUDITIONING ,
  UiOverlayAction::AUTOFILLING , UiOverlayAction::ERASING , STARTING_ERASING , UiOverlayAction::STARTING_MOVING ,
  STARTING_MOVING_COPY , STARTING_MOVING_LINK , MOVING , MovingCopy ,
  MOVING_LINK , STARTING_CHANGING_CURVE , CHANGING_CURVE , UiOverlayAction::STARTING_SELECTION ,
  SELECTING , UiOverlayAction::STARTING_DELETE_SELECTION , DELETE_SELECTING , STARTING_RAMP ,
  RAMPING , CUTTING , RENAMING , StartingPanning ,
  Panning , NUM_UI_OVERLAY_ACTIONS
}
 Various overlay actions to be shared. More...
enum class  AudioValueFormat { AudioValueFormat::Amplitude , AudioValueFormat::DBFS , AudioValueFormat::Fader }
enum class  TimeFormat : std::uint8_t { TimeFormat::Musical , TimeFormat::Absolute }
enum class  BeatUnit { Two , Four , Eight , Sixteen }
 Beat unit. More...
enum class  CacheType { PlaybackSnapshots = 1 << 2 , AutomationLaneRecordModes = 1 << 3 , AutomationLanePorts = 1 << 4 }

Functions

void z_cairo_draw_horizontal_line (cairo_t *cr, double y, double from_x, double to_x, double line_width, double alpha)
void z_cairo_draw_vertical_line (cairo_t *cr, double x, double from_y, double to_y, double line_width)
void _z_cairo_get_text_extents_for_widget (GtkWidget *widget, PangoLayout *layout, const char *text, int *width, int *height)
 Gets the width of the given text in pixels for the given widget.
void z_cairo_draw_text_full (cairo_t *cr, GtkWidget *widget, PangoLayout *layout, const char *text, int start_x, int start_y)
 Draws the given text using the given font starting at the given position.
PangoLayoutUniquePtr z_cairo_create_pango_layout_from_string (GtkWidget *widget, const char *font, PangoEllipsizeMode ellipsize_mode, int ellipsize_padding)
 Creates a PangoLayout to be cached in widgets based on the given settings.
PangoLayoutUniquePtr z_cairo_create_pango_layout_from_description (GtkWidget *widget, PangoFontDescription *descr, PangoEllipsizeMode ellipsize_mode, int ellipsize_padding)
 Creates a PangoLayout to be cached in widgets based on the given settings.
PangoLayout * z_cairo_create_default_pango_layout (GtkWidget *widget)
 Creates a PangoLayout with default settings.
void z_cairo_set_source_color (cairo_t *cr, Color color)
GdkMonitor * z_gtk_get_primary_monitor (void)
int z_gtk_get_primary_monitor_scale_factor (void)
int z_gtk_get_primary_monitor_refresh_rate (void)
bool z_gtk_is_wayland (void)
void z_gtk_tree_view_remove_all_columns (GtkTreeView *treeview)
void z_gtk_column_view_remove_all_columns (GtkColumnView *column_view)
GListStore * z_gtk_column_view_get_list_store (GtkColumnView *column_view)
void z_gtk_list_store_splice (GListStore *store, auto &items)
 Removes all items and re-populates the list store.
void z_gtk_widget_remove_all_children (GtkWidget *widget)
void z_gtk_widget_destroy_all_children (GtkWidget *widget)
void z_gtk_widget_remove_children_of_type (GtkWidget *widget, GType type)
void z_gtk_overlay_add_if_not_exists (GtkOverlay *overlay, GtkWidget *widget)
void z_gtk_button_set_icon_name_and_text (GtkButton *btn, const char *name, const char *text, bool icon_first, GtkOrientation orientation, int spacing)
 Sets the icon name and optionally text.
GtkToggleButton * z_gtk_toggle_button_new_with_icon (const char *name)
 Creates a toggle button with the given icon name.
GtkToggleButton * z_gtk_toggle_button_new_with_icon_and_text (const char *name, const char *text, bool icon_first, GtkOrientation orientation, int spacing)
 Creates a toggle button with the given icon name.
GtkButton * z_gtk_button_new_with_icon_and_text (const char *name, const char *text, bool icon_first, GtkOrientation orientation, int spacing)
 Creates a button with the given icon name and text.
GMenuItem * z_gtk_create_menu_item_full (const gchar *label_name, const gchar *icon_name, const char *detailed_action)
 Creates a menu item.
char * z_gtk_get_tooltip_for_action (const char *detailed_action, const char *tooltip)
 Gets the tooltip for the given action on the given widget.
void z_gtk_widget_set_tooltip_for_action (GtkWidget *widget, const char *detailed_action, const char *tooltip)
 Sets the tooltip for the given action on the given widget.
void z_gtk_set_tooltip_for_actionable (GtkActionable *actionable, const char *tooltip)
 Sets the tooltip and finds the accel keys and appends them to the tooltip in small text.
GtkWidget * z_gtk_widget_get_nth_child (GtkWidget *widget, int index)
 Returns the nth child of a container.
void z_gtk_button_set_emblem (GtkButton *btn, const char *emblem_icon)
 Sets the given emblem to the button, or unsets the emblem if emblem_icon is NULL.
void z_gtk_setup_foldable_notebook (GtkNotebook *notebook)
 Makes the given notebook foldable.
void z_gtk_widget_set_margin (GtkWidget *widget, int margin)
 Sets the margin on all 4 sides on the widget.
GtkFlowBoxChild * z_gtk_flow_box_get_selected_child (GtkFlowBox *self)
bool z_gtk_activate_dir_link_func (GtkLabel *label, char *uri, void *data)
 Callback to use for simple directory links.
void z_gtk_notebook_make_detachable (GtkNotebook *notebook, GtkWindow *parent_window)
 Makes the given GtkNotebook detachable to a new window.
char * z_gtk_text_buffer_get_full_text (GtkTextBuffer *buffer)
 Returns the full text contained in the text buffer.
void z_gtk_generate_screenshot_image (GtkWidget *widget, const char *type, char **option_keys, char **option_values, char **ret_dir, char **ret_path, bool accept_fallback)
 Generates a screenshot image for the given widget.
void z_gtk_actionable_set_action_from_setting (GtkActionable *actionable, GSettings *settings, const char *key)
 Sets the action target of the given GtkActionable to be binded to the given setting.
bool z_gtk_is_event_button (GdkEvent *ev)
void z_gtk_scrolled_window_get_visible_rect (GtkScrolledWindow *scroll, graphene_rect_t *rect)
 Gets the visible rectangle from the scrolled window's adjustments.
void z_gtk_graphene_rect_t_to_gdk_rectangle (GdkRectangle *rect, graphene_rect_t *grect)
void z_gdk_rectangle_to_graphene_rect_t (graphene_rect_t *grect, GdkRectangle *rect)
void z_gdk_rectangle_print (const GdkRectangle *rect)
int z_gtk_dialog_run (GtkDialog *dialog, bool destroy_on_close)
 Mimics the blocking behavior.
void z_gtk_show_context_menu_from_g_menu (GtkPopoverMenu *popover_menu, double x, double y, GMenu *menu)
 The popover must already exist as a children of its intended widget (or a common parent).
GdkDragAction z_gtk_drop_target_get_selected_action (GtkDropTarget *drop_target)
 Returns the bitmask of the selected action during a drop (eg, GDK_ACTION_COPY).
GtkIconTheme * z_gtk_icon_theme_get_default (void)
char * z_gdk_clipboard_get_text (GdkClipboard *clipboard)
 Returns the text on the clipboard, or NULL if there is nothing or the content is not text.
GdkPixbuf * z_gdk_pixbuf_new_from_icon_name (const char *icon_name, int width, int height, int scale, GError **error)
 Creates a new pixbuf for the given icon scaled at the given width/height.
GdkTexture * z_gdk_texture_new_from_icon_name (const char *icon_name, int width, int height, int scale)
 Creates a new texture for the given icon scaled at the given width/height.
void z_gtk_print_graphene_rect (graphene_rect_t *rect)
void z_gtk_widget_print_hierarchy (GtkWidget *widget)
 Prints the widget's hierarchy (parents).
const char * z_gtk_get_gsk_renderer_type (void)
gboolean z_gtk_simple_action_shortcut_func (GtkWidget *widget, GVariant *args, gpointer user_data)
 A shortcut callback to use for simple actions.
GtkWidget * z_gtk_widget_find_child_of_type (GtkWidget *widget, GType type)
 Recursively searches the children of widget for a child of type type.
void z_gtk_list_box_remove_all_children (GtkListBox *list_box)
void z_graphene_rect_print (const graphene_rect_t *rect)
GtkStringList * z_gtk_string_list_new_from_string_array (const char **strvals, size_t num_vals, bool localized)
GtkWidget * z_gtk_get_first_focusable_child (GtkWidget *parent)
bool z_gtk_descendant_has_focus (GtkWidget *parent)
void z_gtk_window_make_escapable (GtkWindow *self)
void z_gtk_drop_down_list_item_header_setup_common (GtkSignalListItemFactory *factory, GObject *list_item, gpointer user_data)
 A common "setup" signal handler for GtkDropDown header factories.
void z_gtk_drop_down_factory_setup_common (GtkSignalListItemFactory *factory, GObject *list_item, gpointer user_data)
void z_gtk_drop_down_factory_setup_common_ellipsized (GtkSignalListItemFactory *factory, GObject *list_item, gpointer user_data)
const char * z_gtk_get_enum_nick (GType type, gint value)
void z_gtk_snapshot_append_color (GtkSnapshot *snapshot, Color color, const graphene_rect_t *rect)
PangoLayoutUniquePtr z_pango_create_layout_from_description (GtkWidget *widget, PangoFontDescription *descr)
void resources_set_class_template (GtkWidgetClass *klass, const char *filename)
 Sets class template from resource.
GBytes * resources_get_gl_shader_data (const char *path)
 Returns the bytes of the specified OpenGL shader in RESOURCES_GL_SHADERS_PATH.
 DEFINE_ENUM_FORMATTER (UiOverlayAction, UiOverlayAction, "NONE", "RESIZING_R", "MOVING", "RESIZING_L", "RESIZING_L_LOOP", "RESIZING_L_FADE", "RESIZING_R", "RESIZING_R_LOOP", "RESIZING_R_FADE", "RESIZING_UP", "RESIZING_UP_FADE_IN", "RESIZING_UP_FADE_OUT", "STRETCHING_L", "STRETCHING_R", "STARTING_AUDITIONING", "AUDITIONING", "AUTOFILLING", "ERASING", "STARTING_ERASING", "STARTING_MOVING", "STARTING_MOVING_COPY", "STARTING_MOVING_LINK", "MOVING", "MOVING_COPY", "MOVING_LINK", "STARTING_CHANGING_CURVE", "CHANGING_CURVE", "STARTING_SELECTION", "SELECTING", "STARTING_DELETE_SELECTION", "DELETE_SELECTING", "STARTING_RAMP", "RAMPING", "CUTTING", "RENAMING", "STARTING_PANNING", "PANNING", "--INVALID--") enum class UiDragMode
 Dragging modes for widgets that have click&drag.
double ui_get_normalized_draggable_value (double size, double cur_val, double start_px, double cur_px, double last_px, double multiplier, UiDragMode mode)
 Gets a draggable value as a normalized value between 0 and 1.
std::string ui_get_db_value_as_string (float val)
 Returns an appropriate string representation of the given dB value.
int env_get_int (const char *key, int def)
 Returns an int for the given environment variable if it exists and is valid, otherwise returns the default int.
template<typename... Args>
std::string format_str (std::string_view format, Args &&... args)
 Used when fmt::format can't be used (when the format string is not a literal).
template<typename... Args>
QString format_qstr (const QString &format, Args &&... args)
 ENUM_ENABLE_BITSET (CacheType)
template<typename T>
std::string typename_to_string ()
template<typename Tuple, typename Callable>
void iterate_tuple (Callable c, Tuple &&t)

Variables

constexpr const char * UI_COLOR_DARK_TEXT = "#323232"
constexpr const char * UI_COLOR_BRIGHT_TEXT = "#cdcdcd"
constexpr const char * UI_COLOR_YELLOW = "#F9CA1B"
constexpr const char * UI_COLOR_PURPLE = "#9D3955"
constexpr const char * UI_COLOR_BUTTON_NORMAL = "#343434"
constexpr const char * UI_COLOR_BUTTON_HOVER = "#444444"
constexpr const char * UI_COLOR_RECORD_CHECKED = "#ED2939"
constexpr const char * UI_COLOR_RECORD_ACTIVE = "#FF2400"
constexpr const char * UI_COLOR_BRIGHT_GREEN = "#1DD169"
constexpr const char * UI_COLOR_DARKISH_GREEN = "#19664c"
constexpr const char * UI_COLOR_DARK_ORANGE = "#D68A0C"
constexpr const char * UI_COLOR_Z_YELLOW = "#F9CA1B"
constexpr const char * UI_COLOR_BRIGHT_ORANGE = "#F79616"
constexpr const char * UI_COLOR_Z_PURPLE = "#9D3955"
constexpr const char * UI_COLOR_MATCHA = "#2eb398"
constexpr const char * UI_COLOR_LIGHT_BLUEISH = "#1aa3ffcc"
constexpr const char * UI_COLOR_PREFADER_SEND = "#D21E6D"
constexpr const char * UI_COLOR_POSTFADER_SEND = "#901ed2"
constexpr const char * UI_COLOR_SOLO_ACTIVE = UI_COLOR_MATCHA
constexpr const char * UI_COLOR_SOLO_CHECKED = UI_COLOR_DARKISH_GREEN
constexpr const char * UI_COLOR_HIGHLIGHT_SCALE_BG = "#662266"
constexpr const char * UI_COLOR_HIGHLIGHT_CHORD_BG = "#BB22BB"
constexpr const char * UI_COLOR_HIGHLIGHT_BASS_BG = UI_COLOR_LIGHT_BLUEISH
constexpr const char * UI_COLOR_HIGHLIGHT_BOTH_BG = "#FF22FF"
constexpr const char * UI_COLOR_HIGHLIGHT_SCALE_FG = "#F79616"
constexpr const char * UI_COLOR_HIGHLIGHT_CHORD_FG = UI_COLOR_HIGHLIGHT_SCALE_FG
constexpr const char * UI_COLOR_HIGHLIGHT_BASS_FG = "white"
constexpr const char * UI_COLOR_HIGHLIGHT_BOTH_FG = "white"
constexpr const char * UI_COLOR_FADER_FILL_END = UI_COLOR_Z_YELLOW
constexpr const char * UI_DELETE_ICON_NAME = "z-edit-delete"
constexpr CacheType ALL_CACHE_TYPES

Detailed Description

Various utilities.

Macro Definition Documentation

◆ CREATE_CLEAR_SELECTION_MENU_ITEM

#define CREATE_CLEAR_SELECTION_MENU_ITEM ( action)
Value:
z_gtk_create_menu_item (/* TRANSLATORS: deselects everything */ \
_ ("Cle_ar Selection"), "edit-clear", action)

Definition at line 44 of file gtk.h.

◆ CREATE_COPY_MENU_ITEM

#define CREATE_COPY_MENU_ITEM ( action)
Value:
z_gtk_create_menu_item (_ ("_Copy"), "edit-copy", action)

Definition at line 35 of file gtk.h.

◆ CREATE_CUT_MENU_ITEM

#define CREATE_CUT_MENU_ITEM ( action)
Value:
z_gtk_create_menu_item (_ ("Cu_t"), "edit-cut", action)

Definition at line 32 of file gtk.h.

◆ CREATE_DELETE_MENU_ITEM

#define CREATE_DELETE_MENU_ITEM ( action)
Value:
z_gtk_create_menu_item (_ ("_Delete"), "edit-delete", action)

Definition at line 41 of file gtk.h.

◆ CREATE_DUPLICATE_MENU_ITEM

#define CREATE_DUPLICATE_MENU_ITEM ( action)
Value:
z_gtk_create_menu_item (_ ("Duplicate"), "edit-duplicate", action)

Definition at line 51 of file gtk.h.

◆ CREATE_MIDI_LEARN_MENU_ITEM

#define CREATE_MIDI_LEARN_MENU_ITEM ( action)
Value:
z_gtk_create_menu_item (_ ("MIDI learn"), "signal-midi", action)

Definition at line 29 of file gtk.h.

◆ CREATE_MUTE_MENU_ITEM

#define CREATE_MUTE_MENU_ITEM ( action)
Value:
z_gtk_create_menu_item (_ ("Mute"), "mute", action)

Definition at line 54 of file gtk.h.

◆ CREATE_PASTE_MENU_ITEM

#define CREATE_PASTE_MENU_ITEM ( action)
Value:
z_gtk_create_menu_item (_ ("_Paste"), "edit-paste", action)

Definition at line 38 of file gtk.h.

◆ CREATE_SELECT_ALL_MENU_ITEM

#define CREATE_SELECT_ALL_MENU_ITEM ( action)
Value:
z_gtk_create_menu_item (_ ("Select A_ll"), "edit-select-all", action)

Definition at line 48 of file gtk.h.

◆ CREATE_UNMUTE_MENU_ITEM

#define CREATE_UNMUTE_MENU_ITEM ( action)
Value:
z_gtk_create_menu_item (_ ("Unmute"), nullptr, action)

Definition at line 57 of file gtk.h.

◆ DEBUG_BREAK

#define DEBUG_BREAK ( )
Value:
do \
{ \
volatile int * p = 0; \
*p = 0; \
} \
while (0)

Definition at line 46 of file debug.h.

◆ DEFAULT_CLIPBOARD

#define DEFAULT_CLIPBOARD   gdk_display_get_clipboard (gdk_display_get_default ())

Definition at line 27 of file gtk.h.

◆ DEFINE_ENUM_FORMATTER

#define DEFINE_ENUM_FORMATTER ( enum_type,
enum_name,
... )

Definition at line 54 of file format.h.

◆ DEFINE_FORMATTER_PRELUDE

#define DEFINE_FORMATTER_PRELUDE
Value:
bool translate_ = false; \
template <typename ParseContext> constexpr auto parse (ParseContext &ctx) \
{ \
auto it = ctx.begin (); \
translate_ = (it != ctx.end () && *it == 't'); \
return it + translate_; \
}

Definition at line 42 of file format.h.

◆ ENUM_BITSET

#define ENUM_BITSET ( _enum,
_val )
Value:
(magic_enum::containers::bitset<_enum> (_val))

Definition at line 198 of file types.h.

◆ ENUM_BITSET_TEST

#define ENUM_BITSET_TEST ( _val,
_other_val )
Value:
/* (ENUM_BITSET (_enum, _val).test (_other_val)) */ \
(static_cast<std::underlying_type_t<decltype (_val)>> (_val) \
& static_cast<std::underlying_type_t<decltype (_val)>> (_other_val))

Definition at line 199 of file types.h.

◆ ENUM_BITSET_TO_STRING

#define ENUM_BITSET_TO_STRING ( _enum,
_val )
Value:
(ENUM_BITSET (_enum, _val).to_string ().data ())
Important
ENUM_ENABLE_BITSET must be called on the enum that this is used on.

Definition at line 206 of file types.h.

◆ ENUM_COUNT

#define ENUM_COUNT ( _enum)
Value:
(magic_enum::enum_count<_enum> ())

Definition at line 209 of file types.h.

◆ ENUM_ENABLE_BITSET

#define ENUM_ENABLE_BITSET ( _enum)
Value:
template <> struct magic_enum::customize::enum_range<_enum> \
{ \
static constexpr bool is_flags = true; \
}

Definition at line 193 of file types.h.

◆ ENUM_INT_TO_VALUE

#define ENUM_INT_TO_VALUE ( _enum,
_int )
Value:
(magic_enum::enum_value<_enum> (_int))

Definition at line 190 of file types.h.

◆ ENUM_INT_TO_VALUE_CONST

#define ENUM_INT_TO_VALUE_CONST ( _enum,
_int )
Value:
(magic_enum::enum_value<_enum, _int> ())

Definition at line 188 of file types.h.

◆ ENUM_NAME

#define ENUM_NAME ( _val)
Value:
(magic_enum::enum_name (_val).data ())

Definition at line 210 of file types.h.

◆ ENUM_NAME_FROM_INT

#define ENUM_NAME_FROM_INT ( _enum,
_int )
Value:
ENUM_NAME (ENUM_INT_TO_VALUE (_enum, _int))

Definition at line 211 of file types.h.

◆ ENUM_VALUE_TO_INT

#define ENUM_VALUE_TO_INT ( _val)
Value:
(magic_enum::enum_integer (_val))

Definition at line 191 of file types.h.

◆ RESOURCES_GL_SHADERS_PATH

#define RESOURCES_GL_SHADERS_PATH   RESOURCES_PATH "/gl/shaders"

Definition at line 22 of file resources.h.

◆ RESOURCES_PATH

#define RESOURCES_PATH   RESOURCES_PATH_TOP "/app"

Definition at line 20 of file resources.h.

◆ RESOURCES_PATH_TOP

#define RESOURCES_PATH_TOP   "/org/zrythm/Zrythm"

Definition at line 19 of file resources.h.

◆ RESOURCES_TEMPLATE_PATH

#define RESOURCES_TEMPLATE_PATH   RESOURCES_PATH "/ui"

Definition at line 21 of file resources.h.

◆ SUPPORTED_FILE_DND_PREFIX

#define SUPPORTED_FILE_DND_PREFIX   Z_DND_STRING_PREFIX "FileDescriptor::"

Definition at line 17 of file file_descriptor.h.

◆ UI_CACHES

#define UI_CACHES   (zrythm_app->ui_caches_)

Definition at line 23 of file ui.h.

◆ UI_COLORS

#define UI_COLORS   (&UI_CACHES->colors_)

Definition at line 24 of file ui.h.

◆ VA_ARGS_SIZE

#define VA_ARGS_SIZE ( ...)
Value:
std::tuple_size<decltype (std::make_tuple (__VA_ARGS__))>::value

Definition at line 51 of file format.h.

◆ z_cairo_draw_text

#define z_cairo_draw_text ( cr,
widget,
layout,
text )
Value:
cr, widget, layout, text, Z_CAIRO_TEXT_PADDING, Z_CAIRO_TEXT_PADDING)
void z_cairo_draw_text_full(cairo_t *cr, GtkWidget *widget, PangoLayout *layout, const char *text, int start_x, int start_y)
Draws the given text using the given font starting at the given position.
#define Z_CAIRO_TEXT_PADDING
Padding to leave from the top/left edges when drawing text.
Definition cairo.h:32

Draw text with default padding.

Definition at line 106 of file cairo.h.

◆ Z_CAIRO_FONT

#define Z_CAIRO_FONT   "Bold 9"

Default font for drawing pango text.

Definition at line 27 of file cairo.h.

◆ z_cairo_get_text_extents_for_widget

#define z_cairo_get_text_extents_for_widget ( _widget,
_layout,
_text,
_width,
_height )
Value:
(GtkWidget *) _widget, _layout, _text, _width, _height)
void _z_cairo_get_text_extents_for_widget(GtkWidget *widget, PangoLayout *layout, const char *text, int *width, int *height)
Gets the width of the given text in pixels for the given widget.

Definition at line 80 of file cairo.h.

◆ Z_CAIRO_TEXT_PADDING

#define Z_CAIRO_TEXT_PADDING   2

Padding to leave from the top/left edges when drawing text.

Definition at line 32 of file cairo.h.

◆ Z_DISABLE_COPY

#define Z_DISABLE_COPY ( Class)
Value:
Q_DISABLE_COPY (Class)

Definition at line 246 of file types.h.

◆ Z_DISABLE_COPY_MOVE

#define Z_DISABLE_COPY_MOVE ( Class)
Value:
Q_DISABLE_COPY_MOVE (Class)

Definition at line 245 of file types.h.

◆ Z_DISABLE_MOVE

#define Z_DISABLE_MOVE ( Class)
Value:
Class (Class &&) = delete; \
Class &operator= (Class &&) = delete;

Definition at line 247 of file types.h.

◆ Z_GDK_RECTANGLE_INIT

#define Z_GDK_RECTANGLE_INIT ( _x,
_y,
_w,
_h )
Value:
{ .x = _x, .y = _y, .width = _w, .height = _h }

Definition at line 74 of file gtk.h.

◆ Z_GDK_RECTANGLE_INIT_UNIT

#define Z_GDK_RECTANGLE_INIT_UNIT ( _x,
_y )
Value:
{ .x = _x, .y = _y, .width = 1, .height = 1 }

Definition at line 77 of file gtk.h.

◆ Z_GDK_RGBA_INIT

#define Z_GDK_RGBA_INIT ( r,
g,
b,
a )
Value:
{ .red = static_cast<float> (r), \
.green = static_cast<float> (g), \
.blue = static_cast<float> (b), \
.alpha = static_cast<float> (a) }

Definition at line 68 of file gtk.h.

◆ Z_GRAPHENE_POINT_INIT

#define Z_GRAPHENE_POINT_INIT ( _x,
_y )
Value:
{ .x = static_cast<float> (_x), .y = static_cast<float> (_y) }

Definition at line 88 of file gtk.h.

◆ Z_GRAPHENE_RECT_INIT

#define Z_GRAPHENE_RECT_INIT ( _x,
_y,
_w,
_h )
Value:
{ \
.origin = { .x = (_x), .y = (_y) }, .size = { \
.width = (_w), \
.height = (_h) \
} \
}

Definition at line 80 of file gtk.h.

◆ Z_GRAPHENE_SIZE_INIT

#define Z_GRAPHENE_SIZE_INIT ( _w,
_h )
Value:
{ .width = static_cast<float> (_w), .height = static_cast<float> (_h) }

Definition at line 91 of file gtk.h.

◆ z_gtk_assistant_set_current_page_complete

#define z_gtk_assistant_set_current_page_complete ( assistant,
complete )
Value:
gtk_assistant_set_page_complete ( \
GTK_ASSISTANT (assistant), \
gtk_assistant_get_nth_page ( \
GTK_ASSISTANT (assistant), \
gtk_assistant_get_current_page (GTK_ASSISTANT (assistant))), \
complete);

Definition at line 60 of file gtk.h.

◆ z_gtk_create_menu_item

#define z_gtk_create_menu_item ( lbl_name,
icn_name,
action_name )
Value:
z_gtk_create_menu_item_full (lbl_name, icn_name, action_name)
GMenuItem * z_gtk_create_menu_item_full(const gchar *label_name, const gchar *icon_name, const char *detailed_action)
Creates a menu item.

Definition at line 222 of file gtk.h.

◆ z_return_if_fail_cmp

#define z_return_if_fail_cmp ( a,
comparator,
b )
Value:
z_return_val_if_fail_cmp (a, comparator, b, )

Definition at line 23 of file debug.h.

◆ z_return_val_if_fail_cmp

#define z_return_val_if_fail_cmp ( a,
comparator,
b,
val )
Value:
if (!((a) comparator (b))) [[unlikely]] \
{ \
z_error ( \
"Assertion failed: `{}` ({}) {} `{}` ({})", #a, (a), #comparator, #b, \
(b)); \
return val; \
}

Definition at line 14 of file debug.h.

◆ z_warn_if_fail_cmp

#define z_warn_if_fail_cmp ( a,
comparator,
b )
Value:
if (!((a) comparator (b))) [[unlikely]] \
{ \
z_warning ( \
"Assertion failed: `{}` ({}) {} `{}` ({})", #a, (a), #comparator, #b, \
(b)); \
}

Definition at line 26 of file debug.h.

◆ ZRYTHM_IS_QT_THREAD

#define ZRYTHM_IS_QT_THREAD   (QThread::currentThread () == qApp->thread ())

Definition at line 236 of file types.h.

Typedef Documentation

◆ audio_sample_type_t

using audio_sample_type_t = float

The sample type.

Definition at line 67 of file types.h.

◆ basic_enum_base_type_t

using basic_enum_base_type_t = uint8_t

Definition at line 328 of file types.h.

◆ bpm_t

using bpm_t = float

The BPM type.

Definition at line 70 of file types.h.

◆ channels_t

using channels_t = uint_fast8_t

Number of channels.

Definition at line 64 of file types.h.

◆ Color

using Color = zrythm::utils::Color

Definition at line 58 of file ui.h.

◆ curviness_t

using curviness_t = double

Definition at line 72 of file types.h.

◆ GenericBoolGetter

using GenericBoolGetter = std::function<bool ()>

Definition at line 114 of file types.h.

◆ GenericCallback

using GenericCallback = std::function<void ()>

Generic callback.

Definition at line 112 of file types.h.

◆ GenericFloatGetter

using GenericFloatGetter = std::function<float ()>

Getter prototype for float values.

Definition at line 92 of file types.h.

◆ GenericFloatSetter

using GenericFloatSetter = std::function<void (float)>

Setter prototype for float values.

Definition at line 97 of file types.h.

◆ GenericStringGetter

using GenericStringGetter = std::function<std::string ()>

Getter prototype for strings.

Definition at line 102 of file types.h.

◆ GenericStringSetter

using GenericStringSetter = std::function<void (const std::string &)>

Setter prototype for float values.

Definition at line 107 of file types.h.

◆ midi_byte_t

using midi_byte_t = uint8_t

MIDI byte.

Definition at line 55 of file types.h.

◆ midi_time_t

using midi_time_t = uint32_t

MIDI time in global frames.

Definition at line 61 of file types.h.

◆ nframes_t

using nframes_t = uint32_t

Frame count.

Definition at line 58 of file types.h.

◆ PangoLayoutUniquePtr

using PangoLayoutUniquePtr = std::unique_ptr<PangoLayout, PangoLayoutDeleter>

Definition at line 33 of file pango.h.

◆ ProcessId

using ProcessId = qint64

GPid equivalent.

Definition at line 87 of file types.h.

◆ RtDuration

using RtDuration = int64_t

Definition at line 52 of file types.h.

◆ RtTimePoint

using RtTimePoint = int64_t

Definition at line 51 of file types.h.

◆ signed_frame_t

using signed_frame_t = int_fast64_t

Signed type for frame index.

Definition at line 75 of file types.h.

◆ signed_ms_t

Signed millisecond index.

Definition at line 81 of file types.h.

◆ signed_sec_t

Signed second index.

Definition at line 84 of file types.h.

◆ SteadyClock

using SteadyClock = std::chrono::steady_clock

Definition at line 230 of file types.h.

◆ SteadyDuration

using SteadyDuration = SteadyClock::duration

Definition at line 232 of file types.h.

◆ SteadyTimePoint

using SteadyTimePoint = SteadyClock::time_point

Definition at line 231 of file types.h.

◆ unsigned_frame_t

using unsigned_frame_t = uint_fast64_t

Unsigned type for frame index.

Definition at line 78 of file types.h.

Enumeration Type Documentation

◆ AudioValueFormat

enum class AudioValueFormat
strong
Enumerator
Amplitude 

0 to 2, amplitude.

DBFS 

dbFS.

Fader 

0 to 1, suitable for drawing.

Definition at line 116 of file types.h.

◆ BeatUnit

enum class BeatUnit
strong

Beat unit.

Definition at line 180 of file types.h.

◆ CacheType

enum class CacheType
strong

Definition at line 214 of file types.h.

◆ FileType

enum class FileType
strong

File type.

Enumerator
ParentDirectory 

Special entry ".." for the parent dir.

Definition at line 22 of file file_descriptor.h.

◆ TimeFormat

enum class TimeFormat : std::uint8_t
strong
Enumerator
Musical 

Musical time (ticks).

Absolute 

Absolute time (seconds).

Note
Not samples so that sample rate changes don't require repositioning.

Definition at line 166 of file types.h.

◆ UiCursorState

enum class UiCursorState
strong

Various cursor states to be shared.

Definition at line 103 of file ui.h.

◆ UiOverlayAction

enum class UiOverlayAction
strong

Various overlay actions to be shared.

Enumerator
AUTOFILLING 

Auto-filling in edit mode.

Note
This is also used for the pencil tool in velocity and automation editors.
ERASING 

Erasing.

STARTING_MOVING 

To be set in drag_start.

STARTING_SELECTION 

To be set in drag_start.

Useful to check if nothing was clicked.

STARTING_DELETE_SELECTION 

Like selecting but it auto deletes whatever touches the selection.

Definition at line 116 of file ui.h.

◆ ZGtkResize

enum ZGtkResize

Definition at line 107 of file gtk.h.

◆ ZGtkShrink

enum ZGtkShrink

Definition at line 113 of file gtk.h.

Function Documentation

◆ _z_cairo_get_text_extents_for_widget()

void _z_cairo_get_text_extents_for_widget ( GtkWidget * widget,
PangoLayout * layout,
const char * text,
int * width,
int * height )

Gets the width of the given text in pixels for the given widget.

Parameters
widgetThe widget to derive a PangoLayout from.
textThe text to draw.
widthThe width to fill in.
heightThe height to fill in.

◆ DEFINE_ENUM_FORMATTER()

DEFINE_ENUM_FORMATTER ( UiOverlayAction ,
UiOverlayAction ,
"NONE" ,
"RESIZING_R" ,
"MOVING" ,
"RESIZING_L" ,
"RESIZING_L_LOOP" ,
"RESIZING_L_FADE" ,
"RESIZING_R" ,
"RESIZING_R_LOOP" ,
"RESIZING_R_FADE" ,
"RESIZING_UP" ,
"RESIZING_UP_FADE_IN" ,
"RESIZING_UP_FADE_OUT" ,
"STRETCHING_L" ,
"STRETCHING_R" ,
"STARTING_AUDITIONING" ,
"AUDITIONING" ,
"AUTOFILLING" ,
"ERASING" ,
"STARTING_ERASING" ,
"STARTING_MOVING" ,
"STARTING_MOVING_COPY" ,
"STARTING_MOVING_LINK" ,
"MOVING" ,
"MOVING_COPY" ,
"MOVING_LINK" ,
"STARTING_CHANGING_CURVE" ,
"CHANGING_CURVE" ,
"STARTING_SELECTION" ,
"SELECTING" ,
"STARTING_DELETE_SELECTION" ,
"DELETE_SELECTING" ,
"STARTING_RAMP" ,
"RAMPING" ,
"CUTTING" ,
"RENAMING" ,
"STARTING_PANNING" ,
"PANNING" ,
"--INVALID--"  )

Dragging modes for widgets that have click&drag.

Value is wherever the cursor is.

Value is changed based on the offset.

Value is changed based on the offset, times a multiplier.

Definition at line 184 of file ui.h.

◆ env_get_int()

int env_get_int ( const char * key,
int def )

Returns an int for the given environment variable if it exists and is valid, otherwise returns the default int.

Parameters
defDefault value to return if not found.

◆ format_qstr()

template<typename... Args>
QString format_qstr ( const QString & format,
Args &&... args )

Definition at line 123 of file format.h.

◆ format_str()

template<typename... Args>
std::string format_str ( std::string_view format,
Args &&... args )

Used when fmt::format can't be used (when the format string is not a literal).

Definition at line 116 of file format.h.

◆ iterate_tuple()

template<typename Tuple, typename Callable>
void iterate_tuple ( Callable c,
Tuple && t )

Definition at line 321 of file types.h.

◆ resources_get_gl_shader_data()

GBytes * resources_get_gl_shader_data ( const char * path)

Returns the bytes of the specified OpenGL shader in RESOURCES_GL_SHADERS_PATH.

Caller must free the bytes with g_bytes_unref ().

Returns
bytes or NULL if error.

◆ resources_set_class_template()

void resources_set_class_template ( GtkWidgetClass * klass,
const char * filename )

Sets class template from resource.

Filename is part after .../ui/

◆ typename_to_string()

template<typename T>
std::string typename_to_string ( )

Definition at line 240 of file types.h.

◆ ui_get_normalized_draggable_value()

double ui_get_normalized_draggable_value ( double size,
double cur_val,
double start_px,
double cur_px,
double last_px,
double multiplier,
UiDragMode mode )

Gets a draggable value as a normalized value between 0 and 1.

Parameters
sizeWidget size (either width or height).
start_pxPx at start of drag.
cur_pxCurrent px.
last_pxPx during last call.

◆ z_gdk_clipboard_get_text()

char * z_gdk_clipboard_get_text ( GdkClipboard * clipboard)

Returns the text on the clipboard, or NULL if there is nothing or the content is not text.

Warning
Only works for clipboard entries from the current process.

◆ z_gdk_pixbuf_new_from_icon_name()

GdkPixbuf * z_gdk_pixbuf_new_from_icon_name ( const char * icon_name,
int width,
int height,
int scale,
GError ** error )

Creates a new pixbuf for the given icon scaled at the given width/height.

Pass -1 for either width/height to maintain aspect ratio.

◆ z_gdk_texture_new_from_icon_name()

GdkTexture * z_gdk_texture_new_from_icon_name ( const char * icon_name,
int width,
int height,
int scale )

Creates a new texture for the given icon scaled at the given width/height.

Pass -1 for either width/height to maintain aspect ratio.

◆ z_gtk_actionable_set_action_from_setting()

void z_gtk_actionable_set_action_from_setting ( GtkActionable * actionable,
GSettings * settings,
const char * key )

Sets the action target of the given GtkActionable to be binded to the given setting.

Mainly used for binding GSettings keys to toggle buttons.

◆ z_gtk_dialog_run()

int z_gtk_dialog_run ( GtkDialog * dialog,
bool destroy_on_close )

Mimics the blocking behavior.

Returns
The response ID.
Deprecated
Use async dialogs instead.

◆ z_gtk_generate_screenshot_image()

void z_gtk_generate_screenshot_image ( GtkWidget * widget,
const char * type,
char ** option_keys,
char ** option_values,
char ** ret_dir,
char ** ret_path,
bool accept_fallback )

Generates a screenshot image for the given widget.

See gdk_pixbuf_savev() for the parameters.

Parameters
accept_fallbackWhether to accept a fallback "no image" pixbuf.
[out]ret_dirPlaceholder for directory to be deleted after using the screenshot.
[out]ret_pathPlaceholder for absolute path to the screenshot.

◆ z_gtk_get_tooltip_for_action()

char * z_gtk_get_tooltip_for_action ( const char * detailed_action,
const char * tooltip )

Gets the tooltip for the given action on the given widget.

If the action is valid, an orange text showing the accelerator will be added to the tooltip.

Returns
A new string that must be free'd with g_free().

◆ z_gtk_list_store_splice()

void z_gtk_list_store_splice ( GListStore * store,
auto & items )

Removes all items and re-populates the list store.

Definition at line 158 of file gtk.h.

◆ z_gtk_setup_foldable_notebook()

void z_gtk_setup_foldable_notebook ( GtkNotebook * notebook)

Makes the given notebook foldable.

The pages of the notebook must all be wrapped in GtkBox's.

◆ z_gtk_show_context_menu_from_g_menu()

void z_gtk_show_context_menu_from_g_menu ( GtkPopoverMenu * popover_menu,
double x,
double y,
GMenu * menu )

The popover must already exist as a children of its intended widget (or a common parent).

This function will set the new menu and show it.

◆ z_gtk_simple_action_shortcut_func()

gboolean z_gtk_simple_action_shortcut_func ( GtkWidget * widget,
GVariant * args,
gpointer user_data )

A shortcut callback to use for simple actions.

A single parameter must be passed: action name under "app.".

◆ z_gtk_text_buffer_get_full_text()

char * z_gtk_text_buffer_get_full_text ( GtkTextBuffer * buffer)

Returns the full text contained in the text buffer.

Must be free'd using g_free().

◆ z_gtk_widget_set_tooltip_for_action()

void z_gtk_widget_set_tooltip_for_action ( GtkWidget * widget,
const char * detailed_action,
const char * tooltip )

Sets the tooltip for the given action on the given widget.

If the action is valid, an orange text showing the accelerator will be added to the tooltip.

Variable Documentation

◆ ALL_CACHE_TYPES

CacheType ALL_CACHE_TYPES
constexpr
Initial value:
=
CacheType::PlaybackSnapshots | CacheType::AutomationLaneRecordModes
| CacheType::AutomationLanePorts

Definition at line 225 of file types.h.

◆ UI_COLOR_BRIGHT_GREEN

const char* UI_COLOR_BRIGHT_GREEN = "#1DD169"
constexpr

Definition at line 35 of file ui.h.

◆ UI_COLOR_BRIGHT_ORANGE

const char* UI_COLOR_BRIGHT_ORANGE = "#F79616"
constexpr

Definition at line 39 of file ui.h.

◆ UI_COLOR_BRIGHT_TEXT

const char* UI_COLOR_BRIGHT_TEXT = "#cdcdcd"
constexpr

Definition at line 28 of file ui.h.

◆ UI_COLOR_BUTTON_HOVER

const char* UI_COLOR_BUTTON_HOVER = "#444444"
constexpr

Definition at line 32 of file ui.h.

◆ UI_COLOR_BUTTON_NORMAL

const char* UI_COLOR_BUTTON_NORMAL = "#343434"
constexpr

Definition at line 31 of file ui.h.

◆ UI_COLOR_DARK_ORANGE

const char* UI_COLOR_DARK_ORANGE = "#D68A0C"
constexpr

Definition at line 37 of file ui.h.

◆ UI_COLOR_DARK_TEXT

const char* UI_COLOR_DARK_TEXT = "#323232"
constexpr

Definition at line 27 of file ui.h.

◆ UI_COLOR_DARKISH_GREEN

const char* UI_COLOR_DARKISH_GREEN = "#19664c"
constexpr

Definition at line 36 of file ui.h.

◆ UI_COLOR_FADER_FILL_END

const char* UI_COLOR_FADER_FILL_END = UI_COLOR_Z_YELLOW
constexpr

Definition at line 55 of file ui.h.

◆ UI_COLOR_HIGHLIGHT_BASS_BG

const char* UI_COLOR_HIGHLIGHT_BASS_BG = UI_COLOR_LIGHT_BLUEISH
constexpr

Definition at line 49 of file ui.h.

◆ UI_COLOR_HIGHLIGHT_BASS_FG

const char* UI_COLOR_HIGHLIGHT_BASS_FG = "white"
constexpr

Definition at line 53 of file ui.h.

◆ UI_COLOR_HIGHLIGHT_BOTH_BG

const char* UI_COLOR_HIGHLIGHT_BOTH_BG = "#FF22FF"
constexpr

Definition at line 50 of file ui.h.

◆ UI_COLOR_HIGHLIGHT_BOTH_FG

const char* UI_COLOR_HIGHLIGHT_BOTH_FG = "white"
constexpr

Definition at line 54 of file ui.h.

◆ UI_COLOR_HIGHLIGHT_CHORD_BG

const char* UI_COLOR_HIGHLIGHT_CHORD_BG = "#BB22BB"
constexpr

Definition at line 48 of file ui.h.

◆ UI_COLOR_HIGHLIGHT_CHORD_FG

const char* UI_COLOR_HIGHLIGHT_CHORD_FG = UI_COLOR_HIGHLIGHT_SCALE_FG
constexpr

Definition at line 52 of file ui.h.

◆ UI_COLOR_HIGHLIGHT_SCALE_BG

const char* UI_COLOR_HIGHLIGHT_SCALE_BG = "#662266"
constexpr

Definition at line 47 of file ui.h.

◆ UI_COLOR_HIGHLIGHT_SCALE_FG

const char* UI_COLOR_HIGHLIGHT_SCALE_FG = "#F79616"
constexpr

Definition at line 51 of file ui.h.

◆ UI_COLOR_LIGHT_BLUEISH

const char* UI_COLOR_LIGHT_BLUEISH = "#1aa3ffcc"
constexpr

Definition at line 42 of file ui.h.

◆ UI_COLOR_MATCHA

const char* UI_COLOR_MATCHA = "#2eb398"
constexpr

Definition at line 41 of file ui.h.

◆ UI_COLOR_POSTFADER_SEND

const char* UI_COLOR_POSTFADER_SEND = "#901ed2"
constexpr

Definition at line 44 of file ui.h.

◆ UI_COLOR_PREFADER_SEND

const char* UI_COLOR_PREFADER_SEND = "#D21E6D"
constexpr

Definition at line 43 of file ui.h.

◆ UI_COLOR_PURPLE

const char* UI_COLOR_PURPLE = "#9D3955"
constexpr

Definition at line 30 of file ui.h.

◆ UI_COLOR_RECORD_ACTIVE

const char* UI_COLOR_RECORD_ACTIVE = "#FF2400"
constexpr

Definition at line 34 of file ui.h.

◆ UI_COLOR_RECORD_CHECKED

const char* UI_COLOR_RECORD_CHECKED = "#ED2939"
constexpr

Definition at line 33 of file ui.h.

◆ UI_COLOR_SOLO_ACTIVE

const char* UI_COLOR_SOLO_ACTIVE = UI_COLOR_MATCHA
constexpr

Definition at line 45 of file ui.h.

◆ UI_COLOR_SOLO_CHECKED

const char* UI_COLOR_SOLO_CHECKED = UI_COLOR_DARKISH_GREEN
constexpr

Definition at line 46 of file ui.h.

◆ UI_COLOR_YELLOW

const char* UI_COLOR_YELLOW = "#F9CA1B"
constexpr

Definition at line 29 of file ui.h.

◆ UI_COLOR_Z_PURPLE

const char* UI_COLOR_Z_PURPLE = "#9D3955"
constexpr

Definition at line 40 of file ui.h.

◆ UI_COLOR_Z_YELLOW

const char* UI_COLOR_Z_YELLOW = "#F9CA1B"
constexpr

Definition at line 38 of file ui.h.

◆ UI_DELETE_ICON_NAME

const char* UI_DELETE_ICON_NAME = "z-edit-delete"
constexpr

Definition at line 56 of file ui.h.