view snippets/display/Snippet42.d @ 132:104f5ed240fc

More snippets from TomD, thanks!
author Frank Benoit <benoit@tionex.de>
date Tue, 29 Jul 2008 01:50:10 +0200
parents
children
line wrap: on
line source

/*******************************************************************************
 * Copyright (c) 2000, 2004 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
 * D Port:
 *     Thomas Demmer <t_demmer AT web DOT de>
 *******************************************************************************/
module display.Snippet42;

/*
 * Display example snippet: get the bounds and client area of a display
 *
 * For a list of all DWT example snippets see
 * http://www.eclipse.org/swt/snippets/
 */
import dwt.widgets.Display;

import dwt.dwthelper.utils;

import tango.io.Stdout;
void main (String [] args) {
    Display display = new Display ();
    Stdout.formatln("Display Bounds= {}  Display ClientArea= {}" 
                    ,display.getBounds(),display.getClientArea());
    display.dispose ();
}