Documentation ¶
Index ¶
- type ViewportLine
- type ViewportObject
- type ViewportWidget
- func (w *ViewportWidget) CreateRenderer() fyne.WidgetRenderer
- func (w *ViewportWidget) Cursor() desktop.Cursor
- func (w *ViewportWidget) DragEnd()
- func (w *ViewportWidget) Dragged(event *fyne.DragEvent)
- func (w *ViewportWidget) MouseIn(event *desktop.MouseEvent)
- func (w *ViewportWidget) MouseMoved(event *desktop.MouseEvent)
- func (w *ViewportWidget) MouseOut()
- func (w *ViewportWidget) Scrolled(ev *fyne.ScrollEvent)
- func (w *ViewportWidget) Tapped(ev *fyne.PointEvent)
- func (w *ViewportWidget) TappedSecondary(ev *fyne.PointEvent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ViewportLine ¶
type ViewportLine struct { X1 float64 Y1 float64 X2 float64 Y2 float64 StrokeColor color.Color StrokeWidth float64 // contains filtered or unexported fields }
func (*ViewportLine) CanvasObjects ¶
func (l *ViewportLine) CanvasObjects(viewport *ViewportWidget) []fyne.CanvasObject
func (*ViewportLine) Refresh ¶
func (l *ViewportLine) Refresh(viewport *ViewportWidget)
type ViewportObject ¶
type ViewportObject interface { CanvasObjects(viewport *ViewportWidget) []fyne.CanvasObject Refresh(viewport *ViewportWidget) }
type ViewportWidget ¶
type ViewportWidget struct { widget.BaseWidget Width int Height int Zoom float64 XOffset float64 YOffset float64 Objects []ViewportObject }
func NewViewportWidget ¶
func NewViewportWidget(width, height int) *ViewportWidget
func (*ViewportWidget) CreateRenderer ¶
func (w *ViewportWidget) CreateRenderer() fyne.WidgetRenderer
func (*ViewportWidget) Cursor ¶
func (w *ViewportWidget) Cursor() desktop.Cursor
func (*ViewportWidget) DragEnd ¶
func (w *ViewportWidget) DragEnd()
func (*ViewportWidget) Dragged ¶
func (w *ViewportWidget) Dragged(event *fyne.DragEvent)
func (*ViewportWidget) MouseIn ¶
func (w *ViewportWidget) MouseIn(event *desktop.MouseEvent)
func (*ViewportWidget) MouseMoved ¶
func (w *ViewportWidget) MouseMoved(event *desktop.MouseEvent)
func (*ViewportWidget) MouseOut ¶
func (w *ViewportWidget) MouseOut()
func (*ViewportWidget) Scrolled ¶
func (w *ViewportWidget) Scrolled(ev *fyne.ScrollEvent)
func (*ViewportWidget) Tapped ¶
func (w *ViewportWidget) Tapped(ev *fyne.PointEvent)
func (*ViewportWidget) TappedSecondary ¶
func (w *ViewportWidget) TappedSecondary(ev *fyne.PointEvent)
Click to show internal directories.
Click to hide internal directories.