view 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
line wrap: on
line source

/*******************************************************************************
 * Copyright (c) 2000, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 * Port to the D programming language:
 *     Frank Benoit <benoit@tionex.de>
 *******************************************************************************/

module dwtx.jface.action.StatusLineLayoutData;

import dwt.DWT;

import dwt.dwthelper.utils;

/**
 * Represents the layout data object for <code>Control</code> within the status line.
 * To set a <code>StatusLineLayoutData</code> object into a <code>Control</code>, use
 * the <code>setLayoutData()</code> method.
 * <p>
 * NOTE: Do not reuse <code>StatusLineLayoutData</code> objects. Every control in the
 * status line must have a unique <code>StatusLineLayoutData</code> instance or
 * <code>null</code>.
 * </p>
 *
 * @since 2.1
 */
public class StatusLineLayoutData {
    /**
     * The <code>widthHint</code> specifies a minimum width for
     * the <code>Control</code>. A value of <code>DWT.DEFAULT</code>
     * indicates that no minimum width is specified.
     *
     * The default value is <code>DWT.DEFAULT</code>.
     */
    public int widthHint = DWT.DEFAULT;

    /**
     * The <code>heightHint</code> specifies a minimum height for
     * the <code>Control</code>. A value of <code>DWT.DEFAULT</code>
     * indicates that no minimum height is specified.
     *
     * The default value is <code>DWT.DEFAULT</code>.
     */
    public int heightHint = DWT.DEFAULT;

    /**
     * Creates an initial status line layout data object.
     */
    public this() {
        //super();
    }
}