void EditMatrixControl::TextFieldShouldReturn(UITextField * textField) { if (textFieldBackground->GetParent()) { String value = WStringToString(textField->GetText()); if ((editI != -1) && (editJ != -1)) { matrix._data[editI][editJ] = (float32)atof(value.c_str()); editI = editJ = -1; } RemoveControl(textFieldBackground); RemoveControl(textField); OnMatrixChanged(this, 0); SetMatrix(matrix); } }
void CObject::SetLocalRotationZ(const float& rot) { this->m_cMatLocal.SetRotationZ(rot); OnMatrixChanged(); }
void CObject::SetLocalScale(const float& x, const float& y) { this->m_cMatLocal.SetScale(x, y); OnMatrixChanged(); }
void CObject::SetLocalPosXY(const float& x, const float& y) { this->m_cMatLocal.SetPosition(x, y); OnMatrixChanged(); }
void CObject::SetLocalPosX(const float& x) { this->m_cMatLocal.SetPositionX(x); OnMatrixChanged(); }
void CObject::SetLocalMatrix(const Math::CMatrix2D& mat) { m_cMatLocal = mat; OnMatrixChanged(); }