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