2003/04/24 08:00:37
[org.ibex.core.git] / src / org / xwt / plat / Carbon.cc
1 // Copyright 2002 Adam Megacz, see the COPYING file for licensing [LGPL]
2 // see below for copyright information on the second portion of this file
3
4 #include "POSIX.cc"
5 #include <org/xwt/plat/Carbon.h>
6 #include <org/xwt/plat/Carbon$CarbonSurface.h>
7 #include <org/xwt/plat/Carbon$CarbonPicture.h>
8 #include <org/xwt/plat/Carbon$CarbonDoubleBuffer.h>
9 #include <java/lang/System.h>
10 #include <java/lang/Error.h>
11 #include <java/io/PrintStream.h>
12
13
14 // CarbonDoubleBuffer //////////////////////////////////////////////////////////////////////
15
16 void org::xwt::plat::Carbon$CarbonDoubleBuffer::drawPicture(org::xwt::Picture* s,
17                                                             jint dx1, jint dy1, jint dx2, jint dy2, jint sx1, jint sy1, jint sx2, jint sy2) {
18     org::xwt::plat::Carbon$CarbonPicture* source = (org::xwt::plat::Carbon$CarbonPicture*)s;
19     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
20 }
21
22 void org::xwt::plat::Carbon$CarbonDoubleBuffer::finalize() {
23     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
24 }
25
26 void org::xwt::plat::Carbon$CarbonSurface::blit(org::xwt::DoubleBuffer* db, jint sx, jint sy, jint dx, jint dy, jint dx2, jint dy2) {
27     org::xwt::plat::Carbon$CarbonDoubleBuffer *xdb = (org::xwt::plat::Carbon$CarbonDoubleBuffer*)db;
28     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
29 }
30
31 void org::xwt::plat::Carbon$CarbonDoubleBuffer::fillRect (jint x, jint y, jint x2, jint y2, jint argb) {
32     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
33 }
34
35 void org::xwt::plat::Carbon$CarbonDoubleBuffer::drawString(::java::lang::String* font, ::java::lang::String* text, jint x, jint y, jint argb) {
36     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
37 }
38
39
40 // CarbonSurface //////////////////////////////////////////////////////////////////////
41
42 void org::xwt::plat::Carbon$CarbonSurface::setIcon(org::xwt::Picture* pic) {
43     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
44 }
45
46 void org::xwt::plat::Carbon$CarbonSurface::setTitleBarText(java::lang::String* s) {
47     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
48 }
49
50 void org::xwt::plat::Carbon$CarbonSurface::setLimits(jint minw, jint minh, jint maxw, jint maxh) {
51     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
52 }
53
54 void org::xwt::plat::Carbon$CarbonSurface::setSize (jint width, jint height) {
55     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
56 }
57
58 void org::xwt::plat::Carbon$CarbonSurface::setLocation (jint x, jint y) {
59     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
60 }
61 void org::xwt::plat::Carbon$CarbonSurface::toFront() {
62     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
63 }
64 void org::xwt::plat::Carbon$CarbonSurface::toBack() {
65     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
66 }
67
68 void org::xwt::plat::Carbon$CarbonSurface::_dispose() {
69     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
70 }
71
72 void org::xwt::plat::Carbon$CarbonSurface::setInvisible(jboolean i) {
73     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
74 }
75
76 void org::xwt::plat::Carbon$CarbonSurface::_setMaximized(jboolean b) {
77     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
78 }
79
80 void org::xwt::plat::Carbon$CarbonSurface::_setMinimized(jboolean b) {
81     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
82 }
83
84
85
86
87 // Carbon ///////////////////////////////////////////////////////////////////
88
89 jint org::xwt::plat::Carbon::_getScreenWidth() {
90     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
91 }
92 jint org::xwt::plat::Carbon::_getScreenHeight() {
93     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
94 }
95
96 jstring org::xwt::plat::Carbon::_getClipBoard() {
97     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
98 }
99
100 void org::xwt::plat::Carbon::_setClipBoard(jstring s) {
101     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
102 }
103
104 JArray<java::lang::String*>* org::xwt::plat::Carbon::listNativeFonts() {
105     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
106 }
107
108 gnu::gcj::RawData* org::xwt::plat::Carbon::fontStringToStruct(jstring s) {
109     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
110 }
111
112 jint org::xwt::plat::Carbon::_getMaxAscent(::java::lang::String* font) {
113     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
114 }
115 jint org::xwt::plat::Carbon::_getMaxDescent(::java::lang::String* font) {
116     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
117 }
118 jint org::xwt::plat::Carbon::_stringWidth(::java::lang::String* font, ::java::lang::String* text) {
119     throw new java::lang::Error(JvNewStringLatin1("FIXME"));
120 }
121