Pyro higlevel API
|
Public Member Functions | |
Variant () | |
Variant (int nValue) | |
Variant (int64 nValue) | |
Variant (float vValue) | |
Variant (double vValue) | |
Variant (bool bValue) | |
Variant (const String &cString) | |
Variant (const Point &cValue) | |
Variant (const IPoint &cValue) | |
Variant (const Rect &cValue) | |
Variant (const IRect &cValue) | |
Variant (const Message &cValue) | |
Variant (const Color32 &cValue) | |
Variant (void *pValue) | |
Variant (void *pData, int nSize) | |
Variant (const Variant &cOther) | |
~Variant () | |
void | SetInt8 (int8 nValue) |
void | SetInt16 (int16 nValue) |
void | SetInt32 (int32 nValue) |
void | SetInt64 (int64 nValue) |
void | SetFloat (float vValue) |
void | SetDouble (double vValue) |
void | SetBool (bool bValue) |
void | SetString (const String &cValue) |
void | SetPoint (const Point &cValue) |
void | SetIPoint (const IPoint &cValue) |
void | SetRect (const Rect &cValue) |
void | SetIRect (const IRect &cValue) |
void | SetColor32 (const Color32 &cValue) |
void | SetPointer (void *pValue) |
void | SetRaw (const void *pData, int nSize) |
int8 | AsInt8 () const |
int16 | AsInt16 () const |
int32 | AsInt32 () const |
int64 | AsInt64 () const |
float | AsFloat () const |
double | AsDouble () const |
bool | AsBool () const |
String | AsString () const |
Point | AsPoint () const |
IPoint | AsIPoint () const |
Rect | AsRect () const |
IRect | AsIRect () const |
Color32 | AsColor32 () const |
void * | AsPointer () const |
void * | AsRaw (size_t *pnSize) |
Variant & | operator= (int8 nValue) |
Variant & | operator= (int16 nValue) |
Variant & | operator= (int32 nValue) |
Variant & | operator= (int64 nValue) |
Variant & | operator= (float vValue) |
Variant & | operator= (double vValue) |
Variant & | operator= (bool bValue) |
Variant & | operator= (const String &cValue) |
Variant & | operator= (const Point &cValue) |
Variant & | operator= (const IPoint &cValue) |
Variant & | operator= (const Rect &cValue) |
Variant & | operator= (const IRect &cValue) |
Variant & | operator= (const Color32 &cValue) |
Variant & | operator= (const Variant &cValue) |
operator int () const | |
operator int64 () const | |
operator float () const | |
operator double () const | |
operator bool () const | |
operator String () const | |
operator Point () const | |
operator IPoint () const | |
operator Rect () const | |
operator IRect () const | |
operator Color32 () const | |
bool | operator== (const Variant &cValue) const |
bool | operator!= (const Variant &cValue) const |
size_t | GetFlattenedSize () const |
status_t | Flatten (void *pBuffer, size_t nBufSize) const |
status_t | Unflatten (const void *pBuffer, size_t nBufSize) |
Variant::Variant | ( | ) |
References os::T_ANY_TYPE.
Variant::Variant | ( | int | nValue | ) |
References os::T_INT32.
Variant::Variant | ( | int64 | nValue | ) |
References os::T_INT64.
Variant::Variant | ( | float | vValue | ) |
References os::T_FLOAT.
Variant::Variant | ( | double | vValue | ) |
References os::T_DOUBLE.
Variant::Variant | ( | bool | bValue | ) |
References os::T_BOOL.
Variant::Variant | ( | const String & | cString | ) |
References os::String::c_str(), os::String::size(), and os::T_STRING.
Variant::Variant | ( | const Point & | cValue | ) |
References HEAP_ALLOC, and os::T_POINT.
Variant::Variant | ( | const IPoint & | cValue | ) |
References HEAP_ALLOC, and os::T_IPOINT.
Variant::Variant | ( | const Rect & | cValue | ) |
References HEAP_ALLOC, and os::T_RECT.
Variant::Variant | ( | const IRect & | cValue | ) |
References HEAP_ALLOC, and os::T_IRECT.
Variant::Variant | ( | const Message & | cValue | ) |
References os::Message::Flatten(), os::Message::GetFlattenedSize(), and os::T_MESSAGE.
Variant::Variant | ( | const Color32 & | cValue | ) |
References HEAP_ALLOC, and os::T_COLOR32.
Variant::Variant | ( | void * | pValue | ) |
References os::T_POINTER.
Variant::Variant | ( | const Variant & | cOther | ) |
References os::T_ANY_TYPE.
Variant::~Variant | ( | ) |
bool Variant::AsBool | ( | ) | const |
References os::T_BOOL, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_POINTER, and os::T_STRING.
Referenced by os::ImageButton::Paint(), os::Button::Paint(), and os::RadioButton::PostValueChange().
Color32 Variant::AsColor32 | ( | ) | const |
References os::T_COLOR32, os::T_INT32, and os::T_INT64.
Referenced by os::ColorRequester::HandleMessage(), and operator==().
double Variant::AsDouble | ( | ) | const |
References os::T_BOOL, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_POINTER, and os::T_STRING.
Referenced by os::Spinner::Decrement(), os::Slider::GetProgressString(), and os::Spinner::Increment().
float Variant::AsFloat | ( | ) | const |
References os::T_BOOL, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_POINTER, and os::T_STRING.
Referenced by os::ScrollBar::PostValueChange().
int16 Variant::AsInt16 | ( | ) | const |
References os::T_BOOL, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_POINTER, and os::T_STRING.
int32 Variant::AsInt32 | ( | ) | const |
References os::T_BOOL, os::T_COLOR32, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_POINTER, and os::T_STRING.
int64 Variant::AsInt64 | ( | ) | const |
References os::T_BOOL, os::T_COLOR32, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_POINTER, and os::T_STRING.
int8 Variant::AsInt8 | ( | ) | const |
References os::T_BOOL, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_POINTER, and os::T_STRING.
IPoint Variant::AsIPoint | ( | ) | const |
References os::T_IPOINT, os::T_IRECT, os::T_POINT, and os::T_RECT.
Referenced by operator==().
IRect Variant::AsIRect | ( | ) | const |
References os::T_IPOINT, os::T_IRECT, os::T_POINT, and os::T_RECT.
Referenced by operator==().
Point Variant::AsPoint | ( | ) | const |
References os::T_IPOINT, os::T_IRECT, os::T_POINT, and os::T_RECT.
Referenced by operator==().
void * Variant::AsPointer | ( | ) | const |
References os::T_POINTER.
void * Variant::AsRaw | ( | size_t * | pnSize | ) |
References os::T_RAW.
Rect Variant::AsRect | ( | ) | const |
References os::T_IPOINT, os::T_IRECT, os::T_POINT, and os::T_RECT.
Referenced by operator==().
String Variant::AsString | ( | ) | const |
References os::Color32_s::alpha, os::Color32_s::blue, os::Rect::bottom, os::IRect::bottom, os::String::Format(), os::Color32_s::green, os::Rect::left, os::IRect::left, os::Color32_s::red, os::Rect::right, os::IRect::right, os::T_BOOL, os::T_COLOR32, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_IPOINT, os::T_IRECT, os::T_POINT, os::T_POINTER, os::T_RECT, os::T_STRING, os::Rect::top, os::IRect::top, os::Point::x, os::IPoint::x, os::Point::y, and os::IPoint::y.
Referenced by InfoWin::InfoWin(), and os::TextView::SetValue().
status_t Variant::Flatten | ( | void * | pBuffer, |
size_t | nBufSize | ||
) | const |
References GetFlattenedSize(), os::T_COLOR32, os::T_IPOINT, os::T_IRECT, os::T_MESSAGE, os::T_POINT, os::T_RAW, os::T_RECT, os::T_STRING, and os::T_VARIANT.
Referenced by os::Message::AddVariant(), and os::Settings::SetVariant().
size_t Variant::GetFlattenedSize | ( | void | ) | const |
References os::T_ANY_TYPE, os::T_BOOL, os::T_COLOR32, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_IPOINT, os::T_IRECT, os::T_MESSAGE, os::T_POINT, os::T_POINTER, os::T_RAW, os::T_RECT, os::T_STRING, and os::T_VARIANT.
Referenced by os::Message::AddVariant(), Flatten(), and os::Settings::SetVariant().
Variant::operator bool | ( | ) | const |
Variant::operator Color32 | ( | ) | const |
Variant::operator double | ( | ) | const |
Variant::operator float | ( | ) | const |
Variant::operator int | ( | ) | const |
Variant::operator int64 | ( | ) | const |
Variant::operator IPoint | ( | ) | const |
Variant::operator IRect | ( | ) | const |
Variant::operator Point | ( | ) | const |
Variant::operator Rect | ( | ) | const |
Variant::operator String | ( | ) | const |
bool Variant::operator!= | ( | const Variant & | cValue | ) | const |
Variant & Variant::operator= | ( | int16 | nValue | ) |
References SetInt16().
Variant & Variant::operator= | ( | int32 | nValue | ) |
References SetInt32().
Variant & Variant::operator= | ( | int64 | nValue | ) |
References SetInt64().
Variant & Variant::operator= | ( | float | vValue | ) |
References SetFloat().
Variant & Variant::operator= | ( | double | vValue | ) |
References SetDouble().
References SetString().
References SetPoint().
References SetIPoint().
References SetIRect().
References SetColor32().
References pzString, sBuffer, os::T_ANY_TYPE, os::T_COLOR32, os::T_IPOINT, os::T_IRECT, os::T_MESSAGE, os::T_POINT, os::T_RAW, os::T_RECT, os::T_STRING, and os::T_VARIANT.
bool Variant::operator== | ( | const Variant & | cValue | ) | const |
References AsColor32(), AsIPoint(), AsIRect(), AsPoint(), AsRect(), bBool, nInt32, nInt64, pData, pzString, sBuffer, os::T_ANY_TYPE, os::T_BOOL, os::T_COLOR32, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_IPOINT, os::T_IRECT, os::T_MESSAGE, os::T_POINT, os::T_POINTER, os::T_RAW, os::T_RECT, os::T_STRING, vDouble, and vFloat.
void Variant::SetBool | ( | bool | bValue | ) |
References os::T_BOOL.
Referenced by operator=().
void Variant::SetColor32 | ( | const Color32 & | cValue | ) |
References HEAP_ALLOC, and os::T_COLOR32.
Referenced by operator=().
void Variant::SetDouble | ( | double | vValue | ) |
References os::T_DOUBLE.
Referenced by operator=().
void Variant::SetFloat | ( | float | vValue | ) |
References os::T_FLOAT.
Referenced by operator=().
void Variant::SetInt16 | ( | int16 | nValue | ) |
References os::T_INT16.
Referenced by operator=().
void Variant::SetInt32 | ( | int32 | nValue | ) |
References os::T_INT32.
Referenced by operator=().
void Variant::SetInt64 | ( | int64 | nValue | ) |
References os::T_INT64.
Referenced by operator=().
void Variant::SetInt8 | ( | int8 | nValue | ) |
References os::T_INT8.
Referenced by operator=().
void Variant::SetIPoint | ( | const IPoint & | cValue | ) |
References HEAP_ALLOC, and os::T_IPOINT.
Referenced by operator=().
void Variant::SetIRect | ( | const IRect & | cValue | ) |
References HEAP_ALLOC, and os::T_IRECT.
Referenced by operator=().
void Variant::SetPoint | ( | const Point & | cValue | ) |
References HEAP_ALLOC, and os::T_POINT.
Referenced by operator=().
void Variant::SetPointer | ( | void * | pValue | ) |
References os::T_POINTER.
void Variant::SetRect | ( | const Rect & | cValue | ) |
References HEAP_ALLOC, and os::T_RECT.
Referenced by operator=().
void Variant::SetString | ( | const String & | cValue | ) |
References os::String::c_str(), os::String::size(), and os::T_STRING.
Referenced by operator=().
status_t Variant::Unflatten | ( | const void * | pBuffer, |
size_t | nBufSize | ||
) |
References nSize, pBuffer, os::T_ANY_TYPE, os::T_BOOL, os::T_COLOR32, os::T_DOUBLE, os::T_FLOAT, os::T_INT16, os::T_INT32, os::T_INT64, os::T_INT8, os::T_IPOINT, os::T_IRECT, os::T_MESSAGE, os::T_POINT, os::T_POINTER, os::T_RAW, os::T_RECT, os::T_STRING, and os::T_VARIANT.
Referenced by os::Message::FindVariant().
bool os::Variant::bBool |
Referenced by operator==().
int32 os::Variant::nInt32 |
Referenced by operator==().
int64 os::Variant::nInt64 |
Referenced by operator==().
size_t os::Variant::nSize |
Referenced by SetRaw(), Unflatten(), and Variant().
void* os::Variant::pBuffer |
Referenced by Unflatten().
void* os::Variant::pData |
Referenced by operator==().
char* os::Variant::pzString |
Referenced by operator=(), and operator==().
struct { ... } os::Variant::sBuffer |
Referenced by operator=(), and operator==().
double os::Variant::vDouble |
Referenced by operator==().
float os::Variant::vFloat |
Referenced by operator==().