Documentation ¶
Index ¶
- func InBounds(pos fyne.Position, bounds image.Rectangle) bool
- func NewBlankImage(cols, rows int, c color.Color) image.Image
- type PxCanvas
- func (pxCanvas *PxCanvas) Bounds() image.Rectangle
- func (pxCanvas *PxCanvas) CreateRenderer() fyne.WidgetRenderer
- func (pxCanvas *PxCanvas) LoadImage(img image.Image)
- func (pxCanvas *PxCanvas) MouseDown(ev *desktop.MouseEvent)
- func (pxCanvas *PxCanvas) MouseIn(ev *desktop.MouseEvent)
- func (pxCanvas *PxCanvas) MouseMoved(ev *desktop.MouseEvent)
- func (pxCanvas *PxCanvas) MouseOut()
- func (pxCanvas *PxCanvas) MouseToCanvasXY(ev *desktop.MouseEvent) (*int, *int)
- func (pxCanvas *PxCanvas) MouseUp(ev *desktop.MouseEvent)
- func (pxCanvas *PxCanvas) NewDrawing(cols, rows int)
- func (pxCanvas *PxCanvas) Pan(previousCoord, currentCoord fyne.PointEvent)
- func (pxCanvas *PxCanvas) Scrolled(ev *fyne.ScrollEvent)
- func (pxCanvas *PxCanvas) SetColor(c color.Color, x, y int)
- func (pxCanvas *PxCanvas) TryPan(previousCoord *fyne.PointEvent, ev *desktop.MouseEvent)
- type PxCanvasMouseState
- type PxCanvasRenderer
- func (renderer *PxCanvasRenderer) Destroy()
- func (renderer *PxCanvasRenderer) Layout(size fyne.Size)
- func (renderer *PxCanvasRenderer) LayoutBorder(size fyne.Size)
- func (renderer *PxCanvasRenderer) LayoutCanvas(size fyne.Size)
- func (renderer *PxCanvasRenderer) MinSize() fyne.Size
- func (renderer *PxCanvasRenderer) Objects() []fyne.CanvasObject
- func (renderer *PxCanvasRenderer) Refresh()
- func (renderer *PxCanvasRenderer) SetCursor(objects []fyne.CanvasObject)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PxCanvas ¶
type PxCanvas struct { widget.BaseWidget apptype.PxCanvasConfig PixelData image.Image // contains filtered or unexported fields }
func NewPxCanvas ¶
func NewPxCanvas(state *apptype.State, config apptype.PxCanvasConfig) *PxCanvas
func (*PxCanvas) CreateRenderer ¶
func (pxCanvas *PxCanvas) CreateRenderer() fyne.WidgetRenderer
func (*PxCanvas) MouseDown ¶
func (pxCanvas *PxCanvas) MouseDown(ev *desktop.MouseEvent)
func (*PxCanvas) MouseIn ¶
func (pxCanvas *PxCanvas) MouseIn(ev *desktop.MouseEvent)
func (*PxCanvas) MouseMoved ¶
func (pxCanvas *PxCanvas) MouseMoved(ev *desktop.MouseEvent)
func (*PxCanvas) MouseToCanvasXY ¶
func (pxCanvas *PxCanvas) MouseToCanvasXY(ev *desktop.MouseEvent) (*int, *int)
func (*PxCanvas) MouseUp ¶
func (pxCanvas *PxCanvas) MouseUp(ev *desktop.MouseEvent)
func (*PxCanvas) NewDrawing ¶
func (*PxCanvas) TryPan ¶
func (pxCanvas *PxCanvas) TryPan(previousCoord *fyne.PointEvent, ev *desktop.MouseEvent)
type PxCanvasMouseState ¶
type PxCanvasMouseState struct {
// contains filtered or unexported fields
}
type PxCanvasRenderer ¶
type PxCanvasRenderer struct {
// contains filtered or unexported fields
}
func (*PxCanvasRenderer) Destroy ¶
func (renderer *PxCanvasRenderer) Destroy()
func (*PxCanvasRenderer) Layout ¶
func (renderer *PxCanvasRenderer) Layout(size fyne.Size)
func (*PxCanvasRenderer) LayoutBorder ¶
func (renderer *PxCanvasRenderer) LayoutBorder(size fyne.Size)
func (*PxCanvasRenderer) LayoutCanvas ¶
func (renderer *PxCanvasRenderer) LayoutCanvas(size fyne.Size)
func (*PxCanvasRenderer) MinSize ¶
func (renderer *PxCanvasRenderer) MinSize() fyne.Size
func (*PxCanvasRenderer) Objects ¶
func (renderer *PxCanvasRenderer) Objects() []fyne.CanvasObject
func (*PxCanvasRenderer) Refresh ¶
func (renderer *PxCanvasRenderer) Refresh()
func (*PxCanvasRenderer) SetCursor ¶
func (renderer *PxCanvasRenderer) SetCursor(objects []fyne.CanvasObject)
Click to show internal directories.
Click to hide internal directories.