ConstColorValue Class Reference
 
 
 
ConstColorValue Class Reference

#include <colors.h>

Public Member Functions

ScripterExport  ConstColorValue (float r, float g, float b, float a=1.0f)
ScripterExport  ~ConstColorValue ()
void  collect ()
BOOL  is_const ()
Value set_red (Value **arg_list, int count)
Value set_green (Value **arg_list, int count)
Value set_blue (Value **arg_list, int count)
Value set_alpha (Value **arg_list, int count)
Value set_hue (Value **arg_list, int count)
Value set_h (Value **arg_list, int count)
Value set_saturation (Value **arg_list, int count)
Value set_value (Value **arg_list, int count)

Constructor & Destructor Documentation

ScripterExport ConstColorValue ( float  r,
float  g,
float  b,
float  a = 1.0f 
)
ScripterExport ~ConstColorValue ( )

Member Function Documentation

void collect ( )
BOOL is_const ( ) [inline]
{ return TRUE; }
Value* set_red ( Value **  arg_list,
int  count 
) [inline]
{ throw RuntimeError (_M("Constant color, not settable")); return NULL; }
Value* set_green ( Value **  arg_list,
int  count 
) [inline]
{ throw RuntimeError (_M("Constant color, not settable")); return NULL; }
Value* set_blue ( Value **  arg_list,
int  count 
) [inline]
{ throw RuntimeError (_M("Constant color, not settable")); return NULL; }
Value* set_alpha ( Value **  arg_list,
int  count 
) [inline]
{ throw RuntimeError (_M("Constant color, not settable")); return NULL; }
Value* set_hue ( Value **  arg_list,
int  count 
) [inline]
{ throw RuntimeError (_M("Constant color, not settable")); return NULL; }
Value* set_h ( Value **  arg_list,
int  count 
) [inline]
{ throw RuntimeError (_M("Constant color, not settable")); return NULL; }
Value* set_saturation ( Value **  arg_list,
int  count 
) [inline]
{ throw RuntimeError (_M("Constant color, not settable")); return NULL; }
Value* set_value ( Value **  arg_list,
int  count 
) [inline]
{ throw RuntimeError (_M("Constant color, not settable")); return NULL; }