AgsEditor

AgsEditor — A composite widget to edit notes

Functions

Properties

GObject * soundcard Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBox
                        ╰── GtkVBox
                            ╰── AgsEditor

Implemented Interfaces

AgsEditor implements AtkImplementorIface, GtkBuildable, GtkOrientable and AgsConnectable.

Includes

#include <ags/X/ags_editor.h>

Description

AgsEditor is a composite widget to edit notes. You may select machines or change editor tool to do notation.

Functions

AGS_EDITOR_CHILD()

#define AGS_EDITOR_CHILD(ptr) ((AgsEditorChild *)(ptr))

ags_editor_child_alloc ()

AgsEditorChild *
ags_editor_child_alloc (AgsMachine *machine,
                        AgsNotebook *notebook,
                        AgsMeter *meter,
                        GtkWidget *edit_widget);

ags_editor_machine_changed ()

void
ags_editor_machine_changed (AgsEditor *editor,
                            AgsMachine *machine);

Is emitted as machine changed of editor.

Parameters

editor

an AgsEditor

 

machine

the new AgsMachine

 

Since: 1.0.0


ags_editor_select_all ()

void
ags_editor_select_all (AgsEditor *editor);

Is emitted as machine changed of editor.

Parameters

editor

an AgsEditor

 

Since: 1.0.0


ags_editor_paste ()

void
ags_editor_paste (AgsEditor *editor);

Is emitted as machine changed of editor.

Parameters

editor

an AgsEditor

 

Since: 1.0.0


ags_editor_copy ()

void
ags_editor_copy (AgsEditor *editor);

Is emitted as machine changed of editor.

Parameters

editor

an AgsEditor

 

Since: 1.0.0


ags_editor_cut ()

void
ags_editor_cut (AgsEditor *editor);

Is emitted as machine changed of editor.

Parameters

editor

an AgsEditor

 

Since: 1.0.0


ags_editor_invert ()

void
ags_editor_invert (AgsEditor *editor);

Invert all notation of editor 's selected machine.

Parameters

editor

an AgsEditor

 

Since: 1.0.0


ags_editor_new ()

AgsEditor *
ags_editor_new ();

Creates an AgsEditor

Returns

a new AgsEditor

Since: 1.0.0


AGS_EDITOR()

#define AGS_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EDITOR, AgsEditor))

AGS_EDITOR_CLASS()

#define AGS_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EDITOR, AgsEditorClass))

AGS_EDITOR_GET_CLASS()

#define AGS_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_EDITOR, AgsEditorClass))

AGS_IS_EDITOR()

#define AGS_IS_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_EDITOR))

ags_editor_get_type ()

GType
ags_editor_get_type (void);

Types and Values

AGS_EDITOR_DEFAULT_VERSION

#define AGS_EDITOR_DEFAULT_VERSION "0.4.2\0"

AGS_EDITOR_DEFAULT_BUILD_ID

#define AGS_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"

AGS_EDITOR_DEFAULT

#define AGS_EDITOR_DEFAULT "default\0"

enum AgsEditorFlags

Members

AGS_EDITOR_CONNECTED

   

struct AgsEditorChild

struct AgsEditorChild {
  AgsMachine *machine;

  AgsNotebook *notebook;
  AgsMeter *meter;
  GtkWidget *edit_widget;
};

AGS_TYPE_EDITOR

#define AGS_TYPE_EDITOR                (ags_editor_get_type ())

struct AgsEditor

struct AgsEditor;

struct AgsEditorClass

struct AgsEditorClass {
  GtkVBoxClass vbox;

  void (*machine_changed)(AgsEditor *editor, AgsMachine *machine);
};

Property Details

The “soundcard” property

  “soundcard”                GObject *

The assigned AgsSoundcard acting as default sink.

Flags: Read / Write

Since: 1.0.0

Signal Details

The “machine-changed” signal

void
user_function (AgsEditor *editor,
               GObject   *machine,
               gpointer   user_data)

The ::machine-changed signal notifies about changed machine.

Parameters

editor

the object to change machine.

 

machine

the AgsMachine to set

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last