API for seesaw.icon - Seesaw

by Dave Ray

Full namespace name: seesaw.icon

Overview

Functions for loading and creating icons.

Public Variables and Functions



icon

function
Usage: (icon p)
Loads an icon. The parameter p can be any of the following:

  nil              - returns nil
  javax.swing.Icon - returns the icon
  java.awt.Image   - returns an ImageIcon around the image
  java.net.URL     - Load the icon from the given URL
  an i18n keyword  - Load the icon from the resource bundle
  classpath path string  - Load the icon from the classpath
  URL string       - Load the icon from the given URL
  java.io.File     - Load the icon from the File

This is the function used to process the :icon property on most widgets
and windows. Thus, any of these values may be used for the :icon property.
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.