AgsPatternEdit

AgsPatternEdit — edit notes

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkTable
                        ╰── AgsPatternEdit

Implemented Interfaces

AgsPatternEdit implements AtkImplementorIface, GtkBuildable and AgsConnectable.

Includes

#include <ags/X/editor/ags_pattern_edit.h>

Description

The AgsPatternEdit lets you edit notes.

Functions

ags_pattern_edit_set_map_height ()

void
ags_pattern_edit_set_map_height (AgsPatternEdit *pattern_edit,
                                 guint map_height);

Set the map height in pixel.

Parameters

pattern_edit

the AgsPatternEdit

 

map_height

the new height

 

Since: 1.0.0


ags_pattern_edit_reset_vertically ()

void
ags_pattern_edit_reset_vertically (AgsPatternEdit *pattern_edit,
                                   guint flags);

Reset pattern_edit as configured vertically.

Parameters

pattern_edit

the AgsPatternEdit

 

flags

the AgsPatternEditResetFlags

 

Since: 1.0.0


ags_pattern_edit_reset_horizontally ()

void
ags_pattern_edit_reset_horizontally (AgsPatternEdit *pattern_edit,
                                     guint flags);

Reset pattern_edit as configured horizontally.

Parameters

pattern_edit

the AgsPatternEdit

 

flags

the AgsPatternEditResetFlags

 

Since: 1.0.0


ags_pattern_edit_draw_segment ()

void
ags_pattern_edit_draw_segment (AgsPatternEdit *pattern_edit,
                               cairo_t *cr);

Draws horizontal and vertical lines.

Parameters

pattern_edit

the AgsPatternEdit

 

cr

the cairo_t surface

 

Since: 1.0.0


ags_pattern_edit_draw_position ()

void
ags_pattern_edit_draw_position (AgsPatternEdit *pattern_edit,
                                cairo_t *cr);

Draws the cursor.

Parameters

pattern_edit

the AgsPatternEdit

 

cr

the cairo_t surface

 

Since: 1.0.0


ags_pattern_edit_draw_notation ()

void
ags_pattern_edit_draw_notation (AgsPatternEdit *pattern_edit,
                                cairo_t *cr);

Draw the AgsNotation of selected AgsMachine on pattern_edit .

Parameters

pattern_edit

the AgsPatternEdit

 

cr

the cairo_t surface

 

Since: 1.0.0


ags_pattern_edit_draw_scroll ()

void
ags_pattern_edit_draw_scroll (AgsPatternEdit *pattern_edit,
                              cairo_t *cr,
                              gdouble position);

Change visible x-position of pattern_edit .

Parameters

pattern_edit

the AgsPatternEdit

 

cr

the cairo_t surface

 

position

the new position

 

Since: 1.0.0


ags_pattern_edit_new ()

AgsPatternEdit *
ags_pattern_edit_new ();

Create a new AgsPatternEdit.

Returns

a new AgsPatternEdit

Since: 1.0.0


AGS_IS_PATTERN_EDIT()

#define AGS_IS_PATTERN_EDIT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PATTERN_EDIT))

AGS_PATTERN_EDIT()

#define AGS_PATTERN_EDIT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PATTERN_EDIT, AgsPatternEdit))

AGS_PATTERN_EDIT_CLASS()

#define AGS_PATTERN_EDIT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PATTERN_EDIT, AgsPatternEditClass))

AGS_PATTERN_EDIT_GET_CLASS()

#define AGS_PATTERN_EDIT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_PATTERN_EDIT, AgsPatternEditClass))

ags_pattern_edit_get_type ()

GType
ags_pattern_edit_get_type (void);

Types and Values

AGS_PATTERN_EDIT_MAX_CONTROLS

#define AGS_PATTERN_EDIT_MAX_CONTROLS 1200

enum AgsPatternEditFlags

Members

AGS_PATTERN_EDIT_RESETING_VERTICALLY

   

AGS_PATTERN_EDIT_RESETING_HORIZONTALLY

   

AGS_PATTERN_EDIT_POSITION_CURSOR

   

AGS_PATTERN_EDIT_ADDING_NOTE

   

AGS_PATTERN_EDIT_DELETING_NOTE

   

AGS_PATTERN_EDIT_SELECTING_NOTES

   

AGS_PATTERN_EDIT_DRAW_FADER

   

enum AgsPatternEditResetFlags

Members

AGS_PATTERN_EDIT_RESET_VSCROLLBAR

   

AGS_PATTERN_EDIT_RESET_HSCROLLBAR

   

AGS_PATTERN_EDIT_RESET_WIDTH

   

AGS_PATTERN_EDIT_RESET_HEIGHT

   

enum AgsPatternEditKeyMask

Members

AGS_PATTERN_EDIT_KEY_L_CONTROL

   

AGS_PATTERN_EDIT_KEY_R_CONTROL

   

AGS_TYPE_PATTERN_EDIT

#define AGS_TYPE_PATTERN_EDIT                (ags_pattern_edit_get_type())

struct AgsPatternEdit

struct AgsPatternEdit;

struct AgsPatternEditClass

struct AgsPatternEditClass {
  GtkTableClass table;
};