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

Method offset

src/elements.rs:50–53  ·  view source on GitHub ↗
(&mut self, offset: impl Into<Vector2>)

Source from the content-addressed store, hash-verified

48 /// Sets the floating element's offset.
49 #[inline]
50 pub fn offset(&mut self, offset: impl Into<Vector2>) -> &mut Self {
51 self.config.offset = offset.into();
52 self
53 }
54
55 /// Sets the floating element's Z-index.
56 #[inline]

Callers 1

test_floatingFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_floatingFunction · 0.64