(&self, x: f32, y: f32)
| 1148 | //Spatial properties |
| 1149 | |
| 1150 | fn set_pos(&self, x: f32, y: f32) { |
| 1151 | let mut comp = self.as_ref().borrow_mut(); |
| 1152 | |
| 1153 | assert!( |
| 1154 | !comp.destroyed, |
| 1155 | "Widget was already destroyed but is being interacted with" |
| 1156 | ); |
| 1157 | |
| 1158 | comp.updating = true; |
| 1159 | |
| 1160 | let dx = x - comp.x; |
| 1161 | let dy = y - comp.y; |
| 1162 | |
| 1163 | comp.x = x; |
| 1164 | comp.y = y; |
| 1165 | |
| 1166 | comp.updating = false; |
| 1167 | |
| 1168 | self.bounds_changed(dx, dy, 0.0, 0.0); |
| 1169 | } |
| 1170 | |
| 1171 | fn set_size(&self, w: f32, h: f32) { |
| 1172 | log::info!("Set Size Default Impl {}x{}", w, h); |
no test coverage detected