## BViewGtk

BViewGtk — a GTK+ widget to display Blinkenlights

## Synopsis

    struct      BViewGtk;
    GtkWidget*  b_view_gtk_new                  (BTheme *theme,
                                                 GError **error);
    void        b_view_gtk_update               (BViewGtk *view,
                                                 const guchar *frame_data);

## Object Hierarchy

      GObject
       +----GtkObject
             +----GtkWidget
                   +----GtkDrawingArea
                         +----BViewGtk

## Implemented Interfaces

BViewGtk implements AtkImplementorIface.

## Description

## Details

### struct BViewGtk

    struct BViewGtk;

The BViewGtk struct shouldn't be accessed directly. Its members are considered private.

### b_view_gtk_new ()

    GtkWidget*  b_view_gtk_new                  (BTheme *theme,
                                                 GError **error);

Creates a new widget suitable to display Blinkenlights movies that fit the `theme`.

`theme` : | a BTheme object
`error` : | location to store the error occuring, or `NULL` to ignore errors
Returns : | a new widget or `NULL` in case of an error

### b_view_gtk_update ()

    void        b_view_gtk_update               (BViewGtk *view,
                                                 const guchar *frame_data);

Displays a new frame on the `view`. The `view` expects `frame_data` in the range of 0 to 255.

`view` : | a BViewGtk widget
`frame_data` : | the frame data to display

## See Also

BViewDirectFB