g13 tux logo   g13

backlight.h File Reference

#include <g13/udev.h>
Include dependency graph for backlight.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int g13_device_get_backlight_rgb (g13_device *device, unsigned *r, unsigned *g, unsigned *b)
 Get the current backlight color as an RGB value.
int g13_device_set_backlight_rgb (g13_device *device, unsigned r, unsigned g, unsigned b)
 Set the backlight color to the specified RGB value.

Function Documentation

int g13_device_set_backlight_rgb ( g13_device device,
unsigned  r,
unsigned  g,
unsigned  b 
)

Set the backlight color to the specified RGB value.

Returns:
0 if successful; on failure returns -1 and sets errno
Parameters:
r Red value from 0 to 255
g Green value from 0 to 255
b Blue value from 0 to 255

If r , g or b are greater than 255 they will be set to 255.

References g13_device_get_syspath().

Referenced by g13_device_set_state(), and G13::Device::set_backlight().


Generated on Wed Mar 24 10:13:17 2010 for g13 by doxygen 1.6.1