BViewDirectFB

BViewDirectFB — a DirectFB widget to display Blinkenlights

Synopsis




struct      BViewDirectFB;
BViewDirectFB* b_view_directfb_new          (BTheme *theme,
                                             IDirectFB *dfb,
                                             IDirectFBSurface *dest,
                                             GError **error);
void        b_view_directfb_update          (BViewDirectFB *view,
                                             const guchar *frame_data);

Object Hierarchy


  GObject
   +----BViewDirectFB

Description

Details

struct BViewDirectFB

struct BViewDirectFB;

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


b_view_directfb_new ()

BViewDirectFB* b_view_directfb_new          (BTheme *theme,
                                             IDirectFB *dfb,
                                             IDirectFBSurface *dest,
                                             GError **error);

Creates a new BViewDirectFB object suitable to display Blinkenlights movies that fit the theme. The view will render to the dest surface. If its size doesn't fit the screen size specified in the theme, the view is drawn centered on the dest surface.

theme : a BTheme object
dfb : the DirectFB super interface
dest : the destination surface
error : location to store the error occuring, or NULL to ignore errors
Returns : a new BViewDirectFB or NULL in case of an error

b_view_directfb_update ()

void        b_view_directfb_update          (BViewDirectFB *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 BViewDirectFB object
frame_data : the frame data to display

See Also

BViewGtk