Mercurial > projects > dwt-addons
comparison dwtx/jface/action/StatusLineLayoutData.d @ 26:87d8cf0a3074
StatusLine
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 03 Apr 2008 05:03:09 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
25:ca63e2bea4bf | 26:87d8cf0a3074 |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2000, 2006 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 | |
14 module dwtx.jface.action.StatusLineLayoutData; | |
15 | |
16 import dwt.DWT; | |
17 | |
18 import dwt.dwthelper.utils; | |
19 | |
20 /** | |
21 * Represents the layout data object for <code>Control</code> within the status line. | |
22 * To set a <code>StatusLineLayoutData</code> object into a <code>Control</code>, use | |
23 * the <code>setLayoutData()</code> method. | |
24 * <p> | |
25 * NOTE: Do not reuse <code>StatusLineLayoutData</code> objects. Every control in the | |
26 * status line must have a unique <code>StatusLineLayoutData</code> instance or | |
27 * <code>null</code>. | |
28 * </p> | |
29 * | |
30 * @since 2.1 | |
31 */ | |
32 public class StatusLineLayoutData { | |
33 /** | |
34 * The <code>widthHint</code> specifies a minimum width for | |
35 * the <code>Control</code>. A value of <code>DWT.DEFAULT</code> | |
36 * indicates that no minimum width is specified. | |
37 * | |
38 * The default value is <code>DWT.DEFAULT</code>. | |
39 */ | |
40 public int widthHint = DWT.DEFAULT; | |
41 | |
42 /** | |
43 * The <code>heightHint</code> specifies a minimum height for | |
44 * the <code>Control</code>. A value of <code>DWT.DEFAULT</code> | |
45 * indicates that no minimum height is specified. | |
46 * | |
47 * The default value is <code>DWT.DEFAULT</code>. | |
48 */ | |
49 public int heightHint = DWT.DEFAULT; | |
50 | |
51 /** | |
52 * Creates an initial status line layout data object. | |
53 */ | |
54 public this() { | |
55 //super(); | |
56 } | |
57 } |