Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
region.h
Go to the documentation of this file.
1// clang-format off
2// SPDX-FileCopyrightText: © 2018-2019, 2022 Alexandros Theodotou <alex@zrythm.org>
3// SPDX-License-Identifier: LicenseRef-ZrythmLicense
4// clang-format on
5
12#ifndef __GUI_WIDGETS_REGION_H__
13#define __GUI_WIDGETS_REGION_H__
14
15#include "dsp/region.h"
17#include "utils/ui.h"
18
19#include <gtk/gtk.h>
20
27#define REGION_NAME_FONT_NO_SIZE "Bold"
28#ifdef _WOE32
29# define REGION_NAME_FONT REGION_NAME_FONT_NO_SIZE " 7"
30#else
31# define REGION_NAME_FONT REGION_NAME_FONT_NO_SIZE " 8"
32#endif
33#define REGION_NAME_PADDING_R 5
34#define REGION_NAME_BOX_PADDING 2
35#define REGION_NAME_BOX_CURVINESS 4.0
36
40void
41region_get_lane_full_rect (ZRegion * self, GdkRectangle * rect);
42
49HOT void
50region_draw (ZRegion * self, GtkSnapshot * snapshot, GdkRectangle * rect);
51
52#endif
A region in the timeline.
void region_get_lane_full_rect(ZRegion *self, GdkRectangle *rect)
Returns the lane rectangle for the region.
HOT void region_draw(ZRegion *self, GtkSnapshot *snapshot, GdkRectangle *rect)
Draws the ZRegion in the given cairo context in relative coordinates.
A region (clip) is an object on the timeline that contains either MidiNote's or AudioClip's.
Definition region.h:77
User Interface utils.
ArrangerObject related functions for the GUI.