| 32 | } |
| 33 | |
| 34 | void TriValueBinding::CopyValue() |
| 35 | { |
| 36 | if( !m_isEnabled ) |
| 37 | { |
| 38 | return; |
| 39 | } |
| 40 | |
| 41 | if( m_isWeak ) |
| 42 | { |
| 43 | if( !m_sourceObjectWeak || !m_destinationObjectWeak ) |
| 44 | { |
| 45 | return; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | if( m_copyFunc ) |
| 50 | { |
| 51 | if( m_copyFunc( (Be::Var*)m_source, (Be::Var*)m_destination, m_scale, m_offset ) ) |
| 52 | { |
| 53 | if( m_notifyPtr ) |
| 54 | { |
| 55 | m_notifyPtr->OnModified( (Be::Var*)m_destination ); |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | else if( m_copyValueCallable ) |
| 60 | { |
| 61 | m_copyValueCallable.CallVoid( GetCurrentSourceObject(), GetCurrentDestinationObject() ); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | bool TriValueBinding::OnModified( Be::Var* val ) |
| 66 | { |
no test coverage detected