pub fn world_translation(&self) -> (u32, u32) {
		match self.parent.borrow().as_ref() {
			None => self.translation(),
			Some(parent) => {
				let (parent_x, parent_y) = parent.world_translation();
				(parent_x + self.x, parent_y + self.y)
			}
		}
	}
/// The translation of the object relative to the position of its container (parent) in case
/// it exists.
The translation of the object relative to the position of its container (parent) in case
it exists.
The translation of the object relative to the position of its container ( parent ) in case it exists .
pub fn world_translation(&self) -> (u32, u32) {
		match self.parent.borrow().as_ref() {
			None => self.translation(),
			Some(parent) => {
				let (parent_x, parent_y) = parent.world_translation();
				(parent_x + self.x, parent_y + self.y)
			}
		}
	}
pub fn world_translation ( & self ) -> ( u32 , u32 ) { match self . parent . borrow ( ) . as_ref ( ) { None => self . translation ( ) , Some ( parent ) => { let ( parent_x , parent_y ) = parent . world_translation ( ) ; ( parent_x + self . x , parent_y + self . y ) } } }
The translation of the object relative to the position of its container (parent) in case
it exists.
The translation of the object relative to the position of its container ( parent ) in case it exists .
&self
&self