Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
d036639ee6 |
@ -69,6 +69,12 @@ func (b *Buffer[T]) Height() int {
|
|||||||
return b.height
|
return b.height
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Offset returns the offset of b relative to its parent buffer.
|
||||||
|
// Offset returns zeros if b has no parent
|
||||||
|
func (b *Buffer[T]) Offset() (x, y int) {
|
||||||
|
return b.x, b.y
|
||||||
|
}
|
||||||
|
|
||||||
// OffsetX returns the horizontal offset of b relative to its parent buffer.
|
// OffsetX returns the horizontal offset of b relative to its parent buffer.
|
||||||
// OffsetX returns 0 if b has no parent
|
// OffsetX returns 0 if b has no parent
|
||||||
func (b *Buffer[T]) OffsetX() int {
|
func (b *Buffer[T]) OffsetX() int {
|
||||||
|
Reference in New Issue
Block a user