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_wrapper.h"
20
27#define REGION_NAME_FONT_NO_SIZE "Bold"
28#ifdef _WIN32
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 (Region * self, GdkRectangle * rect);
42
49HOT void
50region_draw (Region * self, GtkSnapshot * snapshot, GdkRectangle * rect);
51
52#endif
A region in the timeline.
void region_get_lane_full_rect(Region *self, GdkRectangle *rect)
Returns the lane rectangle for the region.
HOT void region_draw(Region *self, GtkSnapshot *snapshot, GdkRectangle *rect)
Draws the Region 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:72
User Interface utils.
ArrangerObject related functions for the GUI.