1.7.2.9
Gameface
cohtml::AdjustPointer Class Reference
+ Inheritance diagram for cohtml::AdjustPointer:

Public Member Functions

 AdjustPointer (const char *name, int offset)
 
 AdjustPointer (const AdjustPointer &o)
 
virtual void * Bind (Binder *, void *object) const override
 Expose the property's name and value to a binder. More...
 
virtual void * BindValue (Binder *, void *object) const override
 Expose only the value of the property to a binder. More...
 
virtual void * Read (Binder *, void *object) const override
 Read the value from a binder. More...
 
virtual void * ReadValue (Binder *, void *object) const override
 Read only the value of the property from a binder. More...
 
virtual AdjustPointerClone () const override
 Clone the property. More...
 
virtual bool ToBoolean (void *object, bool *boolean) const override
 Convert the property value to a boolean. More...
 
virtual bool ToNumber (void *object, float *number) const override
 Convert the property value to a number. More...
 
virtual bool ToString (void *object, char *buffer, size_t *length) const override
 Convert the property value to a string value. More...
 
virtual bool ToColor (void *object, renoir::Color *color) const override
 Convert the property value to a color value. More...
 
virtual bool ToTransformMatrix2D (void *object, float matrix[6]) const override
 Convert the property value to a matrix. More...
 
virtual bool ToArray (Binder *binder, void *object, ArrayInfo *arrayInfo) const override
 Convert the property value to a array type information. More...
 
virtual bool ToPair (Binder *binder, void *object, PairInfo *pairInfo) const override
 Convert the property value to a pair type information. More...
 
virtual bool ToMap (Binder *binder, void *object, MapInfo *mapInfo) const override
 Convert the property value to a map type information. More...
 
virtual bool ToObject (Binder *binder, void *object, ObjectInfo *typeInfo) const override
 Convert the property value to a object type information. More...
 
- Public Member Functions inherited from cohtml::Property
 Property (const char *name, bool isByRef=true)
 Create a new property. More...
 
virtual ~Property ()
 
const char * GetName () const
 Get the name of the property. More...
 
bool IsByRef () const
 Can this property be exported By-Ref. Temporaries can not be exported by reference. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from cohtml::Property
static void *COHERENT_CDECL operator new (size_t bytes)
 
static void COHERENT_CDECL operator delete (void *memory)
 
static void *COHERENT_CDECL operator new[] (size_t bytes)
 
static void COHERENT_CDECL operator delete[] (void *memory)
 
- Protected Attributes inherited from cohtml::Property
const char * m_Name
 
bool m_IsByRef
 

Constructor & Destructor Documentation

◆ AdjustPointer() [1/2]

cohtml::AdjustPointer::AdjustPointer ( const char *  name,
int  offset 
)
inline

◆ AdjustPointer() [2/2]

cohtml::AdjustPointer::AdjustPointer ( const AdjustPointer o)
inline

Member Function Documentation

◆ Bind()

virtual void* cohtml::AdjustPointer::Bind ( Binder binder,
void *  object 
) const
inlineoverridevirtual

Expose the property's name and value to a binder.

Parameters
binder- the binder to use
object- object to get the property value from
Returns
- adjusted object pointer if necessary

Implements cohtml::Property.

◆ BindValue()

virtual void* cohtml::AdjustPointer::BindValue ( Binder binder,
void *  object 
) const
inlineoverridevirtual

Expose only the value of the property to a binder.

Parameters
binder- the binder to use
object- object to get the property value from
Returns
- adjusted object pointer if necessary

Implements cohtml::Property.

◆ Clone()

virtual AdjustPointer* cohtml::AdjustPointer::Clone ( ) const
inlineoverridevirtual

Clone the property.

Returns
a heap allocated copy of the property

Implements cohtml::Property.

◆ Read()

virtual void* cohtml::AdjustPointer::Read ( Binder binder,
void *  object 
) const
inlineoverridevirtual

Read the value from a binder.

Parameters
binder- the binder to use
object- the object to set the property into
Returns
- adjusted object pointer if necessary

Implements cohtml::Property.

◆ ReadValue()

virtual void* cohtml::AdjustPointer::ReadValue ( Binder binder,
void *  object 
) const
inlineoverridevirtual

Read only the value of the property from a binder.

Parameters
binder- the binder to use
object- the object to set the property into
Returns
- adjusted object pointer if necessary

Implements cohtml::Property.

◆ ToArray()

virtual bool cohtml::AdjustPointer::ToArray ( Binder binder,
void *  object,
ArrayInfo arrayInfo 
) const
inlineoverridevirtual

Convert the property value to a array type information.

Parameters
binder- the binder to use
object- object to get the property value from
arrayInfo- information about array type - callbacks, properties, methods
Returns
true if conversion is possible and successful

Implements cohtml::Property.

◆ ToBoolean()

virtual bool cohtml::AdjustPointer::ToBoolean ( void *  object,
bool *  boolean 
) const
inlineoverridevirtual

Convert the property value to a boolean.

Parameters
object- object to get the property value from
boolean- where to store the property value
Returns
true if conversion is possible and successful

Implements cohtml::Property.

◆ ToColor()

virtual bool cohtml::AdjustPointer::ToColor ( void *  object,
renoir::Color *  color 
) const
inlineoverridevirtual

Convert the property value to a color value.

Parameters
object- object to get the property value from
color- where to store the property value
Returns
true if conversion is possible and successful

Implements cohtml::Property.

◆ ToMap()

virtual bool cohtml::AdjustPointer::ToMap ( Binder binder,
void *  object,
MapInfo mapInfo 
) const
inlineoverridevirtual

Convert the property value to a map type information.

Parameters
binder- the binder to use
object- object to get the property value from
mapInfo- information about map type - callbacks, properties, methods
Returns
true if conversion is possible and successful

Implements cohtml::Property.

◆ ToNumber()

virtual bool cohtml::AdjustPointer::ToNumber ( void *  object,
float *  number 
) const
inlineoverridevirtual

Convert the property value to a number.

Parameters
object- object to get the property value from
number- where to store the property value
Returns
true if conversion is possible and successful

Implements cohtml::Property.

◆ ToObject()

virtual bool cohtml::AdjustPointer::ToObject ( Binder binder,
void *  object,
ObjectInfo typeInfo 
) const
inlineoverridevirtual

Convert the property value to a object type information.

Parameters
binder- the binder to use
object- object to get the property value from
typeInfo- information about object type - properties and methods if it's user defined type
Returns
true if conversion is possible and successful

Implements cohtml::Property.

◆ ToPair()

virtual bool cohtml::AdjustPointer::ToPair ( Binder binder,
void *  object,
PairInfo pairInfo 
) const
inlineoverridevirtual

Convert the property value to a pair type information.

Parameters
binder- the binder to use
object- object to get the property value from
pairInfo- information about pair type - callbacks, properties, methods
Returns
true if conversion is possible and successful

Implements cohtml::Property.

◆ ToString()

virtual bool cohtml::AdjustPointer::ToString ( void *  object,
char *  buffer,
size_t *  length 
) const
inlineoverridevirtual

Convert the property value to a string value.

Parameters
object- object to get the property value from
buffer- char buffer for the value
length- where to store the length of the converted value
Returns
true if conversion is possible and successful

Implements cohtml::Property.

◆ ToTransformMatrix2D()

virtual bool cohtml::AdjustPointer::ToTransformMatrix2D ( void *  object,
float  matrix[6] 
) const
inlineoverridevirtual

Convert the property value to a matrix.

Parameters
object- object to get the property value from
matrix- where to store the property value
Returns
true if conversion is possible and successful

Implements cohtml::Property.