Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
string_entry_dialog.h
Go to the documentation of this file.
1// clang-format off
2// SPDX-FileCopyrightText: © 2019-2020, 2023 Alexandros Theodotou <alex@zrythm.org>
3// SPDX-License-Identifier: LicenseRef-ZrythmLicense
4// clang-format on
5
12#ifndef __GUI_WIDGETS_STRING_ENTRY_DIALOG_H__
13#define __GUI_WIDGETS_STRING_ENTRY_DIALOG_H__
14
15#include "utils/types.h"
16
17#include <adwaita.h>
18
19#define STRING_ENTRY_DIALOG_WIDGET_TYPE (string_entry_dialog_widget_get_type ())
20G_DECLARE_FINAL_TYPE (
22 string_entry_dialog_widget,
23 Z,
24 STRING_ENTRY_DIALOG_WIDGET,
25 AdwMessageDialog)
26
27typedef struct _MarkerWidget MarkerWidget;
28typedef struct Marker Marker;
29
39typedef struct _StringEntryDialogWidget
40{
41 AdwMessageDialog parent_instance;
42
43 GtkEntry * entry;
44 GtkButton * ok;
45
48 void * obj;
49
51
57 const char * label,
58 void * obj,
60 GenericStringSetter setter);
61
66#endif
void(* GenericStringSetter)(void *object, const char *val)
Setter prototype for float values.
Definition types.h:88
const char *(* GenericStringGetter)(void *object)
Getter prototype for strings.
Definition types.h:83
StringEntryDialogWidget * string_entry_dialog_widget_new(const char *label, void *obj, GenericStringGetter getter, GenericStringSetter setter)
Creates the dialog.
Marker for the MarkerTrack.
Definition marker.h:55
A dialog to edit a string.
Custom types.