AgsTogglePatternBit

AgsTogglePatternBit — toggles the pattern

Synopsis

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

struct              AgsTogglePatternBit;
struct              AgsTogglePatternBitClass;
AgsTogglePatternBit * ags_toggle_pattern_bit_new        (AgsPattern *pattern,
                                                         guint line,
                                                         guint index_i,
                                                         guint index_j,
                                                         guint bit);
void                ags_toggle_pattern_bit_refresh_gui  (AgsTogglePatternBit *toggle_pattern_bit);

Description

The AgsTogglePatternBit task toggles the specified AgsPattern.

Details

struct AgsTogglePatternBit

struct AgsTogglePatternBit {
  AgsTask task;
  
  AgsPattern *pattern;
  guint line;

  guint index_i;
  guint index_j;
  guint bit;
};

struct AgsTogglePatternBitClass

struct AgsTogglePatternBitClass {
  AgsTaskClass task;

  void (*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.

pattern :

the AgsPattern to toggle

index_i :

bank 0

index_j :

bank 1

bit :

the index within pattern

Returns :

an new AgsTogglePatternBit.

Since 0.4


ags_toggle_pattern_bit_refresh_gui ()

void                ags_toggle_pattern_bit_refresh_gui  (AgsTogglePatternBit *toggle_pattern_bit);