AgsWindow

AgsWindow — The window object.

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── 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: 3.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: 3.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: 3.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: 3.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: 3.0.0


ags_window_show_error ()

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

ags_window_load_file_timeout ()

gboolean
ags_window_load_file_timeout (AgsWindow *window);

Load file.

Parameters

window

the AgsWindow

 

Returns

TRUE if proceed with redraw, otherwise FALSE

Since: 3.0.0


ags_window_new ()

AgsWindow *
ags_window_new ();

Creates an AgsWindow

Returns

a new AgsWindow

Since: 3.0.0


AGS_IS_WINDOW()

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

AGS_IS_WINDOW_CLASS()

#define AGS_IS_WINDOW_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), 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;
};