The image widget shows an image from a website favicon, a file, or an icon name.
Show an image from a file. On HiDPI screens, a file with "@2x" before the extension will be used instead, if it is present.
The filename is used to search the directories specified by
pathType: stringThe path to the image file.
Show a named icon.
nameType: stringThe name of the icon to use.
sizeType: integerThe size at which to display the icon, in pixels; must be one of 16, 24, 32, or 48.
Scale the current image to a certain size.
widthType: integerThe width to scale to, in pixels.
heightType: integerOptionalThe height to scale to, in pixels. If omitted, the desired width is used for the height as well.
Show the favicon for the given URI, if it has one, at a size of 16x16 pixels.
uriType: stringThe URI.
trueif the favicon was successfully shown.
- 2016 Aidan Holm