Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
cpu.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __GUI_WIDGETS_CPU_H__
11#define __GUI_WIDGETS_CPU_H__
12
13#include <gtk/gtk.h>
14
21#define MW_CPU (MW_BOT_BAR->cpu_load)
22
23#define CPU_WIDGET_TYPE (cpu_widget_get_type ())
24G_DECLARE_FINAL_TYPE (CpuWidget, cpu_widget, Z, CPU_WIDGET, GtkWidget)
25
26typedef struct _CpuWidget
27{
28 GtkWidget parent_instance;
29
31 int cpu;
32
34 int dsp;
35
38 guint dsp_source_id;
39
40 GdkTexture * cpu_texture;
41 GdkTexture * dsp_texture;
42} CpuWidget;
43
48#endif
guint cpu_source_id
Source func IDs.
Definition cpu.h:37
int cpu
CPU load (0-100).
Definition cpu.h:31
int dsp
DSP load (0-100).
Definition cpu.h:34