Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::arrangement::ArrangerObjectColor Class Reference
Inheritance diagram for zrythm::structure::arrangement::ArrangerObjectColor:
Collaboration diagram for zrythm::structure::arrangement::ArrangerObjectColor:

Public Types

using Color = zrythm::utils::Color

Public Member Functions

 ArrangerObjectColor (QObject *parent=nullptr) noexcept
bool useColor () const
QColor color () const
void setColor (QColor color)
Q_INVOKABLE void unsetColor ()
Q_SIGNAL void colorChanged (QColor color)
Q_SIGNAL void useColorChanged (bool use_color)

Properties

bool useColor
QColor color

Friends

void init_from (ArrangerObjectColor &obj, const ArrangerObjectColor &other, utils::ObjectCloneType clone_type)
void to_json (nlohmann::json &j, const ArrangerObjectColor &obj)
void from_json (const nlohmann::json &j, ArrangerObjectColor &obj)

Detailed Description

Definition at line 14 of file colored_object.h.

Member Typedef Documentation

◆ Color

using zrythm::structure::arrangement::ArrangerObjectColor::Color = zrythm::utils::Color

Definition at line 29 of file colored_object.h.

Constructor & Destructor Documentation

◆ ArrangerObjectColor()

zrythm::structure::arrangement::ArrangerObjectColor::ArrangerObjectColor ( QObject * parent = nullptr)
inlinenoexcept

Definition at line 23 of file colored_object.h.

Member Function Documentation

◆ color()

QColor zrythm::structure::arrangement::ArrangerObjectColor::color ( ) const
inline

Definition at line 37 of file colored_object.h.

◆ setColor()

void zrythm::structure::arrangement::ArrangerObjectColor::setColor ( QColor color)
inline

Definition at line 45 of file colored_object.h.

◆ unsetColor()

Q_INVOKABLE void zrythm::structure::arrangement::ArrangerObjectColor::unsetColor ( )
inline

Definition at line 60 of file colored_object.h.

◆ useColor()

bool zrythm::structure::arrangement::ArrangerObjectColor::useColor ( ) const
inline

Definition at line 35 of file colored_object.h.

◆ from_json

void from_json ( const nlohmann::json & j,
ArrangerObjectColor & obj )
friend

Definition at line 85 of file colored_object.h.

◆ init_from

void init_from ( ArrangerObjectColor & obj,
const ArrangerObjectColor & other,
utils::ObjectCloneType clone_type )
friend

Definition at line 72 of file colored_object.h.

◆ to_json

void to_json ( nlohmann::json & j,
const ArrangerObjectColor & obj )
friend

Definition at line 81 of file colored_object.h.

Property Documentation

◆ color

QColor zrythm::structure::arrangement::ArrangerObjectColor::color
readwrite

Definition at line 18 of file colored_object.h.

◆ useColor

bool zrythm::structure::arrangement::ArrangerObjectColor::useColor
read

Definition at line 17 of file colored_object.h.


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