Zrythm
a highly automated and intuitive digital audio workstation
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
e
f
g
i
m
p
r
t
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
Typedefs
Enumerations
a
b
c
e
f
g
i
k
m
n
p
r
s
t
u
z
Enumerator
a
u
z
Macros
_
a
b
c
d
e
f
h
i
k
m
p
r
s
t
u
v
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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