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.

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: 0.5.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: 0.5.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: 0.5.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: 0.5.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: 0.5.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: 0.3

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;
};

Property Details

The “application-context” property

  “application-context”      GObject *

The AgsApplicationContext it is assigned with.

Flags: Read / Write


The “soundcard” property

  “soundcard”                GObject *

The soundcard it is assigned with.

Flags: Read / Write