Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::gui::qquick::FadeOverlayCanvasItem Class Reference

QML-visible canvas item that renders a single fade overlay. More...

#include <src/gui/qquick/fade_overlay_canvas_item.h>

Inheritance diagram for zrythm::gui::qquick::FadeOverlayCanvasItem:
Collaboration diagram for zrythm::gui::qquick::FadeOverlayCanvasItem:

Public Types

enum  FadeType { FadeIn = 0 , FadeOut = 1 }

Signals

void regionChanged ()
void pxPerTickChanged ()
void fadeTypeChanged ()
void hoveredChanged ()
void overlayColorChanged ()
void curveColorChanged ()

Public Member Functions

 FadeOverlayCanvasItem (QQuickItem *parent=nullptr)
QCanvasPainterItemRenderer * createItemRenderer () const override
QObject * region () const
void setRegion (QObject *region)
qreal pxPerTick () const
void setPxPerTick (qreal px)
FadeType fadeType () const
void setFadeType (FadeType type)
bool hovered () const
void setHovered (bool hovered)
QColor overlayColor () const
void setOverlayColor (const QColor &color)
QColor curveColor () const
void setCurveColor (const QColor &color)
structure::arrangement::AudioRegionaudioRegion () const

Properties

QObject * region
qreal pxPerTick
FadeType fadeType
bool hovered
QColor overlayColor
QColor curveColor

Detailed Description

QML-visible canvas item that renders a single fade overlay.

Each instance handles one fade direction (FadeIn or FadeOut). The canvas should be sized to the fade area width only.

Definition at line 28 of file fade_overlay_canvas_item.h.

Member Enumeration Documentation

◆ FadeType

enum zrythm::gui::qquick::FadeOverlayCanvasItem::FadeType

Definition at line 41 of file fade_overlay_canvas_item.h.

Member Function Documentation

◆ audioRegion()

structure::arrangement::AudioRegion * zrythm::gui::qquick::FadeOverlayCanvasItem::audioRegion ( ) const
inline

Definition at line 65 of file fade_overlay_canvas_item.h.

◆ curveColor()

QColor zrythm::gui::qquick::FadeOverlayCanvasItem::curveColor ( ) const
inline

Definition at line 62 of file fade_overlay_canvas_item.h.

◆ fadeType()

FadeType zrythm::gui::qquick::FadeOverlayCanvasItem::fadeType ( ) const
inline

Definition at line 56 of file fade_overlay_canvas_item.h.

◆ hovered()

bool zrythm::gui::qquick::FadeOverlayCanvasItem::hovered ( ) const
inline

Definition at line 58 of file fade_overlay_canvas_item.h.

◆ overlayColor()

QColor zrythm::gui::qquick::FadeOverlayCanvasItem::overlayColor ( ) const
inline

Definition at line 60 of file fade_overlay_canvas_item.h.

◆ pxPerTick()

qreal zrythm::gui::qquick::FadeOverlayCanvasItem::pxPerTick ( ) const
inline

Definition at line 54 of file fade_overlay_canvas_item.h.

◆ region()

QObject * zrythm::gui::qquick::FadeOverlayCanvasItem::region ( ) const
inline

Definition at line 52 of file fade_overlay_canvas_item.h.

Property Documentation

◆ curveColor

QColor zrythm::gui::qquick::FadeOverlayCanvasItem::curveColor
readwrite

Definition at line 38 of file fade_overlay_canvas_item.h.

◆ fadeType

FadeType zrythm::gui::qquick::FadeOverlayCanvasItem::fadeType
readwrite

Definition at line 35 of file fade_overlay_canvas_item.h.

◆ hovered

bool zrythm::gui::qquick::FadeOverlayCanvasItem::hovered
readwrite

Definition at line 36 of file fade_overlay_canvas_item.h.

◆ overlayColor

QColor zrythm::gui::qquick::FadeOverlayCanvasItem::overlayColor
readwrite

Definition at line 37 of file fade_overlay_canvas_item.h.

◆ pxPerTick

qreal zrythm::gui::qquick::FadeOverlayCanvasItem::pxPerTick
readwrite

Definition at line 34 of file fade_overlay_canvas_item.h.

◆ region

QObject * zrythm::gui::qquick::FadeOverlayCanvasItem::region
readwrite

Definition at line 33 of file fade_overlay_canvas_item.h.


The documentation for this class was generated from the following file: