Zrythm v2.0.0-DEV
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
12
13#ifndef __GUI_WIDGETS_CUSTOM_IMAGE_H__
14#define __GUI_WIDGETS_CUSTOM_IMAGE_H__
15
16#include "common/utils/ui.h"
17#include "gui/backend/gtk_widgets/gtk_wrapper.h"
18
19#define RW_CUSTOM_IMAGE_MARKER_SIZE 8
20#define RW_CUE_MARKER_HEIGHT 12
21#define RW_CUE_MARKER_WIDTH 7
22#define RW_PLAYHEAD_TRIANGLE_WIDTH 12
23#define RW_PLAYHEAD_TRIANGLE_HEIGHT 8
24#define RW_RANGE_HEIGHT_DIVISOR 4
25
29#define RW_PX_TO_HIDE_BEATS 40.0
30
31#define CUSTOM_IMAGE_WIDGET_TYPE (custom_image_widget_get_type ())
32G_DECLARE_FINAL_TYPE (
33 CustomImageWidget,
34 custom_image_widget,
35 Z,
36 CUSTOM_IMAGE_WIDGET,
37 GtkWidget)
38
39
44
45typedef struct _CustomImageWidget
46{
47 GtkWidget parent_instance;
48
49 GdkTexture * texture;
50
51 graphene_rect_t bounds;
52} CustomImageWidget;
53
54void
55custom_image_widget_set_texture (CustomImageWidget * self, GdkTexture * texture);
56
60
61#endif