AgsTogglePatternBit

AgsTogglePatternBit — toggles the pattern

Functions

Properties

guint bit Read / Write
guint index-i Read / Write
guint index-j Read / Write
guint line Read / Write
AgsPattern * pattern Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsTask
        ╰── AgsTogglePatternBit

Implemented Interfaces

AgsTogglePatternBit implements AgsConnectable.

Includes

#include <ags/audio/task/ags_toggle_pattern_bit.h>

Description

The AgsTogglePatternBit task toggles the specified AgsPattern.

Functions

ags_toggle_pattern_bit_refresh_gui ()

void
ags_toggle_pattern_bit_refresh_gui (AgsTogglePatternBit *toggle_pattern_bit);

ags_toggle_pattern_bit_new ()

AgsTogglePatternBit *
ags_toggle_pattern_bit_new (AgsPattern *pattern,
                            guint line,
                            guint index_i,
                            guint index_j,
                            guint bit);

Creates an AgsTogglePatternBit.

Parameters

pattern

the AgsPattern to toggle

 

line

the affected line

 

index_i

bank 0

 

index_j

bank 1

 

bit

the index within pattern

 

Returns

an new AgsTogglePatternBit.

Since: 1.0.0


AGS_IS_TOGGLE_PATTERN_BIT()

#define AGS_IS_TOGGLE_PATTERN_BIT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TOGGLE_PATTERN_BIT))

AGS_TOGGLE_PATTERN_BIT()

#define AGS_TOGGLE_PATTERN_BIT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TOGGLE_PATTERN_BIT, AgsTogglePatternBit))

AGS_TOGGLE_PATTERN_BIT_CLASS()

#define AGS_TOGGLE_PATTERN_BIT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TOGGLE_PATTERN_BIT, AgsTogglePatternBitClass))

AGS_TOGGLE_PATTERN_BIT_GET_CLASS()

#define AGS_TOGGLE_PATTERN_BIT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_TOGGLE_PATTERN_BIT, AgsTogglePatternBitClass))

ags_toggle_pattern_bit_get_type ()

GType
ags_toggle_pattern_bit_get_type ();

Types and Values

AGS_TYPE_TOGGLE_PATTERN_BIT

#define AGS_TYPE_TOGGLE_PATTERN_BIT                (ags_toggle_pattern_bit_get_type())

struct AgsTogglePatternBit

struct AgsTogglePatternBit;

struct AgsTogglePatternBitClass

struct AgsTogglePatternBitClass {
  AgsTaskClass task;

  void (*refresh_gui)(AgsTogglePatternBit *toggle_pattern_bit);
};

Property Details

The “bit” property

  “bit”                      guint

The bit.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “index-i” property

  “index-i”                  guint

The index-i.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “index-j” property

  “index-j”                  guint

The index-j.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “line” property

  “line”                     guint

The line.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “pattern” property

  “pattern”                  AgsPattern *

The assigned AgsPattern

Flags: Read / Write

Since: 1.0.0

Signal Details

The “refresh-gui” signal

void
user_function (AgsTogglePatternBit *agstogglepatternbit,
               gpointer             user_data)

Flags: Run Last