Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
popover_menu_bin.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2021-2022 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __GUI_WIDGETS_POPOVER_MENU_BIN_H__
14#define __GUI_WIDGETS_POPOVER_MENU_BIN_H__
15
16#include "gtk_wrapper.h"
17
18#define POPOVER_MENU_BIN_WIDGET_TYPE (popover_menu_bin_widget_get_type ())
19G_DECLARE_FINAL_TYPE (
20 PopoverMenuBinWidget,
21 popover_menu_bin_widget,
22 Z,
23 POPOVER_MENU_BIN_WIDGET,
24 GtkWidget)
25
26
36typedef struct _PopoverMenuBinWidget
37{
38 GtkWidget parent_instance;
39
40 GtkWidget * child;
41
42 GMenuModel * menu_model;
43
45 GtkPopoverMenu * popover_menu;
46} PopoverMenuBinWidget;
47
48GMenuModel *
49popover_menu_bin_widget_get_menu_model (PopoverMenuBinWidget * self);
50
51void
52popover_menu_bin_widget_set_menu_model (
53 PopoverMenuBinWidget * self,
54 GMenuModel * model);
55
56void
57popover_menu_bin_widget_set_child (
58 PopoverMenuBinWidget * self,
59 GtkWidget * child);
60
61GtkWidget *
62popover_menu_bin_widget_get_child (PopoverMenuBinWidget * self);
63
64PopoverMenuBinWidget *
65popover_menu_bin_widget_new (void);
66
71#endif