AgsLineMember

AgsLineMember — Modify assigned recall's port

Synopsis

#include <ags/X/ags_line_member.h>

struct              AgsLineMember;
struct              AgsLineMemberClass;
enum                AgsLineMemberFlags;
void                ags_line_member_change_port         (AgsLineMember *line_member,
                                                         gpointer port_data);
void                ags_line_member_find_port           (AgsLineMember *line_member);
GtkWidget *         ags_line_member_get_widget          (AgsLineMember *line_member);
AgsLineMember *     ags_line_member_new                 ();
void                ags_line_member_set_label           (AgsLineMember *line_member,
                                                         gchar *label);

Description

AgsLineMember is a composite widget to modify ports of recalls. A line member controls only one specific port of a recall but distinguishes between simple/complex recall. It is generally packed into a AgsLine.

Details

struct AgsLineMember

struct AgsLineMember {
  GtkFrame frame;

  guint flags;

  GType widget_type;
  gchar *widget_label;

  gchar *plugin_name;
  gchar *specifier;

  gchar *control_port;
  
  AgsPort *port;
  gpointer port_data;
  gboolean active;

  AgsPort *recall_port;
  gpointer recall_port_data;
  gboolean recall_active;

  GType task_type;
};

struct AgsLineMemberClass

struct AgsLineMemberClass {
  GtkFrameClass frame;

  void (*change_port)(AgsLineMember *line_member,
		      gpointer port_data);
};

enum AgsLineMemberFlags

typedef enum {
  AGS_LINE_MEMBER_DEFAULT_TEMPLATE      = 1,
  AGS_LINE_MEMBER_RESET_BY_ATOMIC       = 1 << 1,
  AGS_LINE_MEMBER_RESET_BY_TASK         = 1 << 2,
  AGS_LINE_MEMBER_APPLY_RECALL          = 1 << 3,
  AGS_LINE_MEMBER_PLAY_CALLBACK_WRITE   = 1 << 4,
  AGS_LINE_MEMBER_RECALL_CALLBACK_WRITE = 1 << 5,
  AGS_LINE_MEMBER_CALLBACK_READ_BLOCK   = 1 << 6,
  AGS_LINE_MEMBER_CALLBACK_WRITE_BLOCK  = 1 << 7,
} AgsLineMemberFlags;

ags_line_member_change_port ()

void                ags_line_member_change_port         (AgsLineMember *line_member,
                                                         gpointer port_data);

ags_line_member_find_port ()

void                ags_line_member_find_port           (AgsLineMember *line_member);

Lookup ports of assigned recall.

line_member :

an AgsLineMember

Since 0.4


ags_line_member_get_widget ()

GtkWidget *         ags_line_member_get_widget          (AgsLineMember *line_member);

ags_line_member_new ()

AgsLineMember *     ags_line_member_new                 ();

Creates an AgsLineMember

Returns :

a new AgsLineMember

Since 0.4


ags_line_member_set_label ()

void                ags_line_member_set_label           (AgsLineMember *line_member,
                                                         gchar *label);

Modify the label of the line member.

line_member :

an AgsLineMember

label :

the label of the control