]> git.argeo.org Git - lgpl/argeo-commons.git/blob - eclipse/org.argeo.cms.swt/src/org/argeo/cms/swt/CmsSwtTheme.java
Change default A2 directories
[lgpl/argeo-commons.git] / eclipse / org.argeo.cms.swt / src / org / argeo / cms / swt / CmsSwtTheme.java
1 package org.argeo.cms.swt;
2
3 import org.argeo.api.cms.CmsTheme;
4 import org.eclipse.swt.graphics.Image;
5
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);
10
11 /**
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.
14 *
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.
18 */
19 Image getIcon(String name, Integer preferredSize);
20
21 }