AgsMachineSelector

AgsMachineSelector — machine radio buttons

Functions

Signals

Types and Values

Object Hierarchy

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

Implemented Interfaces

AgsMachineSelector implements AtkImplementorIface, GtkBuildable, GtkOrientable and AgsConnectable.

Includes

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

Description

The AgsMachineSelector enables you make choice of an AgsMachine.

Functions

ags_machine_selector_add_index ()

void
ags_machine_selector_add_index (AgsMachineSelector *machine_selector);

ags_machine_selector_remove_index ()

void
ags_machine_selector_remove_index (AgsMachineSelector *machine_selector,
                                   guint nth);

ags_machine_selector_link_index ()

void
ags_machine_selector_link_index (AgsMachineSelector *machine_selector,
                                 AgsMachine *machine);

ags_machine_selector_changed ()

void
ags_machine_selector_changed (AgsMachineSelector *machine_selector,
                              AgsMachine *machine);

Emitted as AgsMachineSelector modified.

Parameters

machine_selector

the AgsMachineSelector

 

machine

the selected AgsMachine

 

Since: 1.0.0


ags_machine_selector_popup_new ()

GtkMenu *
ags_machine_selector_popup_new (AgsMachineSelector *machine_selector);

Create a new AgsMachineSelectorPopup.

Parameters

machine_selector

the AgsMachineSelector

 

Returns

a new GtkMenu suitable for AgsMachineSelector

Since: 1.0.0


ags_machine_selector_new ()

AgsMachineSelector *
ags_machine_selector_new ();

Create a new AgsMachineSelector.

Returns

a new AgsMachineSelector

Since: 1.0.0


AGS_IS_MACHINE_SELECTOR()

#define AGS_IS_MACHINE_SELECTOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MACHINE_SELECTOR))

AGS_MACHINE_SELECTOR()

#define AGS_MACHINE_SELECTOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE_SELECTOR, AgsMachineSelector))

AGS_MACHINE_SELECTOR_CLASS()

#define AGS_MACHINE_SELECTOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE_SELECTOR, AgsMachineSelectorClass))

AGS_MACHINE_SELECTOR_GET_CLASS()

#define AGS_MACHINE_SELECTOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_MACHINE_SELECTOR, AgsMachineSelectorClass))

ags_machine_selector_get_type ()

GType
ags_machine_selector_get_type (void);

Types and Values

enum AgsMachineSelectorFlags

Members

AGS_MACHINE_SELECTOR_CONNECTED

   

AGS_MACHINE_SELECTOR_SHOW_REVERSE_MAPPING

   

AGS_MACHINE_SELECTOR_SHOW_SHIFT_PIANO

   

AGS_MACHINE_SELECTOR_NOTATION

   

AGS_MACHINE_SELECTOR_AUTOMATION

   

AGS_TYPE_MACHINE_SELECTOR

#define AGS_TYPE_MACHINE_SELECTOR                (ags_machine_selector_get_type())

struct AgsMachineSelector

struct AgsMachineSelector;

struct AgsMachineSelectorClass

struct AgsMachineSelectorClass {
  GtkVBoxClass vbox;

  void (*changed)(AgsMachineSelector *machine_selector, AgsMachine *machine);
};

Signal Details

The “changed” signal

void
user_function (AgsMachineSelector *machine_selector,
               GObject            *machine,
               gpointer            user_data)

The ::changed signal notifies changed AgsMachine.

Parameters

machine_selector

the AgsMachineSelector

 

machine

the changed AgsMachine

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 1.0.0