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

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: 0.7.2


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: 0.7.64


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: 0.4.3


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: 0.4.3


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: 0.4.3


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: 0.4.3


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: 0.4.3


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: 0.4.3

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)

Property Details

The “audio” property

  “audio”                    AgsAudio *

The audio it is assigned with.

Flags: Read / Write

Since: 0.7.74


The “channel-type” property

  “channel-type”             GType *

The channel type it is assigned with.

Flags: Read / Write

Allowed values: void

Since: 0.7.74


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 drawing area it is assigned with.

Flags: Read / Write

Since: 0.7.74


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 height of the area.

Flags: Read

Allowed values: <= 65535

Default value: 0

Since: 0.7.74


The “y” property

  “y”                        guint

The y offset.

Flags: Read

Allowed values: <= 65535

Default value: 0

Since: 0.7.74