Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
region.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2018-2019, 2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __GUI_WIDGETS_REGION_H__
11#define __GUI_WIDGETS_REGION_H__
12
13#include "common/dsp/region.h"
14#include "common/utils/ui.h"
16#include "gui/backend/gtk_widgets/gtk_wrapper.h"
17
23
24#define REGION_NAME_FONT_NO_SIZE "Bold"
25#ifdef _WIN32
26# define REGION_NAME_FONT REGION_NAME_FONT_NO_SIZE " 7"
27#else
28# define REGION_NAME_FONT REGION_NAME_FONT_NO_SIZE " 8"
29#endif
30#define REGION_NAME_PADDING_R 5
31#define REGION_NAME_BOX_PADDING 2
32#define REGION_NAME_BOX_CURVINESS 4.0
33
37void
38region_get_lane_full_rect (const Region * self, GdkRectangle * rect);
39
46ATTR_HOT void
47region_draw (Region * self, GtkSnapshot * snapshot, GdkRectangle * rect);
48
49#endif
void region_get_lane_full_rect(const Region *self, GdkRectangle *rect)
Returns the lane rectangle for the region.
ATTR_HOT void region_draw(Region *self, GtkSnapshot *snapshot, GdkRectangle *rect)
Draws the Region in the given cairo context in relative coordinates.
ArrangerObject related functions for the GUI.