package driver
import "fyne.io/fyne/internal/driver"
Index ¶
- func WalkCompleteObjectTree( obj fyne.CanvasObject, beforeChildren func(fyne.CanvasObject, fyne.Position, fyne.Position, fyne.Size) bool, afterChildren func(fyne.CanvasObject, fyne.CanvasObject), ) bool
- func WalkVisibleObjectTree( obj fyne.CanvasObject, beforeChildren func(fyne.CanvasObject, fyne.Position, fyne.Position, fyne.Size) bool, afterChildren func(fyne.CanvasObject, fyne.CanvasObject), ) bool
Functions ¶
func WalkCompleteObjectTree ¶
func WalkCompleteObjectTree( obj fyne.CanvasObject, beforeChildren func(fyne.CanvasObject, fyne.Position, fyne.Position, fyne.Size) bool, afterChildren func(fyne.CanvasObject, fyne.CanvasObject), ) bool
WalkCompleteObjectTree will walk an object tree for all objects (ignoring visible state) executing the passed functions following the following rules: - beforeChildren is called for the start obj before traversing its children - the obj's children are traversed by calling walkObjects on each of the items - afterChildren is called for the obj after traversing the obj's children The walk can be aborted by returning true in one of the functions:
- if beforeChildren returns true, further traversing is stopped immediately, the after function will not be called for the obj where the walk stopped, however, it will be called for all its parents
func WalkVisibleObjectTree ¶
func WalkVisibleObjectTree( obj fyne.CanvasObject, beforeChildren func(fyne.CanvasObject, fyne.Position, fyne.Position, fyne.Size) bool, afterChildren func(fyne.CanvasObject, fyne.CanvasObject), ) bool
WalkVisibleObjectTree will walk an object tree for all visible objects executing the passed functions following the following rules: - beforeChildren is called for the start obj before traversing its children - the obj's children are traversed by calling walkObjects on each of the visible items - afterChildren is called for the obj after traversing the obj's children The walk can be aborted by returning true in one of the functions:
- if beforeChildren returns true, further traversing is stopped immediately, the after function will not be called for the obj where the walk stopped, however, it will be called for all its parents
Source Files ¶
util.go
Directories ¶
Path | Synopsis |
---|---|
internal/driver/gl | Package gl provides a full Fyne render implementation using system OpenGL libraries. |
- Version
- v1.1.1
- Published
- Aug 17, 2019
- Platform
- windows/amd64
- Imports
- 3 packages
- Last checked
- 10 minutes ago –
Tools for package owners.