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

Method scroll_offset

src/lib.rs:507–509  ·  view source on GitHub ↗

Returns the current scroll offset of the open scroll container.

(&self)

Source from the content-addressed store, hash-verified

505
506 /// Returns the current scroll offset of the open scroll container.
507 pub fn scroll_offset(&self) -> Vector2 {
508 self.ply.context.get_scroll_offset()
509 }
510
511 /// Returns if the current element you are creating is hovered
512 pub fn hovered(&self) -> bool {

Callers

nothing calls this directly

Calls 1

get_scroll_offsetMethod · 0.80

Tested by

no test coverage detected