Returns the graph position of the node in X, Y form.
(&self)
| 226 | |
| 227 | /// Returns the graph position of the node in X, Y form. |
| 228 | pub fn position(&self) -> (i32, i32) { |
| 229 | let pos_x = unsafe { BNGetFlowGraphNodeX(self.handle) }; |
| 230 | let pos_y = unsafe { BNGetFlowGraphNodeY(self.handle) }; |
| 231 | (pos_x, pos_y) |
| 232 | } |
| 233 | |
| 234 | /// Sets the graph position of the node. |
| 235 | pub fn set_position(&self, x: i32, y: i32) { |
no outgoing calls