summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/awt/peer/gtk/GtkSelection.h
blob: 5ed45d00c91a0901d8d9c585e886af89d04d5a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_awt_peer_gtk_GtkSelection__
#define __gnu_java_awt_peer_gtk_GtkSelection__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace classpath
    {
        class Pointer;
    }
    namespace java
    {
      namespace awt
      {
        namespace peer
        {
          namespace gtk
          {
              class GtkClipboard;
              class GtkSelection;
          }
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Image;
      namespace datatransfer
      {
          class DataFlavor;
      }
    }
  }
}

class gnu::java::awt::peer::gtk::GtkSelection : public ::java::lang::Object
{

public: // actually package-private
  GtkSelection(::gnu::java::awt::peer::gtk::GtkClipboard *);
public:
  virtual JArray< ::java::awt::datatransfer::DataFlavor * > * getTransferDataFlavors();
private:
  void mimeTypesAvailable(JArray< ::java::lang::String * > *);
public:
  virtual jboolean isDataFlavorSupported(::java::awt::datatransfer::DataFlavor *);
private:
  ::java::lang::String * getText();
  void textAvailable(::java::lang::String *);
  ::java::awt::Image * getImage();
  void imageAvailable(::gnu::classpath::Pointer *);
  ::java::util::List * getURIs();
  void urisAvailable(JArray< ::java::lang::String * > *);
  JArray< jbyte > * getBytes(::java::lang::String *);
  void bytesAvailable(JArray< jbyte > *);
public:
  virtual ::java::lang::Object * getTransferData(::java::awt::datatransfer::DataFlavor *);
private:
  void requestText(jboolean);
  void requestImage(jboolean);
  void requestURIs(jboolean);
  void requestBytes(jboolean, ::java::lang::String *);
  void requestMimeTypes(jboolean);
  static ::java::lang::Object * requestLock;
  jboolean __attribute__((aligned(__alignof__( ::java::lang::Object)))) clipboard;
  jboolean requestInProgress;
  jboolean mimeTypesDelivered;
  JArray< ::java::awt::datatransfer::DataFlavor * > * dataFlavors;
  jboolean textDelivered;
  ::java::lang::String * text;
  jboolean imageDelivered;
  ::gnu::classpath::Pointer * imagePointer;
  ::java::awt::Image * image;
  jboolean urisDelivered;
  ::java::util::List * uris;
  jboolean bytesDelivered;
  JArray< jbyte > * bytes;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_peer_gtk_GtkSelection__