Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToFyneCoordinate ¶
ToFyneCoordinate converts a screen coordinate for a given canvas to a fyne coordinate
func ToFyneSize ¶
func ToFyneSize(obj fyne.CanvasObject, width, height int) fyne.Size
ToFyneSize returns the scaled size of an object based on pixel coordinates, typically for images. This method will attempt to find the canvas for an object to get its scale. In the event that this fails it will assume a 1:1 mapping (scale=1 or low DPI display).
func ToScreenCoordinate ¶
ToScreenCoordinate converts a fyne coordinate in the given canvas to a screen coordinate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.