Module icon

Source
Expand description

Lazily-generated SVG icon widget for Iced.

Structs§

Handle
Icon
An image which may be an SVG or PNG.
Named

Enums§

Data
IconFallback
Fallback icon to use if the icon was not found.

Functions§

draw
Draw an icon in the given bounds via the runtime’s renderer.
from_name
Create an icon handle from its XDG icon name.
from_path
Create an icon handle from its path.
from_raster_bytes
Create an image handle from memory.
from_raster_pixels
Create an image handle from RGBA data, where you must define the width and height.
from_svg_bytes
Create a SVG handle from memory.
icon
Create an Icon from a pre-existing Handle