AgsWindow

AgsWindow — The window object.

Synopsis

#include <ags/X/ags_window.h>

#define             AGS_MACHINE_COUNTER                 (ptr)
struct              AgsMachineCounter;
struct              AgsWindow;
struct              AgsWindowClass;
enum                AgsWindowFlags;
AgsMachineCounter * ags_machine_counter_alloc           (gchar *version,
                                                         gchar *build_id,
                                                         GType machine_type,
                                                         guint initial_value);
void                ags_window_decrement_machine_counter
                                                        (AgsWindow *window,
                                                         GType machine_type);
AgsMachineCounter * ags_window_find_machine_counter     (AgsWindow *window,
                                                         GType machine_type);
void                ags_window_increment_machine_counter
                                                        (AgsWindow *window,
                                                         GType machine_type);
AgsWindow *         ags_window_new                      (GObject *ags_main);

Description

AgsWindow is a composite toplevel widget.

Details

AGS_MACHINE_COUNTER()

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

struct AgsMachineCounter

struct AgsMachineCounter {
  gchar *version;
  gchar *build_id;

  GType machine_type;
  guint counter;
};

struct AgsWindow

struct AgsWindow {
  GtkWindow window;

  guint flags;

  GObject *ags_main;

  AgsDevout *devout;

  char *name;

  AgsMenuBar *menu_bar;

  GtkVPaned *paned;

  GtkVBox *machines;
  GList *machine_counter;
  AgsMachine *selected;

  AgsEditor *editor;
  AgsNavigation *navigation;

  AgsExportWindow *export_window;
  AgsPreferences *preferences;
};

struct AgsWindowClass

struct AgsWindowClass {
  GtkWindowClass window;
};

enum AgsWindowFlags

typedef enum {
  AGS_WINDOW_READY        = 1,
  AGS_WINDOW_LOADING      = 1 << 1,
  AGS_WINDOW_SAVING       = 1 << 2,
  AGS_WINDOW_TERMINATING  = 1 << 3,
} AgsWindowFlags;

ags_machine_counter_alloc ()

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

ags_window_decrement_machine_counter ()

void                ags_window_decrement_machine_counter
                                                        (AgsWindow *window,
                                                         GType machine_type);

ags_window_find_machine_counter ()

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

ags_window_increment_machine_counter ()

void                ags_window_increment_machine_counter
                                                        (AgsWindow *window,
                                                         GType machine_type);

ags_window_new ()

AgsWindow *         ags_window_new                      (GObject *ags_main);

Creates an AgsWindow

ags_main :

the application object.

Returns :

a new AgsWindow

Since 0.3