CommonLibSSE NG
|
#include <GFxValue.h>
Classes | |
class | DisplayInfo |
class | ObjectInterface |
union | ValueUnion |
Public Types | |
enum class | ValueType { kUndefined = 0x00 , kNull = 0x01 , kBoolean = 0x02 , kNumber = 0x03 , kString = 0x04 , kStringW = 0x05 , kObject = 0x06 , kArray = 0x07 , kDisplayObject = 0x08 , kManagedBit = 1 << 6 , kConvertBit = 1 << 7 , kValueMask = 0x0F , kTypeMask = kConvertBit | kValueMask , kConvertBoolean = kConvertBit | kBoolean , kConvertNumber = kConvertBit | kNumber , kConvertString = kConvertBit | kString , kConvertStringW = kConvertBit | kStringW } |
using | ObjectVisitor = ObjectInterface::ObjVisitor |
using | ArrayVisitor = ObjectInterface::ArrVisitor |
using | ObjectVisitFn = std::function< void(const char *, const RE::GFxValue &)> |
Public Member Functions | |
GFxValue () | |
GFxValue (ValueType a_rhs) | |
GFxValue (std::nullptr_t) | |
GFxValue (double a_rhs) | |
GFxValue (bool a_rhs) | |
GFxValue (const char *a_rhs) | |
GFxValue (std::string_view a_rhs) | |
GFxValue (const wchar_t *a_rhs) | |
GFxValue (std::wstring_view a_rhs) | |
GFxValue (const GFxValue &a_rhs) | |
GFxValue (GFxValue &&a_rhs) | |
template<class T , std::enable_if_t< GFxValueImpl::is_integer_v< T >, int > = 0> | |
GFxValue (T a_val) | |
~GFxValue () | |
GFxValue & | operator= (std::nullptr_t) |
GFxValue & | operator= (double a_rhs) |
GFxValue & | operator= (bool a_rhs) |
GFxValue & | operator= (const char *a_rhs) |
GFxValue & | operator= (std::string_view a_rhs) |
GFxValue & | operator= (const wchar_t *a_rhs) |
GFxValue & | operator= (std::wstring_view a_rhs) |
GFxValue & | operator= (const GFxValue &a_rhs) |
GFxValue & | operator= (GFxValue &&a_rhs) |
template<class T , std::enable_if_t< GFxValueImpl::is_integer_v< T >, int > = 0> | |
GFxValue & | operator= (T a_val) |
bool | operator== (const GFxValue &a_rhs) const |
GString | ToString () const |
ValueType | GetType () const |
bool | IsUndefined () const |
bool | IsNull () const |
bool | IsBool () const |
bool | IsNumber () const |
bool | IsString () const |
bool | IsStringW () const |
bool | IsObject () const |
bool | IsArray () const |
bool | IsDisplayObject () const |
bool | GetBool () const |
double | GetNumber () const |
std::ptrdiff_t | GetSInt () const |
std::size_t | GetUInt () const |
const char * | GetString () const |
const wchar_t * | GetStringW () const |
void | SetUndefined () |
void | SetNull () |
void | SetBoolean (bool a_val) |
void | SetNumber (double a_val) |
void | SetString (const char *a_str) |
void | SetString (std::string_view a_str) |
void | SetStringW (const wchar_t *a_str) |
void | SetStringW (std::wstring_view a_str) |
void | SetConvertBoolean () |
void | SetConvertNumber () |
void | SetConvertString () |
void | SetConvertStringW () |
bool | HasMember (const char *a_name) const |
bool | GetMember (const char *a_name, GFxValue *a_val) const |
bool | SetMember (const char *a_name, const GFxValue &a_val) |
bool | Invoke (const char *a_name, GFxValue *a_result, const GFxValue *a_args, UPInt a_numArgs) |
bool | Invoke (const char *a_name, GFxValue *a_result=nullptr) |
bool | DeleteMember (const char *a_name) |
void | VisitMembers (ObjectVisitor *a_visitor) const |
void | VisitMembers (ObjectVisitFn &&a_visitor) const |
template<std::size_t N> | |
bool | Invoke (const char *a_name, const std::array< GFxValue, N > &a_args) |
template<std::size_t N> | |
bool | Invoke (const char *a_name, GFxValue *a_result, const std::array< GFxValue, N > &a_args) |
std::uint32_t | GetArraySize () const |
bool | SetArraySize (std::uint32_t a_size) |
bool | GetElement (std::uint32_t a_idx, GFxValue *a_val) const |
bool | SetElement (std::uint32_t a_idx, const GFxValue &a_val) |
bool | PushBack (const GFxValue &a_val) |
bool | RemoveElements (std::uint32_t a_idx, std::int32_t a_count=-1) |
bool | RemoveElement (std::uint32_t a_idx) |
bool | ClearElements () |
bool | GetDisplayInfo (DisplayInfo *a_info) const |
bool | SetDisplayInfo (const DisplayInfo &a_info) |
bool | GetDisplayMatrix (GMatrix2D *a_mat) const |
bool | SetDisplayMatrix (const GMatrix2D &a_mat) |
bool | GetCxform (GRenderer::Cxform *a_cx) const |
bool | SetCxform (const GRenderer::Cxform &a_cx) |
bool | SetText (const char *a_text) |
bool | SetTextHTML (const char *a_html) |
bool | AttachMovie (GFxValue *a_movieClip, const char *a_symbolName, const char *a_instanceName, std::int32_t a_depth=-1, const GFxValue *a_initObj=nullptr) |
bool | GotoAndPlay (const char *a_frame) |
bool | GotoAndStop (const char *a_frame) |
GFC_MEMORY_REDEFINE_NEW (GFxValue, GStatGroups::kGStatGroup_Default) | |
Protected Member Functions | |
bool | IsManagedValue () const |
void | AcquireManagedValue (const GFxValue &a_rhs) |
void | ReleaseManagedValue () |
void | ChangeType (ValueType a_type) |
Protected Attributes | |
ObjectInterface * | _objectInterface |
stl::enumeration< ValueType, std::uint32_t > | _type |
std::uint32_t | _pad0C |
ValueUnion | _value |
Friends | |
class | GFxMovieRoot |
using RE::GFxValue::ObjectVisitFn = std::function<void(const char*, const RE::GFxValue&)> |
|
strong |
RE::GFxValue::GFxValue | ( | ) |
RE::GFxValue::GFxValue | ( | ValueType | a_rhs | ) |
RE::GFxValue::GFxValue | ( | std::nullptr_t | ) |
RE::GFxValue::GFxValue | ( | double | a_rhs | ) |
RE::GFxValue::GFxValue | ( | bool | a_rhs | ) |
RE::GFxValue::GFxValue | ( | const char * | a_rhs | ) |
RE::GFxValue::GFxValue | ( | std::string_view | a_rhs | ) |
RE::GFxValue::GFxValue | ( | const wchar_t * | a_rhs | ) |
RE::GFxValue::GFxValue | ( | std::wstring_view | a_rhs | ) |
RE::GFxValue::GFxValue | ( | const GFxValue & | a_rhs | ) |
RE::GFxValue::GFxValue | ( | GFxValue && | a_rhs | ) |
|
inline |
RE::GFxValue::~GFxValue | ( | ) |
|
protected |
bool RE::GFxValue::AttachMovie | ( | GFxValue * | a_movieClip, |
const char * | a_symbolName, | ||
const char * | a_instanceName, | ||
std::int32_t | a_depth = -1 , |
||
const GFxValue * | a_initObj = nullptr |
||
) |
|
protected |
bool RE::GFxValue::ClearElements | ( | ) |
bool RE::GFxValue::DeleteMember | ( | const char * | a_name | ) |
std::uint32_t RE::GFxValue::GetArraySize | ( | ) | const |
bool RE::GFxValue::GetBool | ( | ) | const |
bool RE::GFxValue::GetCxform | ( | GRenderer::Cxform * | a_cx | ) | const |
bool RE::GFxValue::GetDisplayInfo | ( | DisplayInfo * | a_info | ) | const |
bool RE::GFxValue::GetDisplayMatrix | ( | GMatrix2D * | a_mat | ) | const |
bool RE::GFxValue::GetElement | ( | std::uint32_t | a_idx, |
GFxValue * | a_val | ||
) | const |
bool RE::GFxValue::GetMember | ( | const char * | a_name, |
GFxValue * | a_val | ||
) | const |
double RE::GFxValue::GetNumber | ( | ) | const |
std::ptrdiff_t RE::GFxValue::GetSInt | ( | ) | const |
const char * RE::GFxValue::GetString | ( | ) | const |
const wchar_t * RE::GFxValue::GetStringW | ( | ) | const |
ValueType RE::GFxValue::GetType | ( | ) | const |
std::size_t RE::GFxValue::GetUInt | ( | ) | const |
RE::GFxValue::GFC_MEMORY_REDEFINE_NEW | ( | GFxValue | , |
GStatGroups::kGStatGroup_Default | |||
) |
bool RE::GFxValue::GotoAndPlay | ( | const char * | a_frame | ) |
bool RE::GFxValue::GotoAndStop | ( | const char * | a_frame | ) |
bool RE::GFxValue::HasMember | ( | const char * | a_name | ) | const |
|
inline |
bool RE::GFxValue::Invoke | ( | const char * | a_name, |
GFxValue * | a_result, | ||
const GFxValue * | a_args, | ||
UPInt | a_numArgs | ||
) |
|
inline |
bool RE::GFxValue::Invoke | ( | const char * | a_name, |
GFxValue * | a_result = nullptr |
||
) |
bool RE::GFxValue::IsArray | ( | ) | const |
bool RE::GFxValue::IsBool | ( | ) | const |
bool RE::GFxValue::IsDisplayObject | ( | ) | const |
|
protected |
bool RE::GFxValue::IsNull | ( | ) | const |
bool RE::GFxValue::IsNumber | ( | ) | const |
bool RE::GFxValue::IsObject | ( | ) | const |
bool RE::GFxValue::IsString | ( | ) | const |
bool RE::GFxValue::IsStringW | ( | ) | const |
bool RE::GFxValue::IsUndefined | ( | ) | const |
GFxValue & RE::GFxValue::operator= | ( | bool | a_rhs | ) |
GFxValue & RE::GFxValue::operator= | ( | const char * | a_rhs | ) |
GFxValue & RE::GFxValue::operator= | ( | const wchar_t * | a_rhs | ) |
GFxValue & RE::GFxValue::operator= | ( | double | a_rhs | ) |
GFxValue & RE::GFxValue::operator= | ( | std::nullptr_t | ) |
GFxValue & RE::GFxValue::operator= | ( | std::string_view | a_rhs | ) |
GFxValue & RE::GFxValue::operator= | ( | std::wstring_view | a_rhs | ) |
|
inline |
bool RE::GFxValue::operator== | ( | const GFxValue & | a_rhs | ) | const |
bool RE::GFxValue::PushBack | ( | const GFxValue & | a_val | ) |
|
protected |
bool RE::GFxValue::RemoveElement | ( | std::uint32_t | a_idx | ) |
bool RE::GFxValue::RemoveElements | ( | std::uint32_t | a_idx, |
std::int32_t | a_count = -1 |
||
) |
bool RE::GFxValue::SetArraySize | ( | std::uint32_t | a_size | ) |
void RE::GFxValue::SetBoolean | ( | bool | a_val | ) |
void RE::GFxValue::SetConvertBoolean | ( | ) |
void RE::GFxValue::SetConvertNumber | ( | ) |
void RE::GFxValue::SetConvertString | ( | ) |
void RE::GFxValue::SetConvertStringW | ( | ) |
bool RE::GFxValue::SetCxform | ( | const GRenderer::Cxform & | a_cx | ) |
bool RE::GFxValue::SetDisplayInfo | ( | const DisplayInfo & | a_info | ) |
bool RE::GFxValue::SetDisplayMatrix | ( | const GMatrix2D & | a_mat | ) |
bool RE::GFxValue::SetElement | ( | std::uint32_t | a_idx, |
const GFxValue & | a_val | ||
) |
bool RE::GFxValue::SetMember | ( | const char * | a_name, |
const GFxValue & | a_val | ||
) |
void RE::GFxValue::SetNull | ( | ) |
void RE::GFxValue::SetNumber | ( | double | a_val | ) |
void RE::GFxValue::SetString | ( | const char * | a_str | ) |
void RE::GFxValue::SetString | ( | std::string_view | a_str | ) |
void RE::GFxValue::SetStringW | ( | const wchar_t * | a_str | ) |
void RE::GFxValue::SetStringW | ( | std::wstring_view | a_str | ) |
bool RE::GFxValue::SetText | ( | const char * | a_text | ) |
bool RE::GFxValue::SetTextHTML | ( | const char * | a_html | ) |
void RE::GFxValue::SetUndefined | ( | ) |
GString RE::GFxValue::ToString | ( | ) | const |
void RE::GFxValue::VisitMembers | ( | ObjectVisitFn && | a_visitor | ) | const |
void RE::GFxValue::VisitMembers | ( | ObjectVisitor * | a_visitor | ) | const |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |