AgsAutomationArea

AgsAutomationArea — area automations

Functions

Properties

AgsAudio * audio Read / Write
GType * channel-type Read / Write
gchar * control-name Read / Write
gchar * control-specifier Read / Write
GtkDrawingArea * drawing-area Read / Write
gchar * effect Read / Write
gchar * filename Read / Write
guint height Read
guint y Read

Types and Values

Object Hierarchy

    GObject
    ╰── AgsAutomationArea

Implemented Interfaces

AgsAutomationArea implements AgsConnectable.

Includes

#include <ags/X/areaor/ags_automation_area.h>

Description

The AgsAutomationArea lets you paint automations.

Functions

ags_automation_area_find_specifier ()

GList *
ags_automation_area_find_specifier (GList *automation_area,
                                    gchar *specifier);

Finds matching specifier within automation_area GList containing AgsAutomationArea.

Parameters

automation_area

the GList containing AgsAutomationArea

 

specifier

the string specifier to match

 

Returns

the matching GList

Since: 1.0.0


ags_automation_area_find_position ()

GList *
ags_automation_area_find_position (GList *automation_area,
                                   guint x,
                                   guint y);

Finds the given position on the drawing area.

Parameters

automation_area

the GList containing AgsAutomationArea

 

x

x position

 

y

y position

 

Returns

the matching GList

Since: 1.0.0


ags_automation_area_draw_strip ()

void
ags_automation_area_draw_strip (AgsAutomationArea *automation_area,
                                cairo_t *cr,
                                gdouble x_offset,
                                gdouble y_offset);

Plot data.

Parameters

automation_area

the AgsAutomationArea

 

cr

the cairo_t surface

 

x_offset

x position given by GtkHScrollbar

 

y_offset

y position given by GtkVScrollbar

 

Since: 1.0.0


ags_automation_area_draw_segment ()

void
ags_automation_area_draw_segment (AgsAutomationArea *automation_area,
                                  cairo_t *cr,
                                  gdouble x_offset,
                                  gdouble y_offset);

Draws horizontal and vertical lines.

Parameters

automation_area

the AgsAutomationArea

 

cr

the cairo_t surface

 

x_offset

x position given by GtkHScrollbar

 

y_offset

y position given by GtkVScrollbar

 

Since: 1.0.0


ags_automation_area_draw_scale ()

void
ags_automation_area_draw_scale (AgsAutomationArea *automation_area,
                                cairo_t *cr,
                                gdouble x_offset,
                                gdouble y_offset);

Draw a scale and its boundaries.

Parameters

automation_area

the AgsAutomationArea

 

cr

the cairo_t surface

 

x_offset

x position given by GtkHScrollbar

 

y_offset

y position given by GtkVScrollbar

 

Since: 1.0.0


ags_automation_area_draw_automation ()

void
ags_automation_area_draw_automation (AgsAutomationArea *automation_area,
                                     cairo_t *cr,
                                     gdouble x_offset,
                                     gdouble y_offset);

Draw the AgsAutomation of selected AgsMachine on automation_edit .

Parameters

automation_area

a AgsAutomationArea

 

cr

the cairo_t surface

 

x_offset

x position given by GtkHScrollbar

 

y_offset

y position given by GtkVScrollbar

 

Since: 1.0.0


ags_automation_area_draw_surface ()

void
ags_automation_area_draw_surface (AgsAutomationArea *automation_area,
                                  cairo_t *cr,
                                  gdouble x_offset,
                                  gdouble y_offset,
                                  gdouble x0,
                                  gdouble y0,
                                  gdouble x1,
                                  gdouble y1,
                                  guint steps);

Draw a portion of data.

Parameters

automation_area

the AgsAutomationArea

 

cr

the cairo_t surface

 

x_offset

x position given by GtkHScrollbar

 

y_offset

y position given by GtkVScrollbar

 

x0

x offset

 

y0

y offset

 

x1

x offset

 

y1

y offset

 

steps

precision range

 

Since: 1.0.0


ags_automation_area_paint ()

void
ags_automation_area_paint (AgsAutomationArea *automation_area,
                           cairo_t *cr,
                           gdouble x_offset,
                           gdouble y_offset);

ags_automation_area_new ()

AgsAutomationArea *
ags_automation_area_new (GtkDrawingArea *drawing_area,
                         AgsAudio *audio,
                         GType channel_type,
                         gchar *control_name);

Create a new AgsAutomationArea.

Parameters

drawing_area

the assigned drawing area

 

audio

the assigned AgsAudio

 

channel_type

the channel type

 

control_name

the control_name

 

Returns

a new AgsAutomationArea

Since: 1.0.0


AGS_AUTOMATION_AREA()

#define AGS_AUTOMATION_AREA(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTOMATION_AREA, AgsAutomationArea))

AGS_AUTOMATION_AREA_CLASS()

#define AGS_AUTOMATION_AREA_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUTOMATION_AREA, AgsAutomationAreaClass))

AGS_AUTOMATION_AREA_GET_CLASS()

#define AGS_AUTOMATION_AREA_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_AUTOMATION_AREA, AgsAutomationAreaClass))

AGS_IS_AUTOMATION_AREA()

#define AGS_IS_AUTOMATION_AREA(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTOMATION_AREA))

ags_automation_area_get_type ()

GType
ags_automation_area_get_type (void);

Types and Values

AGS_AUTOMATION_AREA_DEFAULT_HEIGHT

#define AGS_AUTOMATION_AREA_DEFAULT_HEIGHT (128)

AGS_AUTOMATION_AREA_DEFAULT_PRECISION

#define AGS_AUTOMATION_AREA_DEFAULT_PRECISION (8)

AGS_TYPE_AUTOMATION_AREA

#define AGS_TYPE_AUTOMATION_AREA                (ags_automation_area_get_type())

struct AgsAutomationArea

struct AgsAutomationArea;

struct AgsAutomationAreaClass

struct AgsAutomationAreaClass {
  GObjectClass gobject;
};

Property Details

The “audio” property

  “audio”                    AgsAudio *

The AgsAudio to visualize.

Flags: Read / Write

Since: 1.0.0


The “channel-type” property

  “channel-type”             GType *

The target channel.

Flags: Read / Write

Allowed values: void

Since: 1.0.0


The “control-name” property

  “control-name”             gchar *

The control name to display.

Flags: Read / Write

Default value: NULL


The “control-specifier” property

  “control-specifier”        gchar *

The control specifier it is assigned with.

Flags: Read / Write

Default value: NULL


The “drawing-area” property

  “drawing-area”             GtkDrawingArea *

The GtkDrawingArea to perform drawing on.

Flags: Read / Write

Since: 1.0.0


The “effect” property

  “effect”                   gchar *

The effect name it is assigned with.

Flags: Read / Write

Default value: NULL


The “filename” property

  “filename”                 gchar *

The filename it is assigned with.

Flags: Read / Write

Default value: NULL


The “height” property

  “height”                   guint

The nth height.

Flags: Read

Allowed values: <= 65535

Default value: 0

Since: 1.0.0


The “y” property

  “y”                        guint

The y offset.

Flags: Read

Allowed values: <= 65535

Default value: 0

Since: 1.0.0