Zrythm v2.0.0-DEV
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 "common/dsp/arranger_object.h"
#include "common/utils/ui.h"
#include "gui/backend/gtk_widgets/gtk_wrapper.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.

Functions

bool arranger_object_is_fade (const 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).
ATTR_NONNULL bool arranger_object_is_resize_l (const ArrangerObject *self, const int x)
 Returns if the current position is for resizing L.
ATTR_NONNULL bool arranger_object_is_resize_r (const ArrangerObject *self, const int x)
 Returns if the current position is for resizing R.
bool arranger_object_is_resize_up (const 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 (const ArrangerObject *self, const int y, bool ctrl_pressed)
 Returns if the current position is for resizing loop.
ATTR_NONNULL bool arranger_object_is_rename (const 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 (const 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, Region &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.
bool arranger_object_should_orig_be_visible (const ArrangerObject &self, const 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 (const ArrangerObject *self, const ArrangerWidget *arranger)
 Whether the object is currently hovered.
bool arranger_object_is_hovered_or_start_object (const ArrangerObject *self, const 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.