Solstice::IconService - Gives access to a library of icons.


Solstice documentation  | view source Contained in the Solstice distribution.

Index


NAME

Top

Solstice::IconService - Gives access to a library of icons.

SYNOPSIS

Top

  use Solstice::IconService;

DESCRIPTION

Top

Superclass

Solstice::Service

Export

No symbols exported.

Methods

new([\%params])

Creates a new Solstice::IconService object.

setSize($int)

Set the size attribute, in pixels. Available values are 16, 20 and 32.

getSize()

Return the size attribute.

setLocked($bool)

Set the locked boolean attribute. Specifies a "locked" version of the icon if set.

getLocked()

Return the locked attribute.

setColor($string)
getColor()
getIconByType($type) {

Return the icon path for the passed file content-type. Returns the path for a generic icon if the type is unknown.

getIconByName($name)

Return an icon path for the passed icon name.

getIconByAction($name)

Return an icon path for the passed icon name.

Private Methods

_getObjectIconPath($icon)

Return a file path for an icon file.

_getActionIconPath($icon)

Return a file path for an icon file.

_getClassName()

Return the class name. Overridden to avoid a ref() in the superclass.

Modules Used

Solstice::Service.

AUTHOR

Top

Catalyst Group, <catalyst@u.washington.edu>

VERSION

Top

$Revision: 3364 $

COPYRIGHT

Top


Solstice documentation  | view source Contained in the Solstice distribution.