Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
arranger_object.h File Reference

ArrangerObject related functions for the GUI. More...

#include "gui/backend/arranger_object.h"
#include "utils/ui.h"
#include <gtk/gtk.h>
Include dependency graph for arranger_object.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ARRANGER_OBJECT_FADE_POINT_WIDTH   12
 
#define ARRANGER_OBJECT_FADE_POINT_HALFWIDTH   6
 
#define arranger_object_is_fade_in(self, x, y, only_handle, only_outer)
 
#define arranger_object_is_fade_out(self, x, y, only_handle, only_outer)
 

Functions

bool arranger_object_is_fade (ArrangerObject *self, bool in, const int x, int y, bool only_handle, bool only_outer, bool check_lane)
 Returns if the current position is for moving the fade in/out mark (timeline only).
 
NONNULL PURE bool arranger_object_is_resize_l (ArrangerObject *self, const int x)
 Returns if the current position is for resizing L.
 
NONNULL bool arranger_object_is_resize_r (ArrangerObject *self, const int x)
 Returns if the current position is for resizing R.
 
bool arranger_object_is_resize_up (ArrangerObject *self, const int x, const int y)
 Returns if the current position is for resizing up (eg, Velocity).
 
bool arranger_object_is_resize_loop (ArrangerObject *self, const int y, bool ctrl_pressed)
 Returns if the current position is for resizing loop.
 
NONNULL bool arranger_object_is_rename (ArrangerObject *self, const int x, const int y)
 Returns if the current position is for renaming the object.
 
bool arranger_object_should_show_cut_lines (ArrangerObject *self, bool alt_pressed)
 Returns if arranger_object widgets should show cut lines.
 
int arranger_object_get_full_rect_x_for_region_child (ArrangerObject *self, ZRegion *region, GdkRectangle *full_rect)
 Gets the full rectangle for a linked object.
 
void arranger_object_set_full_rectangle (ArrangerObject *self, ArrangerWidget *arranger)
 
int arranger_object_get_draw_rectangle (ArrangerObject *self, GdkRectangle *parent_rect, GdkRectangle *full_rect, GdkRectangle *draw_rect)
 Gets the draw rectangle based on the given full rectangle of the arranger object.
 
void arranger_object_draw (ArrangerObject *self, ArrangerWidget *arranger, GtkSnapshot *snapshot, GdkRectangle *rect)
 Draws the given object.
 
OPTIMIZE_O3 bool arranger_object_should_orig_be_visible (ArrangerObject *self, ArrangerWidget *arranger)
 Returns if the cached object should be visible, ie, while copy- moving (ctrl+drag) we want to show both the object at its original position and the current object.
 
bool arranger_object_is_hovered (ArrangerObject *self, ArrangerWidget *arranger)
 Whether the object is currently hovered.
 
bool arranger_object_is_hovered_or_start_object (ArrangerObject *self, ArrangerWidget *arranger)
 Whether hovered or the start object of the current action in the arranger.
 

Detailed Description

ArrangerObject related functions for the GUI.

Definition in file arranger_object.h.