CommonLibSSE NG
Loading...
Searching...
No Matches
RE::GFxValue Class Reference

#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 ()
 
GFxValueoperator= (std::nullptr_t)
 
GFxValueoperator= (double a_rhs)
 
GFxValueoperator= (bool a_rhs)
 
GFxValueoperator= (const char *a_rhs)
 
GFxValueoperator= (std::string_view a_rhs)
 
GFxValueoperator= (const wchar_t *a_rhs)
 
GFxValueoperator= (std::wstring_view a_rhs)
 
GFxValueoperator= (const GFxValue &a_rhs)
 
GFxValueoperator= (GFxValue &&a_rhs)
 
template<class T , std::enable_if_t< GFxValueImpl::is_integer_v< T >, int > = 0>
GFxValueoperator= (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
 

Member Typedef Documentation

◆ ArrayVisitor

◆ ObjectVisitFn

using RE::GFxValue::ObjectVisitFn = std::function<void(const char*, const RE::GFxValue&)>

◆ ObjectVisitor

Member Enumeration Documentation

◆ ValueType

enum class RE::GFxValue::ValueType
strong
Enumerator
kUndefined 
kNull 
kBoolean 
kNumber 
kString 
kStringW 
kObject 
kArray 
kDisplayObject 
kManagedBit 
kConvertBit 
kValueMask 
kTypeMask 
kConvertBoolean 
kConvertNumber 
kConvertString 
kConvertStringW 

Constructor & Destructor Documentation

◆ GFxValue() [1/12]

RE::GFxValue::GFxValue ( )

◆ GFxValue() [2/12]

RE::GFxValue::GFxValue ( ValueType  a_rhs)

◆ GFxValue() [3/12]

RE::GFxValue::GFxValue ( std::nullptr_t  )

◆ GFxValue() [4/12]

RE::GFxValue::GFxValue ( double  a_rhs)

◆ GFxValue() [5/12]

RE::GFxValue::GFxValue ( bool  a_rhs)

◆ GFxValue() [6/12]

RE::GFxValue::GFxValue ( const char *  a_rhs)

◆ GFxValue() [7/12]

RE::GFxValue::GFxValue ( std::string_view  a_rhs)

◆ GFxValue() [8/12]

RE::GFxValue::GFxValue ( const wchar_t *  a_rhs)

◆ GFxValue() [9/12]

RE::GFxValue::GFxValue ( std::wstring_view  a_rhs)

◆ GFxValue() [10/12]

RE::GFxValue::GFxValue ( const GFxValue a_rhs)

◆ GFxValue() [11/12]

RE::GFxValue::GFxValue ( GFxValue &&  a_rhs)

◆ GFxValue() [12/12]

template<class T , std::enable_if_t< GFxValueImpl::is_integer_v< T >, int > = 0>
RE::GFxValue::GFxValue ( a_val)
inline

◆ ~GFxValue()

RE::GFxValue::~GFxValue ( )

Member Function Documentation

◆ AcquireManagedValue()

void RE::GFxValue::AcquireManagedValue ( const GFxValue a_rhs)
protected

◆ AttachMovie()

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 
)

◆ ChangeType()

void RE::GFxValue::ChangeType ( ValueType  a_type)
protected

◆ ClearElements()

bool RE::GFxValue::ClearElements ( )

◆ DeleteMember()

bool RE::GFxValue::DeleteMember ( const char *  a_name)

◆ GetArraySize()

std::uint32_t RE::GFxValue::GetArraySize ( ) const

◆ GetBool()

bool RE::GFxValue::GetBool ( ) const

◆ GetCxform()

bool RE::GFxValue::GetCxform ( GRenderer::Cxform a_cx) const

◆ GetDisplayInfo()

bool RE::GFxValue::GetDisplayInfo ( DisplayInfo a_info) const

◆ GetDisplayMatrix()

bool RE::GFxValue::GetDisplayMatrix ( GMatrix2D a_mat) const

◆ GetElement()

bool RE::GFxValue::GetElement ( std::uint32_t  a_idx,
GFxValue a_val 
) const

◆ GetMember()

bool RE::GFxValue::GetMember ( const char *  a_name,
GFxValue a_val 
) const

◆ GetNumber()

double RE::GFxValue::GetNumber ( ) const

◆ GetSInt()

std::ptrdiff_t RE::GFxValue::GetSInt ( ) const

◆ GetString()

const char * RE::GFxValue::GetString ( ) const

◆ GetStringW()

const wchar_t * RE::GFxValue::GetStringW ( ) const

◆ GetType()

ValueType RE::GFxValue::GetType ( ) const

◆ GetUInt()

std::size_t RE::GFxValue::GetUInt ( ) const

◆ GFC_MEMORY_REDEFINE_NEW()

RE::GFxValue::GFC_MEMORY_REDEFINE_NEW ( GFxValue  ,
GStatGroups::kGStatGroup_Default   
)

◆ GotoAndPlay()

bool RE::GFxValue::GotoAndPlay ( const char *  a_frame)

◆ GotoAndStop()

bool RE::GFxValue::GotoAndStop ( const char *  a_frame)

◆ HasMember()

bool RE::GFxValue::HasMember ( const char *  a_name) const

◆ Invoke() [1/4]

template<std::size_t N>
bool RE::GFxValue::Invoke ( const char *  a_name,
const std::array< GFxValue, N > &  a_args 
)
inline

◆ Invoke() [2/4]

bool RE::GFxValue::Invoke ( const char *  a_name,
GFxValue a_result,
const GFxValue a_args,
UPInt  a_numArgs 
)

◆ Invoke() [3/4]

template<std::size_t N>
bool RE::GFxValue::Invoke ( const char *  a_name,
GFxValue a_result,
const std::array< GFxValue, N > &  a_args 
)
inline

◆ Invoke() [4/4]

bool RE::GFxValue::Invoke ( const char *  a_name,
GFxValue a_result = nullptr 
)

◆ IsArray()

bool RE::GFxValue::IsArray ( ) const

◆ IsBool()

bool RE::GFxValue::IsBool ( ) const

◆ IsDisplayObject()

bool RE::GFxValue::IsDisplayObject ( ) const

◆ IsManagedValue()

bool RE::GFxValue::IsManagedValue ( ) const
protected

◆ IsNull()

bool RE::GFxValue::IsNull ( ) const

◆ IsNumber()

bool RE::GFxValue::IsNumber ( ) const

◆ IsObject()

bool RE::GFxValue::IsObject ( ) const

◆ IsString()

bool RE::GFxValue::IsString ( ) const

◆ IsStringW()

bool RE::GFxValue::IsStringW ( ) const

◆ IsUndefined()

bool RE::GFxValue::IsUndefined ( ) const

◆ operator=() [1/10]

GFxValue & RE::GFxValue::operator= ( bool  a_rhs)

◆ operator=() [2/10]

GFxValue & RE::GFxValue::operator= ( const char *  a_rhs)

◆ operator=() [3/10]

GFxValue & RE::GFxValue::operator= ( const GFxValue a_rhs)

◆ operator=() [4/10]

GFxValue & RE::GFxValue::operator= ( const wchar_t *  a_rhs)

◆ operator=() [5/10]

GFxValue & RE::GFxValue::operator= ( double  a_rhs)

◆ operator=() [6/10]

GFxValue & RE::GFxValue::operator= ( GFxValue &&  a_rhs)

◆ operator=() [7/10]

GFxValue & RE::GFxValue::operator= ( std::nullptr_t  )

◆ operator=() [8/10]

GFxValue & RE::GFxValue::operator= ( std::string_view  a_rhs)

◆ operator=() [9/10]

GFxValue & RE::GFxValue::operator= ( std::wstring_view  a_rhs)

◆ operator=() [10/10]

template<class T , std::enable_if_t< GFxValueImpl::is_integer_v< T >, int > = 0>
GFxValue & RE::GFxValue::operator= ( a_val)
inline

◆ operator==()

bool RE::GFxValue::operator== ( const GFxValue a_rhs) const

◆ PushBack()

bool RE::GFxValue::PushBack ( const GFxValue a_val)

◆ ReleaseManagedValue()

void RE::GFxValue::ReleaseManagedValue ( )
protected

◆ RemoveElement()

bool RE::GFxValue::RemoveElement ( std::uint32_t  a_idx)

◆ RemoveElements()

bool RE::GFxValue::RemoveElements ( std::uint32_t  a_idx,
std::int32_t  a_count = -1 
)

◆ SetArraySize()

bool RE::GFxValue::SetArraySize ( std::uint32_t  a_size)

◆ SetBoolean()

void RE::GFxValue::SetBoolean ( bool  a_val)

◆ SetConvertBoolean()

void RE::GFxValue::SetConvertBoolean ( )

◆ SetConvertNumber()

void RE::GFxValue::SetConvertNumber ( )

◆ SetConvertString()

void RE::GFxValue::SetConvertString ( )

◆ SetConvertStringW()

void RE::GFxValue::SetConvertStringW ( )

◆ SetCxform()

bool RE::GFxValue::SetCxform ( const GRenderer::Cxform a_cx)

◆ SetDisplayInfo()

bool RE::GFxValue::SetDisplayInfo ( const DisplayInfo a_info)

◆ SetDisplayMatrix()

bool RE::GFxValue::SetDisplayMatrix ( const GMatrix2D a_mat)

◆ SetElement()

bool RE::GFxValue::SetElement ( std::uint32_t  a_idx,
const GFxValue a_val 
)

◆ SetMember()

bool RE::GFxValue::SetMember ( const char *  a_name,
const GFxValue a_val 
)

◆ SetNull()

void RE::GFxValue::SetNull ( )

◆ SetNumber()

void RE::GFxValue::SetNumber ( double  a_val)

◆ SetString() [1/2]

void RE::GFxValue::SetString ( const char *  a_str)

◆ SetString() [2/2]

void RE::GFxValue::SetString ( std::string_view  a_str)

◆ SetStringW() [1/2]

void RE::GFxValue::SetStringW ( const wchar_t *  a_str)

◆ SetStringW() [2/2]

void RE::GFxValue::SetStringW ( std::wstring_view  a_str)

◆ SetText()

bool RE::GFxValue::SetText ( const char *  a_text)

◆ SetTextHTML()

bool RE::GFxValue::SetTextHTML ( const char *  a_html)

◆ SetUndefined()

void RE::GFxValue::SetUndefined ( )

◆ ToString()

GString RE::GFxValue::ToString ( ) const

◆ VisitMembers() [1/2]

void RE::GFxValue::VisitMembers ( ObjectVisitFn &&  a_visitor) const

◆ VisitMembers() [2/2]

void RE::GFxValue::VisitMembers ( ObjectVisitor a_visitor) const

Friends And Related Symbol Documentation

◆ GFxMovieRoot

friend class GFxMovieRoot
friend

Member Data Documentation

◆ _objectInterface

ObjectInterface* RE::GFxValue::_objectInterface
protected

◆ _pad0C

std::uint32_t RE::GFxValue::_pad0C
protected

◆ _type

stl::enumeration<ValueType, std::uint32_t> RE::GFxValue::_type
protected

◆ _value

ValueUnion RE::GFxValue::_value
protected

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