Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
snap_grid.h
1// SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#ifndef __GUI_WIDGETS_SNAP_GRID_H__
5#define __GUI_WIDGETS_SNAP_GRID_H__
6
7#include <adwaita.h>
8#include <gtk/gtk.h>
9
10#define SNAP_GRID_WIDGET_TYPE (snap_grid_widget_get_type ())
11G_DECLARE_FINAL_TYPE (
13 snap_grid_widget,
14 Z,
15 SNAP_GRID_WIDGET,
16 GtkWidget)
17
18typedef struct _SnapGridPopoverWidget SnapGridPopoverWidget;
19typedef struct SnapGrid SnapGrid;
20
21typedef struct _SnapGridWidget
22{
23 GtkWidget parent_instance;
24
25 GtkMenuButton * menu_btn;
26
27 AdwButtonContent * content;
28
30 SnapGridPopoverWidget * popover;
31
35
36void
37snap_grid_widget_setup (SnapGridWidget * self, SnapGrid * snap_grid);
38
39void
40snap_grid_widget_refresh (SnapGridWidget * self);
41
42#endif
SnapGrid * snap_grid
Associated snap grid options.
Definition snap_grid.h:33
SnapGridPopoverWidget * popover
Popover.
Definition snap_grid.h:30