From 90825e2392b2d70e43c7a25b8a3752299a933894 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qtjava/javalib/org/kde/qt/QPalette.java | 64 +++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 qtjava/javalib/org/kde/qt/QPalette.java (limited to 'qtjava/javalib/org/kde/qt/QPalette.java') diff --git a/qtjava/javalib/org/kde/qt/QPalette.java b/qtjava/javalib/org/kde/qt/QPalette.java new file mode 100644 index 00000000..d4d2153b --- /dev/null +++ b/qtjava/javalib/org/kde/qt/QPalette.java @@ -0,0 +1,64 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.qt; + +import org.kde.qt.Qt; + +public class QPalette implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected QPalette(Class dummy){} + + public static final int Disabled = 0; + public static final int Active = 1; + public static final int Inactive = 2; + public static final int NColorGroups = 3; + public static final int Normal = Active; + + public QPalette() { + newQPalette(); + } + private native void newQPalette(); + public QPalette(QColor button) { + newQPalette(button); + } + private native void newQPalette(QColor button); + public QPalette(QColor button, QColor background) { + newQPalette(button,background); + } + private native void newQPalette(QColor button, QColor background); + public QPalette(QColorGroup active, QColorGroup disabled, QColorGroup inactive) { + newQPalette(active,disabled,inactive); + } + private native void newQPalette(QColorGroup active, QColorGroup disabled, QColorGroup inactive); + public QPalette(QPalette arg1) { + newQPalette(arg1); + } + private native void newQPalette(QPalette arg1); + public native QColor color(int arg1, int arg2); + public native QBrush brush(int arg1, int arg2); + public native void setColor(int arg1, int arg2, QColor arg3); + public native void setBrush(int arg1, int arg2, QBrush arg3); + public native void setColor(int arg1, QColor arg2); + public native void setBrush(int arg1, QBrush arg2); + public native QPalette copy(); + public native QColorGroup active(); + public native QColorGroup disabled(); + public native QColorGroup inactive(); + public native QColorGroup normal(); + public native void setActive(QColorGroup arg1); + public native void setDisabled(QColorGroup arg1); + public native void setInactive(QColorGroup arg1); + public native void setNormal(QColorGroup cg); + public native boolean op_equals(QPalette p); + public native boolean op_not_equals(QPalette p); + public native boolean isCopyOf(QPalette arg1); + public native int serialNumber(); + public static native int foregroundRoleFromMode(int mode); + public static native int backgroundRoleFromMode(int mode); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} -- cgit v1.2.1