g13 tux logo   g13

G13::Device Class Reference
[G13 C++ Library]

#include <device.h>

List of all members.

Public Types

typedef G13Pointer< Devicepointer

Public Member Functions

 ~Device ()
std::string name ()
int set_name (const std::string &name)
int led (int which)
int set_led (int which, bool on=true)
int set_m1 (bool enabled=true)
int set_m2 (bool enabled=true)
int set_m3 (bool enabled=true)
int set_mr (bool enabled=true)
Color backlight ()
int set_backlight (const Color &color)
int set_backlight (unsigned r, unsigned g, unsigned b)
g13_devicecobj ()

Static Public Member Functions

static pointer create (g13_device *cobj)
static pointer create (g13_list_entry *list_entry)
static pointer create (const std::string &name)

Protected Member Functions

 Device (g13_device *cobj)

Protected Attributes


Member Typedef Documentation

typedef G13Pointer<Device> G13::Device::pointer

Constructor & Destructor Documentation

G13::Device::Device ( g13_device cobj  )  [protected]

References g13_device_ref(), and m_cobj.

Referenced by create().

G13::Device::~Device (  ) 

References g13_device_unref(), and m_cobj.

Member Function Documentation

Color G13::Device::backlight (  ) 
g13_device * G13::Device::cobj (  ) 

References m_cobj.

Referenced by create().

Device::pointer G13::Device::create ( const std::string &  name  )  [static]
Device::pointer G13::Device::create ( g13_list_entry list_entry  )  [static]
Device::pointer G13::Device::create ( g13_device cobj  )  [static]

References Device().

int G13::Device::led ( int  which  ) 

References g13_device_get_led(), and m_cobj.

std::string G13::Device::name (  ) 
int G13::Device::set_backlight ( unsigned  r,
unsigned  g,
unsigned  b 
int G13::Device::set_backlight ( const Color color  ) 
int G13::Device::set_led ( int  which,
bool  on = true 

References g13_device_set_led(), and m_cobj.

int G13::Device::set_m1 ( bool  enabled = true  ) 
int G13::Device::set_m2 ( bool  enabled = true  ) 
int G13::Device::set_m3 ( bool  enabled = true  ) 
int G13::Device::set_mr ( bool  enabled = true  ) 
int G13::Device::set_name ( const std::string &  name  ) 

References g13_device_set_name(), and m_cobj.

Member Data Documentation

The documentation for this class was generated from the following files:

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