a highly automated and intuitive digital audio workstation
No Matches
zrythm_app.h File Reference

The Zrythm GTK application. More...

#include "zrythm-config.h"
#include <memory>
#include "utils/types.h"
#include <adwaita.h>
#include "gtk_wrapper.h"
#include <zix/sem.h>
Include dependency graph for zrythm_app.h:

Go to the source code of this file.

Data Structures

struct  ZrythmAppUiMessage
 UI message for the message queue. More...
struct  ZrythmApp
 The global struct. More...


#define ZRYTHM_APP_TYPE   (zrythm_app_get_type ())
#define ZRYTHM_APP_IS_GTK_THREAD    (zrythm_app && zrythm_app->gtk_thread == g_thread_self ())


ZrythmAppUiMessagezrythm_app_ui_message_new (GtkMessageType type, const char *msg)
void zrythm_app_ui_message_free (ZrythmAppUiMessage *self)
ZrythmApp * zrythm_app_new (int argc, const char **argv)
 Creates the Zrythm GApplication.
void zrythm_app_set_font_scale (ZrythmApp *self, double font_scale)
void zrythm_app_check_for_updates (ZrythmApp *self)
 Handles the logic for checking for updates on startup.
int zrythm_app_prompt_for_project_func (ZrythmApp *self)
 Unlike the init thread, this will run in the main GTK thread.
ZrythmApp ** zrythm_app_get (void)
 Returns a pointer to the global zrythm_app.
bool zrythm_app_check_and_show_trial_limit_error (ZrythmApp *self)
 Shows the trial limitation error message.
void * zrythm_app_init_thread (ZrythmApp *self)
void zrythm_exit_response_callback (AdwDialog *dialog, gpointer user_data)
 To be used to exit Zrythm using the "response" signal on a message dialog.


ZrythmApp * zrythm_app
 Global variable, should be available to all files.

Detailed Description

The Zrythm GTK application.

Definition in file zrythm_app.h.

Macro Definition Documentation


#define ZRYTHM_APP_IS_GTK_THREAD    (zrythm_app && zrythm_app->gtk_thread == g_thread_self ())

Definition at line 27 of file zrythm_app.h.


#define ZRYTHM_APP_TYPE   (zrythm_app_get_type ())

Definition at line 24 of file zrythm_app.h.