/***************************************************************************
                            QScrollView.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

/**
 See {@link QScrollViewSignals} for signals emitted by QScrollView.

 See {@link QScrollViewEventHandling} for event handlers to override in subclasses of QScrollView.

*/
public class QScrollView extends QFrame  {
	protected QScrollView(Class dummy){super((Class) null);}

	private native void newQScrollView( QWidget parent, String name, int f);
	public QScrollView( QWidget parent, String name, int f) {
		super((Class) null);
		newQScrollView( parent, name, f);
	}

	public QScrollView( QWidget parent) {
		this(parent, "", 0);
	}

	private native void newQScrollView();
	public QScrollView() {
		super((Class) null);
		newQScrollView();
	}
	protected native void finalize() throws InternalError;
	public native void setResizePolicy( int arg1);
	public native int resizePolicy();
	public native void styleChange( QStyle arg1);
	public native void removeChild( QWidget child);
	public native void addChild( QWidget child, int x, int y);
	public native void addChild( QWidget child);
	public native void moveChild( QWidget child, int x, int y);
	public native int childX( QWidget child);
	public native int childY( QWidget child);
	public native boolean childIsVisible( QWidget child);
	public native void showChild( QWidget child, boolean yes);
	public native void showChild( QWidget child);
	public native int vScrollBarMode();
	public native void setVScrollBarMode( int arg1);
	public native int hScrollBarMode();
	public native void setHScrollBarMode( int arg1);
	public native QWidget cornerWidget();
	public native void setCornerWidget( QWidget arg1);
	public native QScrollBar horizontalScrollBar();
	public native QScrollBar verticalScrollBar();
	public native QWidget viewport();
	public native QWidget clipper();
	public native int visibleWidth();
	public native int visibleHeight();
	public native int contentsWidth();
	public native int contentsHeight();
	public native int contentsX();
	public native int contentsY();
	public native void resize( int w, int h);
	public native void resize( QSize arg1);
	public native void show();
	public native void updateContents( int x, int y, int w, int h);
	public native void updateContents( QRect r);
	public native void updateContents();
	public native void repaintContents( int x, int y, int w, int h, boolean erase);
	public native void repaintContents( int x, int y, int w, int h);
	public native void repaintContents( QRect r, boolean erase);
	public native void repaintContents( QRect r);
	public native void repaintContents( boolean erase);
	public native void repaintContents();
	public native void contentsToViewport( int x, int y, int vx, int vy);
	public native void viewportToContents( int vx, int vy, int x, int y);
	public native QPoint contentsToViewport( QPoint arg1);
	public native QPoint viewportToContents( QPoint arg1);
	public native void enableClipper( boolean y);
	public native void setStaticBackground( boolean y);
	public native boolean hasStaticBackground();
	public native QSize viewportSize( int arg1, int arg2);
	public native QSize sizeHint();
	public native QSize minimumSizeHint();
	public native void removeChild( QObject child);
	public native void setDragAutoScroll( boolean b);
	public native boolean dragAutoScroll();
	public native void resizeContents( int w, int h);
	public native void scrollBy( int dx, int dy);
	public native void setContentsPos( int x, int y);
	public native void ensureVisible( int x, int y);
	public native void ensureVisible( int x, int y, int xmargin, int ymargin);
	public native void center( int x, int y);
	public native void center( int x, int y, float xmargin, float ymargin);
	public native void updateScrollBars();
	public native void setEnabled( boolean enable);
	protected native void drawContents( QPainter arg1, int cx, int cy, int cw, int ch);
	protected native void drawContentsOffset( QPainter arg1, int ox, int oy, int cx, int cy, int cw, int ch);
	protected native void frameChanged();
	protected native void setMargins( int left, int top, int right, int bottom);
	protected native int leftMargin();
	protected native int topMargin();
	protected native int rightMargin();
	protected native int bottomMargin();
	protected native boolean focusNextPrevChild( boolean next);
	protected native void setHBarGeometry( QScrollBar hbar, int x, int y, int w, int h);
	protected native void setVBarGeometry( QScrollBar vbar, int x, int y, int w, int h);
	public native boolean eventFilter( QObject arg1, QEvent e);
	public static final int Default = 0;
	public static final int Manual = 1;
	public static final int AutoOne = 2;
	public static final int AutoOneFit = 3;
	public static final int Auto = 0;
	public static final int AlwaysOff = 1;
	public static final int AlwaysOn = 2;
}
