01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.internal.theme;
11:
12: import org.eclipse.swt.graphics.*;
13:
14: public class ToolBarDrawData extends DrawData {
15:
16: public ToolBarDrawData() {
17: state = new int[1];
18: }
19:
20: void draw(Theme theme, GC gc, Rectangle bounds) {
21: }
22:
23: char[] getClassId() {
24: return TOOLBAR;
25: }
26:
27: int hit(Theme theme, Point position, Rectangle bounds) {
28: if (!bounds.contains(position))
29: return DrawData.WIDGET_NOWHERE;
30: return DrawData.WIDGET_WHOLE;
31: }
32:
33: }
|