Class clove::IconΒΆ

class clove::Icon

An icon.

Can be shown at many places, like in buttons, menus or clove::IconView.

Construct instances with clove::Icon::byUrl() or clove::Icon::bySymbol().

Public Functions

static byUrl(url)

Creates a clove::Icon by a url pointing to an image.

Parameters
  • url: The image url.

static bySymbol(chr)

Creates a clove::Icon by a text character.

Parameters
  • chr: The text character.

createHtml(height)

Creates an html representation.

This method is used by widget implementations.

Parameters
  • height: The icon height in pixels.