Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
custom_image.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: © 2021 Alexandros Theodotou <alex@zrythm.org>
3
*
4
* SPDX-License-Identifier: LicenseRef-ZrythmLicense
5
*/
6
13
#ifndef __GUI_WIDGETS_CUSTOM_IMAGE_H__
14
#define __GUI_WIDGETS_CUSTOM_IMAGE_H__
15
16
#include "
utils/ui.h
"
17
18
#include "gtk_wrapper.h"
19
20
#define RW_CUSTOM_IMAGE_MARKER_SIZE 8
21
#define RW_CUE_MARKER_HEIGHT 12
22
#define RW_CUE_MARKER_WIDTH 7
23
#define RW_PLAYHEAD_TRIANGLE_WIDTH 12
24
#define RW_PLAYHEAD_TRIANGLE_HEIGHT 8
25
#define RW_RANGE_HEIGHT_DIVISOR 4
26
30
#define RW_PX_TO_HIDE_BEATS 40.0
31
32
#define CUSTOM_IMAGE_WIDGET_TYPE (custom_image_widget_get_type ())
33
G_DECLARE_FINAL_TYPE (
34
CustomImageWidget,
35
custom_image_widget,
36
Z,
37
CUSTOM_IMAGE_WIDGET,
38
GtkWidget)
39
40
46
typedef
struct
_CustomImageWidget
47
{
48
GtkWidget parent_instance;
49
50
GdkTexture * texture;
51
52
graphene_rect_t bounds;
53
} CustomImageWidget;
54
55
void
56
custom_image_widget_set_texture (CustomImageWidget * self, GdkTexture * texture);
57
62
#endif
ui.h
User Interface utils.
gui
widgets
custom_image.h
Generated by
1.11.0