]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - eclipse/org.argeo.cms.swt/src/org/argeo/cms/swt/CmsSwtTheme.java
1 package org
.argeo
.cms
.swt
;
3 import org
.argeo
.api
.cms
.CmsTheme
;
4 import org
.eclipse
.swt
.graphics
.Image
;
6 /** SWT specific {@link CmsTheme}. */
7 public interface CmsSwtTheme
extends CmsTheme
{
8 // /** The image registered at this path, or <code>null</code> if not found. */
9 // Image getImage(String path);
12 * And icon with this file name (without the extension), with a best effort to
13 * find the appropriate size, or <code>null</code> if not found.
15 * @param name An icon file name without path and extension.
16 * @param preferredSize the preferred size, if <code>null</code>,
17 * {@link #getDefaultIconSize()} will be tried.
19 Image
getIcon(String name
, Integer preferredSize
);