]> git.argeo.org Git - lgpl/argeo-commons.git/blob - CmsSwtTheme.java
7669b1554df2872954788e095ca645b9dafaedf3
[lgpl/argeo-commons.git] / CmsSwtTheme.java
1 package org.argeo.cms.swt;
2
3 import org.argeo.api.cms.ux.CmsIcon;
4 import org.argeo.api.cms.ux.CmsTheme;
5 import org.eclipse.swt.graphics.Image;
6
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);
11
12 /**
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.
15 *
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.
19 */
20 Image getIcon(String name, Integer preferredSize);
21
22 Image getSmallIcon(CmsIcon icon);
23
24 Image getBigIcon(CmsIcon icon);
25 }