Dali 3D User Interface Engine
List of all members | Static Public Member Functions | Static Private Member Functions
Dali::Internal::SceneGraph::Inside Class Reference

Inside condition class, Checks if a Property is "Inside" the two arguments: More...

#include <property-condition-functions.h>

Static Public Member Functions

static ConditionFunction GetFunction (Property::Type valueType)
 

Static Private Member Functions

static bool EvalBoolean (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if bool is Inside. More...
 
static bool EvalInteger (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if integer is Inside. More...
 
static bool EvalFloat (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if float is Inside. More...
 
static bool EvalVector2 (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if Vector2.Length() is Inside. More...
 
static bool EvalVector3 (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if Vector3.Length() is Inside. More...
 
static bool EvalVector4 (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Checks if Vector4.Length() is Inside. More...
 
static bool EvalDefault (const Dali::PropertyInput &value, PropertyNotification::RawArgumentContainer &arg)
 Default check for other types. More...
 

Detailed Description

Inside condition class, Checks if a Property is "Inside" the two arguments:

bool => false (0.0) or true (1.0) is inside arg0. float => value is between arg0 and arg1. Vector2 => 2 dimensional length of vector is between arg0 and arg1. Vector3 => 3 dimensional length of vector is between arg0 and arg1. Vector4 => 4 dimensional length of vector is between arg0 and arg1. Default => return false.

Definition at line 222 of file property-condition-functions.h.

Member Function Documentation

bool Dali::Internal::SceneGraph::Inside::EvalBoolean ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if bool is Inside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 260 of file property-condition-functions.cpp.

References Dali::PropertyInput::GetBoolean().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::Inside::EvalDefault ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Default check for other types.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 296 of file property-condition-functions.cpp.

Referenced by GetFunction().

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::Inside::EvalFloat ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if float is Inside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 272 of file property-condition-functions.cpp.

References Dali::PropertyInput::GetFloat().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::Inside::EvalInteger ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if integer is Inside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 266 of file property-condition-functions.cpp.

References Dali::PropertyInput::GetInteger().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::Inside::EvalVector2 ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if Vector2.Length() is Inside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 278 of file property-condition-functions.cpp.

References Dali::PropertyInput::GetVector2(), and Dali::Vector2::LengthSquared().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::Inside::EvalVector3 ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if Vector3.Length() is Inside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 284 of file property-condition-functions.cpp.

References Dali::PropertyInput::GetVector3(), and Dali::Vector3::LengthSquared().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::Inside::EvalVector4 ( const Dali::PropertyInput value,
PropertyNotification::RawArgumentContainer arg 
)
staticprivate

Checks if Vector4.Length() is Inside.

Parameters
[in]valueThe value being examined.
[in]argThe supplied arguments for the condition.
Returns
Condition result (true if condition met, false if not)

Definition at line 290 of file property-condition-functions.cpp.

References Dali::PropertyInput::GetVector4(), and Dali::Vector4::LengthSquared().

Referenced by GetFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

ConditionFunction Dali::Internal::SceneGraph::Inside::GetFunction ( Property::Type  valueType)
static
Returns
function pointer to the correct condition function, based on the type of value being examined.

Definition at line 214 of file property-condition-functions.cpp.

References Dali::Property::BOOLEAN, EvalBoolean(), EvalDefault(), EvalFloat(), EvalInteger(), EvalVector2(), EvalVector3(), EvalVector4(), Dali::Property::FLOAT, Dali::Property::INTEGER, Dali::Property::VECTOR2, Dali::Property::VECTOR3, and Dali::Property::VECTOR4.

Referenced by Dali::Internal::SceneGraph::PropertyNotification::PropertyNotification().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali