javauis/eswt_qt/com.nokia.swt.extensions/extensions/org/eclipse/swt/internal/extension/CanvasExtension.java
equal
deleted
inserted
replaced
|
1 /******************************************************************************* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
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 * Nokia Corporation - initial implementation |
|
10 *******************************************************************************/ |
|
11 package org.eclipse.swt.internal.extension; |
|
12 |
|
13 import org.eclipse.swt.internal.qt.OS; |
|
14 import org.eclipse.swt.widgets.Canvas; |
|
15 import org.eclipse.swt.widgets.Composite; |
|
16 import org.eclipse.swt.widgets.Internal_PackageSupport; |
|
17 |
|
18 public class CanvasExtension extends Canvas { |
|
19 |
|
20 public CanvasExtension(Composite parent, int style) { |
|
21 super(parent, style); |
|
22 } |
|
23 |
|
24 public void redrawNow(int x, int y, int width, int height) { |
|
25 OS.QWidget_repaint(Internal_PackageSupport.handle(this), x, y, width, height); |
|
26 } |
|
27 } |