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
9#include "gtk_wrapper.h"
10
11#define SNAP_GRID_WIDGET_TYPE (snap_grid_widget_get_type ())
12G_DECLARE_FINAL_TYPE (
14 snap_grid_widget,
15 Z,
16 SNAP_GRID_WIDGET,
17 GtkWidget)
18
19typedef struct _SnapGridPopoverWidget SnapGridPopoverWidget;
20typedef struct SnapGrid SnapGrid;
21
22typedef struct _SnapGridWidget
23{
24 GtkWidget parent_instance;
25
26 GtkMenuButton * menu_btn;
27
28 AdwButtonContent * content;
29
31 SnapGridPopoverWidget * popover;
32
36
37void
38snap_grid_widget_setup (SnapGridWidget * self, SnapGrid * snap_grid);
39
40void
41snap_grid_widget_refresh (SnapGridWidget * self);
42
43#endif
SnapGrid * snap_grid
Associated snap grid options.
Definition snap_grid.h:34
SnapGridPopoverWidget * popover
Popover.
Definition snap_grid.h:31