AgsWindow

AgsWindow — The window object.

Functions

Properties

GObject * application-context Read / Write
GObject * soundcard Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBin
                        ╰── GtkWindow
                            ╰── AgsWindow

Implemented Interfaces

AgsWindow implements AtkImplementorIface, GtkBuildable and AgsConnectable.

Includes

#include <ags/X/ags_window.h>

Description

AgsWindow is a composite toplevel widget. It contains the menubar, the machine rack and the notation editor.

Functions

AGS_MACHINE_COUNTER()

#define AGS_MACHINE_COUNTER(ptr) ((AgsMachineCounter *)(ptr))

ags_window_standard_machine_counter_alloc ()

GList *
ags_window_standard_machine_counter_alloc
                               ();

Keep track of count of machines. Allocates a GList of well known machines.

Returns

a new GList containing AgsMachineCounter for know machines

Since: 1.0.0


ags_window_find_machine_counter ()

AgsMachineCounter *
ags_window_find_machine_counter (AgsWindow *window,
                                 GType machine_type);

Keep track of count of machines. Lookup window's counter.

Parameters

window

the AgsWindow

 

machine_type

the machine type

 

Returns

an AgsMachineCounter

Since: 1.0.0


ags_window_increment_machine_counter ()

void
ags_window_increment_machine_counter (AgsWindow *window,
                                      GType machine_type);

Keep track of count of machines. Increment window's counter.

Parameters

window

the AgsWindow

 

machine_type

the machine type

 

Since: 1.0.0


ags_window_decrement_machine_counter ()

void
ags_window_decrement_machine_counter (AgsWindow *window,
                                      GType machine_type);

Keep track of count of machines. Decrement window's counter.

Parameters

window

the AgsWindow

 

machine_type

the machine type

 

Since: 1.0.0


ags_machine_counter_alloc ()

AgsMachineCounter *
ags_machine_counter_alloc (gchar *version,
                           gchar *build_id,
                           GType machine_type,
                           guint initial_value);

Keep track of count of machines.

Parameters

version

the machine's version

 

build_id

the machine's build id

 

machine_type

the machine type

 

initial_value

initialize counter

 

Returns

an AgsMachineCounter

Since: 1.0.0


ags_window_show_error ()

void
ags_window_show_error (AgsWindow *window,
                       gchar *message);

ags_window_new ()

AgsWindow *
ags_window_new (GObject *application_context);

Creates an AgsWindow

Parameters

application_context

the application object.

 

Returns

a new AgsWindow

Since: 1.0.0


AGS_IS_WINDOW()

#define AGS_IS_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_WINDOW))

AGS_WINDOW()

#define AGS_WINDOW(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_WINDOW, AgsWindow))

AGS_WINDOW_CLASS()

#define AGS_WINDOW_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_WINDOW, AgsWindowClass))

AGS_WINDOW_GET_CLASS()

#define AGS_WINDOW_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_WINDOW, AgsWindowClass))

ags_window_get_type ()

GType
ags_window_get_type (void);

Types and Values

enum AgsWindowFlags

Members

AGS_WINDOW_CONNECTED

   

AGS_WINDOW_READY

   

AGS_WINDOW_LOADING

   

AGS_WINDOW_SAVING

   

AGS_WINDOW_TERMINATING

   

struct AgsMachineCounter

struct AgsMachineCounter {
  gchar *version;
  gchar *build_id;

  GType machine_type;
  gchar *filename;
  gchar *effect;
  
  guint counter;
};

AGS_TYPE_WINDOW

#define AGS_TYPE_WINDOW                (ags_window_get_type())

struct AgsWindow

struct AgsWindow;

struct AgsWindowClass

struct AgsWindowClass {
  GtkWindowClass window;
};

Property Details

The “application-context” property

  “application-context”      GObject *

The assigned application context.

Flags: Read / Write

Since: 1.0.0


The “soundcard” property

  “soundcard”                GObject *

The assigned main AgsSoundcard.

Flags: Read / Write

Since: 1.0.0