Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zoom_buttons.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2022-2023 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
8#ifndef __GUI_WIDGETS_ZOOM_BUTTONS_H__
9#define __GUI_WIDGETS_ZOOM_BUTTONS_H__
10
11#include "gtk_wrapper.h"
12
13#define ZOOM_BUTTONS_WIDGET_TYPE (zoom_buttons_widget_get_type ())
15 ZoomButtonsWidget,
16 zoom_buttons_widget,
17 Z,
18 ZOOM_BUTTONS_WIDGET,
19 GtkBox)
20
21
24typedef struct _ZoomButtonsWidget
25{
26 GtkBox parent_instance;
27 GtkButton * zoom_in;
28 GtkButton * zoom_out;
29 GtkButton * original_size;
30 GtkButton * best_fit;
31} ZoomButtonsWidget;
32
37void
39 ZoomButtonsWidget * self,
40 bool timeline,
41 GtkOrientation orientation);
42
43#endif
void zoom_buttons_widget_setup(ZoomButtonsWidget *self, bool timeline, GtkOrientation orientation)
G_DECLARE_FINAL_TYPE(ZoomButtonsWidget, zoom_buttons_widget, Z, ZOOM_BUTTONS_WIDGET, GtkBox) typedef struct _ZoomButtonsWidget
Zoom buttons for toolbars.