![]() |
![]() |
![]() |
RhythmCat Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
#include <rc-ui-player.h> struct RCUiPlayer; struct RCUiPlayerClass; void rc_ui_player_exit (); GdkPixbuf * rc_ui_player_get_icon_image (); GObject * rc_ui_player_get_instance (); GtkWidget * rc_ui_player_get_main_window (); GtkStatusIcon * rc_ui_player_get_tray_icon (); void rc_ui_player_init (GtkApplication *app
); gulong rc_ui_player_signal_connect (const gchar *name
,GCallback callback
,gpointer data
); void rc_ui_player_signal_disconnect (gulong handler_id
);
This module provides the main UI of the player, it shows the main player window and the widgets inside for the player.
GdkPixbuf * rc_ui_player_get_icon_image ();
Get the icon image of this player.
Returns : |
The icon image of this player. [transfer none] |
GObject * rc_ui_player_get_instance ();
Get the running RCUiPlayer instance.
Returns : |
The running instance. [transfer none] |
GtkWidget * rc_ui_player_get_main_window ();
Get the main window of this player.
Returns : |
The main window. [transfer none] |
GtkStatusIcon * rc_ui_player_get_tray_icon ();
Get the tray icon of this player.
Returns : |
The tray icon. [transfer none] |
void rc_ui_player_init (GtkApplication *app
);
Initialize the main UI of the player.
|
the GtkApplication for the program |
gulong rc_ui_player_signal_connect (const gchar *name
,GCallback callback
,gpointer data
);
Connect the GCallback function to the given signal for the running instance of RCUiPlayer object.
|
the name of the signal |
|
the the GCallback to connect. [scope call] |
|
the user data |
Returns : |
The handler ID. |
void rc_ui_player_signal_disconnect (gulong handler_id
);
Disconnects a handler from the running RCUiPlayer instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to. The handler_id becomes invalid and may be reused.
|
handler id of the handler to be disconnected |
"ready"
signalvoid user_function (RCUiPlayer *player,
gpointer user_data) : Run First
The ::ready signal is emitted when the main UI is ready.
|
the RCUiPlayer that received the signal |
|
user data set when the signal handler was connected. |