add RotationByPoint function for widget class

add RotationByPoint function for widget class