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

The Zrythm GTK application. More...

#include "utils/types.h"
#include <adwaita.h>
#include <gtk/gtk.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...
 

Macros

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

Functions

 TYPEDEF_STRUCT_UNDERSCORED (MainWindowWidget)
 
 TYPEDEF_STRUCT_UNDERSCORED (BugReportDialogWidget)
 
 TYPEDEF_STRUCT_UNDERSCORED (GreeterWidget)
 
 TYPEDEF_STRUCT (Zrythm)
 
 TYPEDEF_STRUCT (UiCaches)
 
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.
 

Variables

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

◆ ZRYTHM_APP_IS_GTK_THREAD

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

Definition at line 23 of file zrythm_app.h.

◆ ZRYTHM_APP_TYPE

#define ZRYTHM_APP_TYPE   (zrythm_app_get_type ())

Definition at line 20 of file zrythm_app.h.