2 @SuppressWarnings public class QCore : QNative {
5 public QCore(int type) throws IllegalArgumentException {
6 nativehandle = QtXnl.createQObject(type, this, 0);
7 if (nativehandle == 0) {
12 if (parent == nilptr) {
15 nativehandle = QtXnl.createQObject(QType.qtWidget,
this, parent.nativehandle);
16 if (nativehandle == 0) {
26 if (QtXnl.core_sub_class(nativehandle,
this,
object)) {
27 object.nativehandle = nativehandle;
35 return 0 != QtXnl.long_string2(0, Constant.OPENURL, url, nilptr);
38 return 0 != QtXnl.long_string2(0, Constant.OPENLOCAL, url, nilptr);
41 QtXnl.widget_set_native_value(nativehandle, Constant.XNOTIFY, eventid);
44 QtXnl.long_longstring(nativehandle, Constant.XNOTIFY, eventid, tag);
47 QtXnl.widget_slot_string(0, Constant.CLIPBOARDTEXT, text);
50 return (
String)QtXnl.core_getString(0, Constant.CLIPBOARDTEXT);
53 QtXnl.widget_set_native_value(0, Constant.CLIPBOARDIMAGE, img.himage);
57 long handle = QtXnl.object_get_long_int(0, Constant.CLIPBOARDIMAGE, 0, 0);
static bool openLocal(String url)
static QImage getClipboardImage()
static String getClipboardText()
static bool openUrl(String url)
void Notify(long eventid, String tag)
Object subClass(@NotNilptr QCore object)
void Notify(long eventid)
static void setClipboardImage(@NotNilptr QImage img)
QCore(int type, QNative parent)
static void setClipboardText(String text)