comparison dwt/widgets/TabFolder.d @ 259:c0d810de7093

Update SWT 3.4M7 to 3.4
author Frank Benoit <benoit@tionex.de>
date Sun, 29 Jun 2008 14:33:38 +0200
parents 5a30aa9820f3
children
comparison
equal deleted inserted replaced
257:cc1d3de0e80b 259:c0d810de7093
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2000, 2007 IBM Corporation and others. 2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials 3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0 4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
7 * 7 *
51 * <p> 51 * <p>
52 * Note: Only one of the styles TOP and BOTTOM may be specified. 52 * Note: Only one of the styles TOP and BOTTOM may be specified.
53 * </p><p> 53 * </p><p>
54 * IMPORTANT: This class is <em>not</em> intended to be subclassed. 54 * IMPORTANT: This class is <em>not</em> intended to be subclassed.
55 * </p> 55 * </p>
56 *
57 * @see <a href="http://www.eclipse.org/swt/snippets/#tabfolder">TabFolder, TabItem snippets</a>
58 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample</a>
59 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
56 */ 60 */
57 public class TabFolder : Composite { 61 public class TabFolder : Composite {
58 62
59 alias Composite.computeSize computeSize; 63 alias Composite.computeSize computeSize;
60 alias Composite.createHandle createHandle; 64 alias Composite.createHandle createHandle;
325 OS.g_list_free (list); 329 OS.g_list_free (list);
326 if (!(0 <= index && index < itemCount)) error (DWT.ERROR_CANNOT_GET_ITEM); 330 if (!(0 <= index && index < itemCount)) error (DWT.ERROR_CANNOT_GET_ITEM);
327 return items [index]; 331 return items [index];
328 } 332 }
329 333
334 /**
335 * Returns the tab item at the given point in the receiver
336 * or null if no such item exists. The point is in the
337 * coordinate system of the receiver.
338 *
339 * @param point the point used to locate the item
340 * @return the tab item at the given point, or null if the point is not in a tab item
341 *
342 * @exception IllegalArgumentException <ul>
343 * <li>ERROR_NULL_ARGUMENT - if the point is null</li>
344 * </ul>
345 * @exception DWTException <ul>
346 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
347 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
348 * </ul>
349 *
350 * @since 3.4
351 */
330 public TabItem getItem(Point point) { 352 public TabItem getItem(Point point) {
331 checkWidget(); 353 checkWidget();
332 if (point is null) error (DWT.ERROR_NULL_ARGUMENT); 354 if (point is null) error (DWT.ERROR_NULL_ARGUMENT);
333 auto list = OS.gtk_container_get_children (handle); 355 auto list = OS.gtk_container_get_children (handle);
334 if (list is null) return null; 356 if (list is null) return null;