RCMainApplication

RCMainApplication — Main application functions

Synopsis

#include <rc-main.h>

struct              RCMainApplication;
struct              RCMainApplicationClass;
void                rc_main_exit                        ();
const gchar *       rc_main_get_data_dir                ();
const gchar *       rc_main_get_user_dir                ();
gint                rc_main_run                         (gint *argc,
                                                         gchar **argv[]);

Object Hierarchy

  GObject
   +----GApplication
         +----GtkApplication
               +----RCMainApplication

Implemented Interfaces

RCMainApplication implements GActionGroup and GActionMap.

Description

The RCMainApplication is a class which inherits GtkApplication. It manages the initialization, startup, running, and uninitialzation of the program.

It also provides some utility functions.

Details

struct RCMainApplication

struct RCMainApplication;

The data structure used for RCMainApplication class.


struct RCMainApplicationClass

struct RCMainApplicationClass {
};

RCMainApplicationClass class.


rc_main_exit ()

void                rc_main_exit                        ();

Exit from the player, save configure data and release all used resources.


rc_main_get_data_dir ()

const gchar *       rc_main_get_data_dir                ();

Get the program data directory path of the player.

Returns :

the program data directory path.

rc_main_get_user_dir ()

const gchar *       rc_main_get_user_dir                ();

Get the user data directory path of the player. (should be ~/.RhythmCat2)

Returns :

the user data directory path.

rc_main_run ()

gint                rc_main_run                         (gint *argc,
                                                         gchar **argv[]);

Start to run the player.

argc :

address of the argc parameter of your main() function (or 0 if argv is NULL). This will be changed if any arguments were handled. [inout]

argv :

address of the argv parameter of main(), or NULL. [array length=argc][inout][allow-none]

Returns :

The return value of the player.