overlay_stack.go 497 B

12345678910111213
  1. package fyne
  2. // OverlayStack is a stack of CanvasObjects intended to be used as overlays of a Canvas.
  3. type OverlayStack interface {
  4. // Add adds an overlay on the top of the overlay stack.
  5. Add(overlay CanvasObject)
  6. // List returns the overlays currently on the overlay stack.
  7. List() []CanvasObject
  8. // Remove removes the given object and all objects above it from the overlay stack.
  9. Remove(overlay CanvasObject)
  10. // Top returns the top-most object of the overlay stack.
  11. Top() CanvasObject
  12. }