RCUiSpectrumWidget

RCUiSpectrumWidget — A spectrum show widget.

Synopsis

#include <rc-ui-slabel.h>

enum                RCUiSpectrumStyle;
struct              RCUiSpectrumWidget;
struct              RCUiSpectrumWidgetClass;
#define             RC_UI_SPECTRUM_WIDGET_TYPE
void                rc_ui_spectrum_widget_clean         (RCUiSpectrumWidget *spectrum);
guint               rc_ui_spectrum_widget_get_fps       (RCUiSpectrumWidget *spectrum);
RCUiSpectrumStyle   rc_ui_spectrum_widget_get_style     (RCUiSpectrumWidget *spectrum);
GtkWidget *         rc_ui_spectrum_widget_new           ();
void                rc_ui_spectrum_widget_set_fps       (RCUiSpectrumWidget *spectrum,
                                                         guint fps);
void                rc_ui_spectrum_widget_set_style     (RCUiSpectrumWidget *spectrum,
                                                         RCUiSpectrumStyle style);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----RCUiSpectrumWidget

Implemented Interfaces

RCUiSpectrumWidget implements AtkImplementorIface and GtkBuildable.

Description

The spectrum show widget. It shows the spectrum gragh in the player.

Details

enum RCUiSpectrumStyle

typedef enum {
    RC_UI_SPECTRUM_STYLE_NONE,
    RC_UI_SPECTRUM_STYLE_WAVE_MONO,
    RC_UI_SPECTRUM_STYLE_WAVE_MULTI,
    RC_UI_SPECTRUM_STYLE_SPECTRUM,
} RCUiSpectrumStyle;

The visualizer style of the spectrum widget.

RC_UI_SPECTRUM_STYLE_NONE

no visualizer

RC_UI_SPECTRUM_STYLE_WAVE_MONO

wavescope style visualizer (mono channel)

RC_UI_SPECTRUM_STYLE_WAVE_MULTI

wavescope style visualizer (multi-channel)

RC_UI_SPECTRUM_STYLE_SPECTRUM

spectrum style visualizer

struct RCUiSpectrumWidget

struct RCUiSpectrumWidget;

The structure used in object.


struct RCUiSpectrumWidgetClass

struct RCUiSpectrumWidgetClass {
};

The class data.


RC_UI_SPECTRUM_WIDGET_TYPE

#define RC_UI_SPECTRUM_WIDGET_TYPE (rc_ui_spectrum_widget_get_type())

rc_ui_spectrum_widget_clean ()

void                rc_ui_spectrum_widget_clean         (RCUiSpectrumWidget *spectrum);

Clean the spectrum widget.

spectrum :

the RCUiSpectrumWidget widget

rc_ui_spectrum_widget_get_fps ()

guint               rc_ui_spectrum_widget_get_fps       (RCUiSpectrumWidget *spectrum);

Get the refresh frequency (frames per second) of the widget.

spectrum :

the RCUiSpectrumWidget widget

Returns :

The refresh frequency.

rc_ui_spectrum_widget_get_style ()

RCUiSpectrumStyle   rc_ui_spectrum_widget_get_style     (RCUiSpectrumWidget *spectrum);

Get the spectrum style of the spectrum widget.

spectrum :

the RCUiSpectrumWidget widget

Returns :

The spectrum style.

rc_ui_spectrum_widget_new ()

GtkWidget *         rc_ui_spectrum_widget_new           ();

Create a new RCUiSpectrumWidget widget.

Returns :

A new RCUiSpectrumWidget widget.

rc_ui_spectrum_widget_set_fps ()

void                rc_ui_spectrum_widget_set_fps       (RCUiSpectrumWidget *spectrum,
                                                         guint fps);

Set the refresh frequency of the widget.

spectrum :

the RCUiSpectrumWidget widget

fps :

the update frequency (frames per second), from 10 to 60

rc_ui_spectrum_widget_set_style ()

void                rc_ui_spectrum_widget_set_style     (RCUiSpectrumWidget *spectrum,
                                                         RCUiSpectrumStyle style);

Set the spectrum style of the spectrum widget.

spectrum :

the RCUiSpectrumWidget widget

style :

the spectrum show style