MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / anchor

Method anchor

src/elements.rs:69–79  ·  view source on GitHub ↗
(
        &mut self,
        element: (AlignX, AlignY),
        parent: (AlignX, AlignY),
    )

Source from the content-addressed store, hash-verified

67 /// ```
68 #[inline]
69 pub fn anchor(
70 &mut self,
71 element: (AlignX, AlignY),
72 parent: (AlignX, AlignY),
73 ) -> &mut Self {
74 self.config.attach_points.element_x = element.0;
75 self.config.attach_points.element_y = element.1;
76 self.config.attach_points.parent_x = parent.0;
77 self.config.attach_points.parent_y = parent.1;
78 self
79 }
80
81 /// Attaches this floating element to its parent element (default behavior).
82 #[inline]

Callers 1

test_floatingFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_floatingFunction · 0.64