## BModule Utilities

BModule Utilities — utility functions for BModule implementations

## Synopsis

    void        b_module_draw_point             (BModule *module,
                                                 gint x,
                                                 gint y,
                                                 guchar value);
    void        b_module_draw_line              (BModule *module,
                                                 gint x1,
                                                 gint y1,
                                                 gint x2,
                                                 gint y2,
                                                 guchar value);
    void        b_module_fill                   (BModule *module,
                                                 guchar value);

## Description

## Details

### b_module_draw_point ()

    void        b_module_draw_point             (BModule *module,
                                                 gint x,
                                                 gint y,
                                                 guchar value);

Draws a point to the `module`'s frame buffer. It is safe to specify coordinates outside the buffer.

`module` : | a BModule object
`x` : | x coordinate
`y` : | y coordinate
`value` : | the color to draw with

### b_module_draw_line ()

    void        b_module_draw_line              (BModule *module,
                                                 gint x1,
                                                 gint y1,
                                                 gint x2,
                                                 gint y2,
                                                 guchar value);

Draws a one-pixel wide line between two points to the module's frame buffer. The endpoints are included in the line. If the line exceeds the buffer, it is properly clipped.

`module` : | a BModule object
`x1` : | x coordinate of the start point
`y1` : | y coordinate of the start point
`x2` : | x coordinate of the end point
`y2` : | y coordinate of the end point
`value` : | the color to draw with

### b_module_fill ()

    void        b_module_fill                   (BModule *module,
                                                 guchar value);

Fills the module's framebuffer with `value`.

`module` : | a BModule object
`value` : | the color to draw with