Source Code Cross Referenced for X11.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » awt » nativebridge » linux » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » org package » org.apache.harmony.awt.nativebridge.linux 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /*
0002:         *  Licensed to the Apache Software Foundation (ASF) under one or more
0003:         *  contributor license agreements.  See the NOTICE file distributed with
0004:         *  this work for additional information regarding copyright ownership.
0005:         *  The ASF licenses this file to You under the Apache License, Version 2.0
0006:         *  (the "License"); you may not use this file except in compliance with
0007:         *  the License.  You may obtain a copy of the License at
0008:         *
0009:         *     http://www.apache.org/licenses/LICENSE-2.0
0010:         *
0011:         *  Unless required by applicable law or agreed to in writing, software
0012:         *  distributed under the License is distributed on an "AS IS" BASIS,
0013:         *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0014:         *  See the License for the specific language governing permissions and
0015:         *  limitations under the License.
0016:         */
0017:        /**
0018:         * @author Pavel Dolgov
0019:         * @version $Revision$
0020:         */package org.apache.harmony.awt.nativebridge.linux;
0021:
0022:        import org.apache.harmony.awt.nativebridge.*;
0023:
0024:        /**
0025:         * This file is based on X11 header and has been generated by the nativebridge tool.
0026:         *
0027:         *
0028:         */
0029:        public class X11 extends BasicLibWrapper {
0030:            static X11 instance;
0031:
0032:            public static synchronized X11 getInstance() {
0033:                if (instance == null) {
0034:                    instance = new X11();
0035:                }
0036:                return instance;
0037:            }
0038:
0039:            private X11() {
0040:                System.loadLibrary("X11Wrapper"); //$NON-NLS-1$
0041:                init();
0042:            }
0043:
0044:            private static native void init();
0045:
0046:            public final XImage XGetSubImage(long param_0, long param_1,
0047:                    int param_2, int param_3, int param_4, int param_5,
0048:                    long param_6, int param_7, XImage param_8, int param_9,
0049:                    int param_10) {
0050:                long tmp_0 = param_8 == null ? 0 : param_8.longLockPointer();
0051:                long tmp_ret = XGetSubImage(param_0, param_1, param_2, param_3,
0052:                        param_4, param_5, param_6, param_7, tmp_0, param_9,
0053:                        param_10);
0054:                if (param_8 != null) {
0055:                    param_8.unlock();
0056:                }
0057:                return instance.createXImage(tmp_ret);
0058:            }
0059:
0060:            public final native long XGetSubImage(long param_0, long param_1,
0061:                    int param_2, int param_3, int param_4, int param_5,
0062:                    long param_6, int param_7, long param_8, int param_9,
0063:                    int param_10);
0064:
0065:            public static class XImage extends CommonStructWrapper {
0066:
0067:                public static final int sizeof = NativeBridge.is64 ? 136 : 88;
0068:
0069:                XImage(boolean direct) {
0070:                    super (sizeof, direct);
0071:                }
0072:
0073:                XImage(VoidPointer base) {
0074:                    super (base);
0075:                }
0076:
0077:                XImage(long addr) {
0078:                    super (addr);
0079:                }
0080:
0081:                public final void set_width(int val) {
0082:                    byteBase.setInt32(0, val);
0083:                }
0084:
0085:                public final int get_width() {
0086:                    return byteBase.getInt32(0);
0087:                }
0088:
0089:                public final void set_height(int val) {
0090:                    byteBase.setInt32(4, val);
0091:                }
0092:
0093:                public final int get_height() {
0094:                    return byteBase.getInt32(4);
0095:                }
0096:
0097:                public final void set_xoffset(int val) {
0098:                    byteBase.setInt32(8, val);
0099:                }
0100:
0101:                public final int get_xoffset() {
0102:                    return byteBase.getInt32(8);
0103:                }
0104:
0105:                public final void set_format(int val) {
0106:                    byteBase.setInt32(12, val);
0107:                }
0108:
0109:                public final int get_format() {
0110:                    return byteBase.getInt32(12);
0111:                }
0112:
0113:                public final void set_data(Int8Pointer val) {
0114:                    byteBase.setPointer(16, val);
0115:                }
0116:
0117:                public final Int8Pointer get_data() {
0118:                    return nb.createInt8Pointer(byteBase.getAddress(16));
0119:                }
0120:
0121:                public final void set_byte_order(int val) {
0122:                    byteBase.setInt32(NativeBridge.is64 ? 24 : 20, val);
0123:                }
0124:
0125:                public final int get_byte_order() {
0126:                    return byteBase.getInt32(NativeBridge.is64 ? 24 : 20);
0127:                }
0128:
0129:                public final void set_bitmap_unit(int val) {
0130:                    byteBase.setInt32(NativeBridge.is64 ? 28 : 24, val);
0131:                }
0132:
0133:                public final int get_bitmap_unit() {
0134:                    return byteBase.getInt32(NativeBridge.is64 ? 28 : 24);
0135:                }
0136:
0137:                public final void set_bitmap_bit_order(int val) {
0138:                    byteBase.setInt32(NativeBridge.is64 ? 32 : 28, val);
0139:                }
0140:
0141:                public final int get_bitmap_bit_order() {
0142:                    return byteBase.getInt32(NativeBridge.is64 ? 32 : 28);
0143:                }
0144:
0145:                public final void set_bitmap_pad(int val) {
0146:                    byteBase.setInt32(NativeBridge.is64 ? 36 : 32, val);
0147:                }
0148:
0149:                public final int get_bitmap_pad() {
0150:                    return byteBase.getInt32(NativeBridge.is64 ? 36 : 32);
0151:                }
0152:
0153:                public final void set_depth(int val) {
0154:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 36, val);
0155:                }
0156:
0157:                public final int get_depth() {
0158:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 36);
0159:                }
0160:
0161:                public final void set_bytes_per_line(int val) {
0162:                    byteBase.setInt32(NativeBridge.is64 ? 44 : 40, val);
0163:                }
0164:
0165:                public final int get_bytes_per_line() {
0166:                    return byteBase.getInt32(NativeBridge.is64 ? 44 : 40);
0167:                }
0168:
0169:                public final void set_bits_per_pixel(int val) {
0170:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 44, val);
0171:                }
0172:
0173:                public final int get_bits_per_pixel() {
0174:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 44);
0175:                }
0176:
0177:                public final void set_red_mask(long val) {
0178:                    byteBase.setCLong(NativeBridge.is64 ? 56 : 48, val);
0179:                }
0180:
0181:                public final long get_red_mask() {
0182:                    return byteBase.getCLong(NativeBridge.is64 ? 56 : 48);
0183:                }
0184:
0185:                public final void set_green_mask(long val) {
0186:                    byteBase.setCLong(NativeBridge.is64 ? 64 : 52, val);
0187:                }
0188:
0189:                public final long get_green_mask() {
0190:                    return byteBase.getCLong(NativeBridge.is64 ? 64 : 52);
0191:                }
0192:
0193:                public final void set_blue_mask(long val) {
0194:                    byteBase.setCLong(NativeBridge.is64 ? 72 : 56, val);
0195:                }
0196:
0197:                public final long get_blue_mask() {
0198:                    return byteBase.getCLong(NativeBridge.is64 ? 72 : 56);
0199:                }
0200:
0201:                public final void set_obdata(Int8Pointer val) {
0202:                    byteBase.setPointer(NativeBridge.is64 ? 80 : 60, val);
0203:                }
0204:
0205:                public final Int8Pointer get_obdata() {
0206:                    return nb.createInt8Pointer(byteBase
0207:                            .getAddress(NativeBridge.is64 ? 80 : 60));
0208:                }
0209:
0210:                public final funcs get_f() {
0211:                    return instance
0212:                            .createfuncs(getElementPointer(NativeBridge.is64 ? 88
0213:                                    : 64));
0214:                }
0215:
0216:                public int size() {
0217:                    return sizeof;
0218:                }
0219:            }
0220:
0221:            public final XImage createXImage(boolean direct) {
0222:                return new XImage(direct);
0223:            }
0224:
0225:            public final XImage createXImage(VoidPointer base) {
0226:                return new XImage(base);
0227:            }
0228:
0229:            public final XImage createXImage(long addr) {
0230:                return new XImage(addr);
0231:            }
0232:
0233:            public static class funcs extends CommonStructWrapper {
0234:
0235:                public static final int sizeof = NativeBridge.is64 ? 48 : 24;
0236:
0237:                funcs(boolean direct) {
0238:                    super (sizeof, direct);
0239:                }
0240:
0241:                funcs(VoidPointer base) {
0242:                    super (base);
0243:                }
0244:
0245:                funcs(long addr) {
0246:                    super (addr);
0247:                }
0248:
0249:                public final void set_create_image(long val) {
0250:                    byteBase.setAddress(0, val);
0251:                }
0252:
0253:                public final long get_create_image() {
0254:                    return byteBase.getAddress(0);
0255:                }
0256:
0257:                public final X11.XImage create_image(long param_0,
0258:                        Visual param_1, int param_2, int param_3, int param_4,
0259:                        Int8Pointer param_5, int param_6, int param_7,
0260:                        int param_8, int param_9) {
0261:                    long tmp_0 = param_1 == null ? 0 : param_1
0262:                            .longLockPointer();
0263:                    long tmp_1 = param_5 == null ? 0 : param_5
0264:                            .longLockPointer();
0265:                    long tmp_ret = instance.proxycall0(get_create_image(),
0266:                            param_0, tmp_0, param_2, param_3, param_4, tmp_1,
0267:                            param_6, param_7, param_8, param_9);
0268:                    if (param_1 != null) {
0269:                        param_1.unlock();
0270:                    }
0271:                    if (param_5 != null) {
0272:                        param_5.unlock();
0273:                    }
0274:                    return X11.instance.createXImage(tmp_ret);
0275:                }
0276:
0277:                public final void set_destroy_image(long val) {
0278:                    byteBase.setAddress(NativeBridge.is64 ? 8 : 4, val);
0279:                }
0280:
0281:                public final long get_destroy_image() {
0282:                    return byteBase.getAddress(NativeBridge.is64 ? 8 : 4);
0283:                }
0284:
0285:                public final int destroy_image(X11.XImage param_0) {
0286:                    long tmp_0 = param_0 == null ? 0 : param_0
0287:                            .longLockPointer();
0288:                    int tmp_ret = instance.proxycall1(get_destroy_image(),
0289:                            tmp_0);
0290:                    if (param_0 != null) {
0291:                        param_0.unlock();
0292:                    }
0293:                    return tmp_ret;
0294:                }
0295:
0296:                public final void set_get_pixel(long val) {
0297:                    byteBase.setAddress(NativeBridge.is64 ? 16 : 8, val);
0298:                }
0299:
0300:                public final long get_get_pixel() {
0301:                    return byteBase.getAddress(NativeBridge.is64 ? 16 : 8);
0302:                }
0303:
0304:                public final long get_pixel(X11.XImage param_0, int param_1,
0305:                        int param_2) {
0306:                    long tmp_0 = param_0 == null ? 0 : param_0
0307:                            .longLockPointer();
0308:                    long tmp_ret = instance.proxycall2(get_get_pixel(), tmp_0,
0309:                            param_1, param_2);
0310:                    if (param_0 != null) {
0311:                        param_0.unlock();
0312:                    }
0313:                    return tmp_ret;
0314:                }
0315:
0316:                public final void set_put_pixel(long val) {
0317:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
0318:                }
0319:
0320:                public final long get_put_pixel() {
0321:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
0322:                }
0323:
0324:                public final int put_pixel(X11.XImage param_0, int param_1,
0325:                        int param_2, long param_3) {
0326:                    long tmp_0 = param_0 == null ? 0 : param_0
0327:                            .longLockPointer();
0328:                    int tmp_ret = instance.proxycall3(get_put_pixel(), tmp_0,
0329:                            param_1, param_2, param_3);
0330:                    if (param_0 != null) {
0331:                        param_0.unlock();
0332:                    }
0333:                    return tmp_ret;
0334:                }
0335:
0336:                public final void set_sub_image(long val) {
0337:                    byteBase.setAddress(NativeBridge.is64 ? 32 : 16, val);
0338:                }
0339:
0340:                public final long get_sub_image() {
0341:                    return byteBase.getAddress(NativeBridge.is64 ? 32 : 16);
0342:                }
0343:
0344:                public final X11.XImage sub_image(X11.XImage param_0,
0345:                        int param_1, int param_2, int param_3, int param_4) {
0346:                    long tmp_0 = param_0 == null ? 0 : param_0
0347:                            .longLockPointer();
0348:                    long tmp_ret = instance.proxycall4(get_sub_image(), tmp_0,
0349:                            param_1, param_2, param_3, param_4);
0350:                    if (param_0 != null) {
0351:                        param_0.unlock();
0352:                    }
0353:                    return X11.instance.createXImage(tmp_ret);
0354:                }
0355:
0356:                public final void set_add_pixel(long val) {
0357:                    byteBase.setAddress(NativeBridge.is64 ? 40 : 20, val);
0358:                }
0359:
0360:                public final long get_add_pixel() {
0361:                    return byteBase.getAddress(NativeBridge.is64 ? 40 : 20);
0362:                }
0363:
0364:                public final int add_pixel(X11.XImage param_0, long param_1) {
0365:                    long tmp_0 = param_0 == null ? 0 : param_0
0366:                            .longLockPointer();
0367:                    int tmp_ret = instance.proxycall5(get_add_pixel(), tmp_0,
0368:                            param_1);
0369:                    if (param_0 != null) {
0370:                        param_0.unlock();
0371:                    }
0372:                    return tmp_ret;
0373:                }
0374:
0375:                public int size() {
0376:                    return sizeof;
0377:                }
0378:            }
0379:
0380:            public final funcs createfuncs(boolean direct) {
0381:                return new funcs(direct);
0382:            }
0383:
0384:            public final funcs createfuncs(VoidPointer base) {
0385:                return new funcs(base);
0386:            }
0387:
0388:            public final funcs createfuncs(long addr) {
0389:                return new funcs(addr);
0390:            }
0391:
0392:            public static class Visual extends CommonStructWrapper {
0393:
0394:                public static final int sizeof = NativeBridge.is64 ? 56 : 32;
0395:
0396:                Visual(boolean direct) {
0397:                    super (sizeof, direct);
0398:                }
0399:
0400:                Visual(VoidPointer base) {
0401:                    super (base);
0402:                }
0403:
0404:                Visual(long addr) {
0405:                    super (addr);
0406:                }
0407:
0408:                public final XExtData get_ext_data() {
0409:                    return instance.createXExtData(byteBase.getAddress(0));
0410:                }
0411:
0412:                public final void set_visualid(long val) {
0413:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
0414:                }
0415:
0416:                public final long get_visualid() {
0417:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
0418:                }
0419:
0420:                public final void set_class(int val) {
0421:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
0422:                }
0423:
0424:                public final int get_class() {
0425:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
0426:                }
0427:
0428:                public final void set_red_mask(long val) {
0429:                    byteBase.setCLong(NativeBridge.is64 ? 24 : 12, val);
0430:                }
0431:
0432:                public final long get_red_mask() {
0433:                    return byteBase.getCLong(NativeBridge.is64 ? 24 : 12);
0434:                }
0435:
0436:                public final void set_green_mask(long val) {
0437:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
0438:                }
0439:
0440:                public final long get_green_mask() {
0441:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
0442:                }
0443:
0444:                public final void set_blue_mask(long val) {
0445:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
0446:                }
0447:
0448:                public final long get_blue_mask() {
0449:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
0450:                }
0451:
0452:                public final void set_bits_per_rgb(int val) {
0453:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
0454:                }
0455:
0456:                public final int get_bits_per_rgb() {
0457:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
0458:                }
0459:
0460:                public final void set_map_entries(int val) {
0461:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 28, val);
0462:                }
0463:
0464:                public final int get_map_entries() {
0465:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 28);
0466:                }
0467:
0468:                public int size() {
0469:                    return sizeof;
0470:                }
0471:            }
0472:
0473:            public final Visual createVisual(boolean direct) {
0474:                return new Visual(direct);
0475:            }
0476:
0477:            public final Visual createVisual(VoidPointer base) {
0478:                return new Visual(base);
0479:            }
0480:
0481:            public final Visual createVisual(long addr) {
0482:                return new Visual(addr);
0483:            }
0484:
0485:            public static class XExtData extends CommonStructWrapper {
0486:
0487:                public static final int sizeof = NativeBridge.is64 ? 32 : 16;
0488:
0489:                XExtData(boolean direct) {
0490:                    super (sizeof, direct);
0491:                }
0492:
0493:                XExtData(VoidPointer base) {
0494:                    super (base);
0495:                }
0496:
0497:                XExtData(long addr) {
0498:                    super (addr);
0499:                }
0500:
0501:                public final void set_number(int val) {
0502:                    byteBase.setInt32(0, val);
0503:                }
0504:
0505:                public final int get_number() {
0506:                    return byteBase.getInt32(0);
0507:                }
0508:
0509:                public final XExtData get_next() {
0510:                    return instance.createXExtData(byteBase
0511:                            .getAddress(NativeBridge.is64 ? 8 : 4));
0512:                }
0513:
0514:                public final void set_free_private(long val) {
0515:                    byteBase.setAddress(NativeBridge.is64 ? 16 : 8, val);
0516:                }
0517:
0518:                public final long get_free_private() {
0519:                    return byteBase.getAddress(NativeBridge.is64 ? 16 : 8);
0520:                }
0521:
0522:                public final int free_private(XExtData extension) {
0523:                    long tmp_0 = extension == null ? 0 : extension
0524:                            .longLockPointer();
0525:                    int tmp_ret = instance
0526:                            .proxycall6(get_free_private(), tmp_0);
0527:                    if (extension != null) {
0528:                        extension.unlock();
0529:                    }
0530:                    return tmp_ret;
0531:                }
0532:
0533:                public final void set_private_data(Int8Pointer val) {
0534:                    byteBase.setPointer(NativeBridge.is64 ? 24 : 12, val);
0535:                }
0536:
0537:                public final Int8Pointer get_private_data() {
0538:                    return nb.createInt8Pointer(byteBase
0539:                            .getAddress(NativeBridge.is64 ? 24 : 12));
0540:                }
0541:
0542:                public int size() {
0543:                    return sizeof;
0544:                }
0545:            }
0546:
0547:            public final XExtData createXExtData(boolean direct) {
0548:                return new XExtData(direct);
0549:            }
0550:
0551:            public final XExtData createXExtData(VoidPointer base) {
0552:                return new XExtData(base);
0553:            }
0554:
0555:            public final XExtData createXExtData(long addr) {
0556:                return new XExtData(addr);
0557:            }
0558:
0559:            final native long proxycall0(long fnptr, long param_0,
0560:                    long param_1, int param_2, int param_3, int param_4,
0561:                    long param_5, int param_6, int param_7, int param_8,
0562:                    int param_9);
0563:
0564:            final native int proxycall1(long fnptr, long param_0);
0565:
0566:            final native long proxycall2(long fnptr, long param_0, int param_1,
0567:                    int param_2);
0568:
0569:            final native int proxycall3(long fnptr, long param_0, int param_1,
0570:                    int param_2, long param_3);
0571:
0572:            final native long proxycall4(long fnptr, long param_0, int param_1,
0573:                    int param_2, int param_3, int param_4);
0574:
0575:            final native int proxycall5(long fnptr, long param_0, long param_1);
0576:
0577:            final native int proxycall6(long fnptr, long extension);
0578:
0579:            public final int XAllocColor(long param_0, long param_1,
0580:                    XColor param_2) {
0581:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
0582:                int tmp_ret = XAllocColor(param_0, param_1, tmp_0);
0583:                if (param_2 != null) {
0584:                    param_2.unlock();
0585:                }
0586:                return tmp_ret;
0587:            }
0588:
0589:            public final native int XAllocColor(long param_0, long param_1,
0590:                    long param_2);
0591:
0592:            public static class XColor extends CommonStructWrapper {
0593:
0594:                public static final int sizeof = NativeBridge.is64 ? 16 : 12;
0595:
0596:                XColor(boolean direct) {
0597:                    super (sizeof, direct);
0598:                }
0599:
0600:                XColor(VoidPointer base) {
0601:                    super (base);
0602:                }
0603:
0604:                XColor(long addr) {
0605:                    super (addr);
0606:                }
0607:
0608:                public final void set_pixel(long val) {
0609:                    byteBase.setCLong(0, val);
0610:                }
0611:
0612:                public final long get_pixel() {
0613:                    return byteBase.getCLong(0);
0614:                }
0615:
0616:                public final void set_red(short val) {
0617:                    byteBase.setInt16(NativeBridge.is64 ? 8 : 4, val);
0618:                }
0619:
0620:                public final short get_red() {
0621:                    return byteBase.getInt16(NativeBridge.is64 ? 8 : 4);
0622:                }
0623:
0624:                public final void set_green(short val) {
0625:                    byteBase.setInt16(NativeBridge.is64 ? 10 : 6, val);
0626:                }
0627:
0628:                public final short get_green() {
0629:                    return byteBase.getInt16(NativeBridge.is64 ? 10 : 6);
0630:                }
0631:
0632:                public final void set_blue(short val) {
0633:                    byteBase.setInt16(NativeBridge.is64 ? 12 : 8, val);
0634:                }
0635:
0636:                public final short get_blue() {
0637:                    return byteBase.getInt16(NativeBridge.is64 ? 12 : 8);
0638:                }
0639:
0640:                public final void set_flags(byte val) {
0641:                    byteBase.set(NativeBridge.is64 ? 14 : 10, val);
0642:                }
0643:
0644:                public final byte get_flags() {
0645:                    return byteBase.get(NativeBridge.is64 ? 14 : 10);
0646:                }
0647:
0648:                public final void set_pad(byte val) {
0649:                    byteBase.set(NativeBridge.is64 ? 15 : 11, val);
0650:                }
0651:
0652:                public final byte get_pad() {
0653:                    return byteBase.get(NativeBridge.is64 ? 15 : 11);
0654:                }
0655:
0656:                public int size() {
0657:                    return sizeof;
0658:                }
0659:            }
0660:
0661:            public final XColor createXColor(boolean direct) {
0662:                return new XColor(direct);
0663:            }
0664:
0665:            public final XColor createXColor(VoidPointer base) {
0666:                return new XColor(base);
0667:            }
0668:
0669:            public final XColor createXColor(long addr) {
0670:                return new XColor(addr);
0671:            }
0672:
0673:            public final int XLookupString(XKeyEvent param_0,
0674:                    Int8Pointer param_1, int param_2, CLongPointer param_3,
0675:                    XComposeStatus param_4) {
0676:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
0677:                long tmp_1 = param_1 == null ? 0 : param_1.longLockPointer();
0678:                long tmp_2 = param_3 == null ? 0 : param_3.longLockPointer();
0679:                long tmp_3 = param_4 == null ? 0 : param_4.longLockPointer();
0680:                int tmp_ret = XLookupString(tmp_0, tmp_1, param_2, tmp_2, tmp_3);
0681:                if (param_0 != null) {
0682:                    param_0.unlock();
0683:                }
0684:                if (param_1 != null) {
0685:                    param_1.unlock();
0686:                }
0687:                if (param_3 != null) {
0688:                    param_3.unlock();
0689:                }
0690:                if (param_4 != null) {
0691:                    param_4.unlock();
0692:                }
0693:                return tmp_ret;
0694:            }
0695:
0696:            public final native int XLookupString(long param_0, long param_1,
0697:                    int param_2, long param_3, long param_4);
0698:
0699:            public static class XKeyEvent extends CommonStructWrapper {
0700:
0701:                public static final int sizeof = NativeBridge.is64 ? 96 : 60;
0702:
0703:                XKeyEvent(boolean direct) {
0704:                    super (sizeof, direct);
0705:                }
0706:
0707:                XKeyEvent(VoidPointer base) {
0708:                    super (base);
0709:                }
0710:
0711:                XKeyEvent(long addr) {
0712:                    super (addr);
0713:                }
0714:
0715:                public final void set_type(int val) {
0716:                    byteBase.setInt32(0, val);
0717:                }
0718:
0719:                public final int get_type() {
0720:                    return byteBase.getInt32(0);
0721:                }
0722:
0723:                public final void set_serial(long val) {
0724:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
0725:                }
0726:
0727:                public final long get_serial() {
0728:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
0729:                }
0730:
0731:                public final void set_send_event(int val) {
0732:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
0733:                }
0734:
0735:                public final int get_send_event() {
0736:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
0737:                }
0738:
0739:                public final void set_display(long val) {
0740:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
0741:                }
0742:
0743:                public final long get_display() {
0744:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
0745:                }
0746:
0747:                public final void set_window(long val) {
0748:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
0749:                }
0750:
0751:                public final long get_window() {
0752:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
0753:                }
0754:
0755:                public final void set_root(long val) {
0756:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
0757:                }
0758:
0759:                public final long get_root() {
0760:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
0761:                }
0762:
0763:                public final void set_subwindow(long val) {
0764:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 24, val);
0765:                }
0766:
0767:                public final long get_subwindow() {
0768:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 24);
0769:                }
0770:
0771:                public final void set_time(long val) {
0772:                    byteBase.setCLong(NativeBridge.is64 ? 56 : 28, val);
0773:                }
0774:
0775:                public final long get_time() {
0776:                    return byteBase.getCLong(NativeBridge.is64 ? 56 : 28);
0777:                }
0778:
0779:                public final void set_x(int val) {
0780:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 32, val);
0781:                }
0782:
0783:                public final int get_x() {
0784:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 32);
0785:                }
0786:
0787:                public final void set_y(int val) {
0788:                    byteBase.setInt32(NativeBridge.is64 ? 68 : 36, val);
0789:                }
0790:
0791:                public final int get_y() {
0792:                    return byteBase.getInt32(NativeBridge.is64 ? 68 : 36);
0793:                }
0794:
0795:                public final void set_x_root(int val) {
0796:                    byteBase.setInt32(NativeBridge.is64 ? 72 : 40, val);
0797:                }
0798:
0799:                public final int get_x_root() {
0800:                    return byteBase.getInt32(NativeBridge.is64 ? 72 : 40);
0801:                }
0802:
0803:                public final void set_y_root(int val) {
0804:                    byteBase.setInt32(NativeBridge.is64 ? 76 : 44, val);
0805:                }
0806:
0807:                public final int get_y_root() {
0808:                    return byteBase.getInt32(NativeBridge.is64 ? 76 : 44);
0809:                }
0810:
0811:                public final void set_state(int val) {
0812:                    byteBase.setInt32(NativeBridge.is64 ? 80 : 48, val);
0813:                }
0814:
0815:                public final int get_state() {
0816:                    return byteBase.getInt32(NativeBridge.is64 ? 80 : 48);
0817:                }
0818:
0819:                public final void set_keycode(int val) {
0820:                    byteBase.setInt32(NativeBridge.is64 ? 84 : 52, val);
0821:                }
0822:
0823:                public final int get_keycode() {
0824:                    return byteBase.getInt32(NativeBridge.is64 ? 84 : 52);
0825:                }
0826:
0827:                public final void set_same_screen(int val) {
0828:                    byteBase.setInt32(NativeBridge.is64 ? 88 : 56, val);
0829:                }
0830:
0831:                public final int get_same_screen() {
0832:                    return byteBase.getInt32(NativeBridge.is64 ? 88 : 56);
0833:                }
0834:
0835:                public int size() {
0836:                    return sizeof;
0837:                }
0838:            }
0839:
0840:            public final XKeyEvent createXKeyEvent(boolean direct) {
0841:                return new XKeyEvent(direct);
0842:            }
0843:
0844:            public final XKeyEvent createXKeyEvent(VoidPointer base) {
0845:                return new XKeyEvent(base);
0846:            }
0847:
0848:            public final XKeyEvent createXKeyEvent(long addr) {
0849:                return new XKeyEvent(addr);
0850:            }
0851:
0852:            public static class XComposeStatus extends CommonStructWrapper {
0853:
0854:                public static final int sizeof = NativeBridge.is64 ? 16 : 8;
0855:
0856:                XComposeStatus(boolean direct) {
0857:                    super (sizeof, direct);
0858:                }
0859:
0860:                XComposeStatus(VoidPointer base) {
0861:                    super (base);
0862:                }
0863:
0864:                XComposeStatus(long addr) {
0865:                    super (addr);
0866:                }
0867:
0868:                public final void set_compose_ptr(Int8Pointer val) {
0869:                    byteBase.setPointer(0, val);
0870:                }
0871:
0872:                public final Int8Pointer get_compose_ptr() {
0873:                    return nb.createInt8Pointer(byteBase.getAddress(0));
0874:                }
0875:
0876:                public final void set_chars_matched(int val) {
0877:                    byteBase.setInt32(NativeBridge.is64 ? 8 : 4, val);
0878:                }
0879:
0880:                public final int get_chars_matched() {
0881:                    return byteBase.getInt32(NativeBridge.is64 ? 8 : 4);
0882:                }
0883:
0884:                public int size() {
0885:                    return sizeof;
0886:                }
0887:            }
0888:
0889:            public final XComposeStatus createXComposeStatus(boolean direct) {
0890:                return new XComposeStatus(direct);
0891:            }
0892:
0893:            public final XComposeStatus createXComposeStatus(VoidPointer base) {
0894:                return new XComposeStatus(base);
0895:            }
0896:
0897:            public final XComposeStatus createXComposeStatus(long addr) {
0898:                return new XComposeStatus(addr);
0899:            }
0900:
0901:            public final int XGetWMNormalHints(long param_0, long param_1,
0902:                    XSizeHints param_2, CLongPointer param_3) {
0903:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
0904:                long tmp_1 = param_3 == null ? 0 : param_3.longLockPointer();
0905:                int tmp_ret = XGetWMNormalHints(param_0, param_1, tmp_0, tmp_1);
0906:                if (param_2 != null) {
0907:                    param_2.unlock();
0908:                }
0909:                if (param_3 != null) {
0910:                    param_3.unlock();
0911:                }
0912:                return tmp_ret;
0913:            }
0914:
0915:            public final native int XGetWMNormalHints(long param_0,
0916:                    long param_1, long param_2, long param_3);
0917:
0918:            public static class XSizeHints extends CommonStructWrapper {
0919:
0920:                public static final int sizeof = NativeBridge.is64 ? 80 : 72;
0921:
0922:                XSizeHints(boolean direct) {
0923:                    super (sizeof, direct);
0924:                }
0925:
0926:                XSizeHints(VoidPointer base) {
0927:                    super (base);
0928:                }
0929:
0930:                XSizeHints(long addr) {
0931:                    super (addr);
0932:                }
0933:
0934:                public final void set_flags(long val) {
0935:                    byteBase.setCLong(0, val);
0936:                }
0937:
0938:                public final long get_flags() {
0939:                    return byteBase.getCLong(0);
0940:                }
0941:
0942:                public final void set_x(int val) {
0943:                    byteBase.setInt32(NativeBridge.is64 ? 8 : 4, val);
0944:                }
0945:
0946:                public final int get_x() {
0947:                    return byteBase.getInt32(NativeBridge.is64 ? 8 : 4);
0948:                }
0949:
0950:                public final void set_y(int val) {
0951:                    byteBase.setInt32(NativeBridge.is64 ? 12 : 8, val);
0952:                }
0953:
0954:                public final int get_y() {
0955:                    return byteBase.getInt32(NativeBridge.is64 ? 12 : 8);
0956:                }
0957:
0958:                public final void set_width(int val) {
0959:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 12, val);
0960:                }
0961:
0962:                public final int get_width() {
0963:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 12);
0964:                }
0965:
0966:                public final void set_height(int val) {
0967:                    byteBase.setInt32(NativeBridge.is64 ? 20 : 16, val);
0968:                }
0969:
0970:                public final int get_height() {
0971:                    return byteBase.getInt32(NativeBridge.is64 ? 20 : 16);
0972:                }
0973:
0974:                public final void set_min_width(int val) {
0975:                    byteBase.setInt32(NativeBridge.is64 ? 24 : 20, val);
0976:                }
0977:
0978:                public final int get_min_width() {
0979:                    return byteBase.getInt32(NativeBridge.is64 ? 24 : 20);
0980:                }
0981:
0982:                public final void set_min_height(int val) {
0983:                    byteBase.setInt32(NativeBridge.is64 ? 28 : 24, val);
0984:                }
0985:
0986:                public final int get_min_height() {
0987:                    return byteBase.getInt32(NativeBridge.is64 ? 28 : 24);
0988:                }
0989:
0990:                public final void set_max_width(int val) {
0991:                    byteBase.setInt32(NativeBridge.is64 ? 32 : 28, val);
0992:                }
0993:
0994:                public final int get_max_width() {
0995:                    return byteBase.getInt32(NativeBridge.is64 ? 32 : 28);
0996:                }
0997:
0998:                public final void set_max_height(int val) {
0999:                    byteBase.setInt32(NativeBridge.is64 ? 36 : 32, val);
1000:                }
1001:
1002:                public final int get_max_height() {
1003:                    return byteBase.getInt32(NativeBridge.is64 ? 36 : 32);
1004:                }
1005:
1006:                public final void set_width_inc(int val) {
1007:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 36, val);
1008:                }
1009:
1010:                public final int get_width_inc() {
1011:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 36);
1012:                }
1013:
1014:                public final void set_height_inc(int val) {
1015:                    byteBase.setInt32(NativeBridge.is64 ? 44 : 40, val);
1016:                }
1017:
1018:                public final int get_height_inc() {
1019:                    return byteBase.getInt32(NativeBridge.is64 ? 44 : 40);
1020:                }
1021:
1022:                public final void set_min_aspect_x(int val) {
1023:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 44, val);
1024:                }
1025:
1026:                public final int get_min_aspect_x() {
1027:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 44);
1028:                }
1029:
1030:                public final void set_min_aspect_y(int val) {
1031:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 48, val);
1032:                }
1033:
1034:                public final int get_min_aspect_y() {
1035:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 48);
1036:                }
1037:
1038:                public final void set_max_aspect_x(int val) {
1039:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 52, val);
1040:                }
1041:
1042:                public final int get_max_aspect_x() {
1043:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 52);
1044:                }
1045:
1046:                public final void set_max_aspect_y(int val) {
1047:                    byteBase.setInt32(NativeBridge.is64 ? 60 : 56, val);
1048:                }
1049:
1050:                public final int get_max_aspect_y() {
1051:                    return byteBase.getInt32(NativeBridge.is64 ? 60 : 56);
1052:                }
1053:
1054:                public final void set_base_width(int val) {
1055:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 60, val);
1056:                }
1057:
1058:                public final int get_base_width() {
1059:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 60);
1060:                }
1061:
1062:                public final void set_base_height(int val) {
1063:                    byteBase.setInt32(NativeBridge.is64 ? 68 : 64, val);
1064:                }
1065:
1066:                public final int get_base_height() {
1067:                    return byteBase.getInt32(NativeBridge.is64 ? 68 : 64);
1068:                }
1069:
1070:                public final void set_win_gravity(int val) {
1071:                    byteBase.setInt32(NativeBridge.is64 ? 72 : 68, val);
1072:                }
1073:
1074:                public final int get_win_gravity() {
1075:                    return byteBase.getInt32(NativeBridge.is64 ? 72 : 68);
1076:                }
1077:
1078:                public int size() {
1079:                    return sizeof;
1080:                }
1081:            }
1082:
1083:            public final XSizeHints createXSizeHints(boolean direct) {
1084:                return new XSizeHints(direct);
1085:            }
1086:
1087:            public final XSizeHints createXSizeHints(VoidPointer base) {
1088:                return new XSizeHints(base);
1089:            }
1090:
1091:            public final XSizeHints createXSizeHints(long addr) {
1092:                return new XSizeHints(addr);
1093:            }
1094:
1095:            public final long XCreatePixmapCursor(long param_0, long param_1,
1096:                    long param_2, X11.XColor param_3, X11.XColor param_4,
1097:                    int param_5, int param_6) {
1098:                long tmp_0 = param_3 == null ? 0 : param_3.longLockPointer();
1099:                long tmp_1 = param_4 == null ? 0 : param_4.longLockPointer();
1100:                long tmp_ret = XCreatePixmapCursor(param_0, param_1, param_2,
1101:                        tmp_0, tmp_1, param_5, param_6);
1102:                if (param_3 != null) {
1103:                    param_3.unlock();
1104:                }
1105:                if (param_4 != null) {
1106:                    param_4.unlock();
1107:                }
1108:                return tmp_ret;
1109:            }
1110:
1111:            public final native long XCreatePixmapCursor(long param_0,
1112:                    long param_1, long param_2, long param_3, long param_4,
1113:                    int param_5, int param_6);
1114:
1115:            public final native int XSetInputFocus(long param_0, long param_1,
1116:                    int param_2, long param_3);
1117:
1118:            public final long XOpenDisplay(String param_0) {
1119:                Int8Pointer _param_0 = null == param_0 ? null : nb
1120:                        .createInt8Pointer(param_0, false);
1121:                long tmp_0 = _param_0 == null ? 0 : _param_0.longLockPointer();
1122:                long tmp_ret = XOpenDisplay(tmp_0);
1123:                if (_param_0 != null) {
1124:                    _param_0.unlock();
1125:                    _param_0.free();
1126:                }
1127:                return tmp_ret;
1128:            }
1129:
1130:            public final long XOpenDisplay(Int8Pointer param_0) {
1131:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
1132:                long tmp_ret = XOpenDisplay(tmp_0);
1133:                if (param_0 != null) {
1134:                    param_0.unlock();
1135:                }
1136:                return tmp_ret;
1137:            }
1138:
1139:            public final native long XOpenDisplay(long param_0);
1140:
1141:            public final native int XGrabServer(long param_0);
1142:
1143:            public final native long XCreateFontCursor(long param_0, int param_1);
1144:
1145:            public final X11.XImage XCreateImage(long param_0,
1146:                    X11.Visual param_1, int param_2, int param_3, int param_4,
1147:                    Int8Pointer param_5, int param_6, int param_7, int param_8,
1148:                    int param_9) {
1149:                long tmp_0 = param_1 == null ? 0 : param_1.longLockPointer();
1150:                long tmp_1 = param_5 == null ? 0 : param_5.longLockPointer();
1151:                long tmp_ret = XCreateImage(param_0, tmp_0, param_2, param_3,
1152:                        param_4, tmp_1, param_6, param_7, param_8, param_9);
1153:                if (param_1 != null) {
1154:                    param_1.unlock();
1155:                }
1156:                if (param_5 != null) {
1157:                    param_5.unlock();
1158:                }
1159:                return X11.instance.createXImage(tmp_ret);
1160:            }
1161:
1162:            public final native long XCreateImage(long param_0, long param_1,
1163:                    int param_2, int param_3, int param_4, long param_5,
1164:                    int param_6, int param_7, int param_8, int param_9);
1165:
1166:            public final int XRestackWindows(long param_0,
1167:                    CLongPointer param_1, int param_2) {
1168:                long tmp_0 = param_1 == null ? 0 : param_1.longLockPointer();
1169:                int tmp_ret = XRestackWindows(param_0, tmp_0, param_2);
1170:                if (param_1 != null) {
1171:                    param_1.unlock();
1172:                }
1173:                return tmp_ret;
1174:            }
1175:
1176:            public final native int XRestackWindows(long param_0, long param_1,
1177:                    int param_2);
1178:
1179:            public final native int XDefaultDepth(long param_0, int param_1);
1180:
1181:            public final int XFree(VoidPointer param_0) {
1182:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
1183:                int tmp_ret = XFree(tmp_0);
1184:                if (param_0 != null) {
1185:                    param_0.unlock();
1186:                }
1187:                return tmp_ret;
1188:            }
1189:
1190:            public final native int XFree(long param_0);
1191:
1192:            public final native int XMoveWindow(long param_0, long param_1,
1193:                    int param_2, int param_3);
1194:
1195:            public final native int XScreenCount(long param_0);
1196:
1197:            public final native long XDefaultRootWindow(long param_0);
1198:
1199:            public final native int XResizeWindow(long param_0, long param_1,
1200:                    int param_2, int param_3);
1201:
1202:            public final int XFillPolygon(long param_0, long param_1,
1203:                    long param_2, XPoint param_3, int param_4, int param_5,
1204:                    int param_6) {
1205:                long tmp_0 = param_3 == null ? 0 : param_3.longLockPointer();
1206:                int tmp_ret = XFillPolygon(param_0, param_1, param_2, tmp_0,
1207:                        param_4, param_5, param_6);
1208:                if (param_3 != null) {
1209:                    param_3.unlock();
1210:                }
1211:                return tmp_ret;
1212:            }
1213:
1214:            public final native int XFillPolygon(long param_0, long param_1,
1215:                    long param_2, long param_3, int param_4, int param_5,
1216:                    int param_6);
1217:
1218:            public static class XPoint extends CommonStructWrapper {
1219:
1220:                public static final int sizeof = 4;
1221:
1222:                XPoint(boolean direct) {
1223:                    super (sizeof, direct);
1224:                }
1225:
1226:                XPoint(VoidPointer base) {
1227:                    super (base);
1228:                }
1229:
1230:                XPoint(long addr) {
1231:                    super (addr);
1232:                }
1233:
1234:                public final void set_x(short val) {
1235:                    byteBase.setInt16(0, val);
1236:                }
1237:
1238:                public final short get_x() {
1239:                    return byteBase.getInt16(0);
1240:                }
1241:
1242:                public final void set_y(short val) {
1243:                    byteBase.setInt16(2, val);
1244:                }
1245:
1246:                public final short get_y() {
1247:                    return byteBase.getInt16(2);
1248:                }
1249:
1250:                public int size() {
1251:                    return sizeof;
1252:                }
1253:            }
1254:
1255:            public final XPoint createXPoint(boolean direct) {
1256:                return new XPoint(direct);
1257:            }
1258:
1259:            public final XPoint createXPoint(VoidPointer base) {
1260:                return new XPoint(base);
1261:            }
1262:
1263:            public final XPoint createXPoint(long addr) {
1264:                return new XPoint(addr);
1265:            }
1266:
1267:            public final native int XTestFakeMotionEvent(long param_0,
1268:                    int param_1, int param_2, int param_3, long param_4);
1269:
1270:            public final long XCreateGC(long param_0, long param_1,
1271:                    long param_2, XGCValues param_3) {
1272:                long tmp_0 = param_3 == null ? 0 : param_3.longLockPointer();
1273:                long tmp_ret = XCreateGC(param_0, param_1, param_2, tmp_0);
1274:                if (param_3 != null) {
1275:                    param_3.unlock();
1276:                }
1277:                return tmp_ret;
1278:            }
1279:
1280:            public final native long XCreateGC(long param_0, long param_1,
1281:                    long param_2, long param_3);
1282:
1283:            public static class XGCValues extends CommonStructWrapper {
1284:
1285:                public static final int sizeof = NativeBridge.is64 ? 128 : 92;
1286:
1287:                XGCValues(boolean direct) {
1288:                    super (sizeof, direct);
1289:                }
1290:
1291:                XGCValues(VoidPointer base) {
1292:                    super (base);
1293:                }
1294:
1295:                XGCValues(long addr) {
1296:                    super (addr);
1297:                }
1298:
1299:                public final void set_function(int val) {
1300:                    byteBase.setInt32(0, val);
1301:                }
1302:
1303:                public final int get_function() {
1304:                    return byteBase.getInt32(0);
1305:                }
1306:
1307:                public final void set_plane_mask(long val) {
1308:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
1309:                }
1310:
1311:                public final long get_plane_mask() {
1312:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
1313:                }
1314:
1315:                public final void set_foreground(long val) {
1316:                    byteBase.setCLong(NativeBridge.is64 ? 16 : 8, val);
1317:                }
1318:
1319:                public final long get_foreground() {
1320:                    return byteBase.getCLong(NativeBridge.is64 ? 16 : 8);
1321:                }
1322:
1323:                public final void set_background(long val) {
1324:                    byteBase.setCLong(NativeBridge.is64 ? 24 : 12, val);
1325:                }
1326:
1327:                public final long get_background() {
1328:                    return byteBase.getCLong(NativeBridge.is64 ? 24 : 12);
1329:                }
1330:
1331:                public final void set_line_width(int val) {
1332:                    byteBase.setInt32(NativeBridge.is64 ? 32 : 16, val);
1333:                }
1334:
1335:                public final int get_line_width() {
1336:                    return byteBase.getInt32(NativeBridge.is64 ? 32 : 16);
1337:                }
1338:
1339:                public final void set_line_style(int val) {
1340:                    byteBase.setInt32(NativeBridge.is64 ? 36 : 20, val);
1341:                }
1342:
1343:                public final int get_line_style() {
1344:                    return byteBase.getInt32(NativeBridge.is64 ? 36 : 20);
1345:                }
1346:
1347:                public final void set_cap_style(int val) {
1348:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 24, val);
1349:                }
1350:
1351:                public final int get_cap_style() {
1352:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 24);
1353:                }
1354:
1355:                public final void set_join_style(int val) {
1356:                    byteBase.setInt32(NativeBridge.is64 ? 44 : 28, val);
1357:                }
1358:
1359:                public final int get_join_style() {
1360:                    return byteBase.getInt32(NativeBridge.is64 ? 44 : 28);
1361:                }
1362:
1363:                public final void set_fill_style(int val) {
1364:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 32, val);
1365:                }
1366:
1367:                public final int get_fill_style() {
1368:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 32);
1369:                }
1370:
1371:                public final void set_fill_rule(int val) {
1372:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 36, val);
1373:                }
1374:
1375:                public final int get_fill_rule() {
1376:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 36);
1377:                }
1378:
1379:                public final void set_arc_mode(int val) {
1380:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 40, val);
1381:                }
1382:
1383:                public final int get_arc_mode() {
1384:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 40);
1385:                }
1386:
1387:                public final void set_tile(long val) {
1388:                    byteBase.setCLong(NativeBridge.is64 ? 64 : 44, val);
1389:                }
1390:
1391:                public final long get_tile() {
1392:                    return byteBase.getCLong(NativeBridge.is64 ? 64 : 44);
1393:                }
1394:
1395:                public final void set_stipple(long val) {
1396:                    byteBase.setCLong(NativeBridge.is64 ? 72 : 48, val);
1397:                }
1398:
1399:                public final long get_stipple() {
1400:                    return byteBase.getCLong(NativeBridge.is64 ? 72 : 48);
1401:                }
1402:
1403:                public final void set_ts_x_origin(int val) {
1404:                    byteBase.setInt32(NativeBridge.is64 ? 80 : 52, val);
1405:                }
1406:
1407:                public final int get_ts_x_origin() {
1408:                    return byteBase.getInt32(NativeBridge.is64 ? 80 : 52);
1409:                }
1410:
1411:                public final void set_ts_y_origin(int val) {
1412:                    byteBase.setInt32(NativeBridge.is64 ? 84 : 56, val);
1413:                }
1414:
1415:                public final int get_ts_y_origin() {
1416:                    return byteBase.getInt32(NativeBridge.is64 ? 84 : 56);
1417:                }
1418:
1419:                public final void set_font(long val) {
1420:                    byteBase.setCLong(NativeBridge.is64 ? 88 : 60, val);
1421:                }
1422:
1423:                public final long get_font() {
1424:                    return byteBase.getCLong(NativeBridge.is64 ? 88 : 60);
1425:                }
1426:
1427:                public final void set_subwindow_mode(int val) {
1428:                    byteBase.setInt32(NativeBridge.is64 ? 96 : 64, val);
1429:                }
1430:
1431:                public final int get_subwindow_mode() {
1432:                    return byteBase.getInt32(NativeBridge.is64 ? 96 : 64);
1433:                }
1434:
1435:                public final void set_graphics_exposures(int val) {
1436:                    byteBase.setInt32(NativeBridge.is64 ? 100 : 68, val);
1437:                }
1438:
1439:                public final int get_graphics_exposures() {
1440:                    return byteBase.getInt32(NativeBridge.is64 ? 100 : 68);
1441:                }
1442:
1443:                public final void set_clip_x_origin(int val) {
1444:                    byteBase.setInt32(NativeBridge.is64 ? 104 : 72, val);
1445:                }
1446:
1447:                public final int get_clip_x_origin() {
1448:                    return byteBase.getInt32(NativeBridge.is64 ? 104 : 72);
1449:                }
1450:
1451:                public final void set_clip_y_origin(int val) {
1452:                    byteBase.setInt32(NativeBridge.is64 ? 108 : 76, val);
1453:                }
1454:
1455:                public final int get_clip_y_origin() {
1456:                    return byteBase.getInt32(NativeBridge.is64 ? 108 : 76);
1457:                }
1458:
1459:                public final void set_clip_mask(long val) {
1460:                    byteBase.setCLong(NativeBridge.is64 ? 112 : 80, val);
1461:                }
1462:
1463:                public final long get_clip_mask() {
1464:                    return byteBase.getCLong(NativeBridge.is64 ? 112 : 80);
1465:                }
1466:
1467:                public final void set_dash_offset(int val) {
1468:                    byteBase.setInt32(NativeBridge.is64 ? 120 : 84, val);
1469:                }
1470:
1471:                public final int get_dash_offset() {
1472:                    return byteBase.getInt32(NativeBridge.is64 ? 120 : 84);
1473:                }
1474:
1475:                public final void set_dashes(byte val) {
1476:                    byteBase.set(NativeBridge.is64 ? 124 : 88, val);
1477:                }
1478:
1479:                public final byte get_dashes() {
1480:                    return byteBase.get(NativeBridge.is64 ? 124 : 88);
1481:                }
1482:
1483:                public int size() {
1484:                    return sizeof;
1485:                }
1486:            }
1487:
1488:            public final XGCValues createXGCValues(boolean direct) {
1489:                return new XGCValues(direct);
1490:            }
1491:
1492:            public final XGCValues createXGCValues(VoidPointer base) {
1493:                return new XGCValues(base);
1494:            }
1495:
1496:            public final XGCValues createXGCValues(long addr) {
1497:                return new XGCValues(addr);
1498:            }
1499:
1500:            public final native int XTestFakeKeyEvent(long param_0,
1501:                    int param_1, int param_2, long param_3);
1502:
1503:            public final native int XCopyArea(long param_0, long param_1,
1504:                    long param_2, long param_3, int param_4, int param_5,
1505:                    int param_6, int param_7, int param_8, int param_9);
1506:
1507:            public final native long XKeycodeToKeysym(long param_0,
1508:                    int param_1, int param_2);
1509:
1510:            public final native int XImageByteOrder(long param_0);
1511:
1512:            public final native int XDefaultScreen(long param_0);
1513:
1514:            public final native int XConvertSelection(long param_0,
1515:                    long param_1, long param_2, long param_3, long param_4,
1516:                    long param_5);
1517:
1518:            public final native long XGetSelectionOwner(long param_0,
1519:                    long param_1);
1520:
1521:            public final int XFillRectangles(long param_0, long param_1,
1522:                    long param_2, XRectangle param_3, int param_4) {
1523:                long tmp_0 = param_3 == null ? 0 : param_3.longLockPointer();
1524:                int tmp_ret = XFillRectangles(param_0, param_1, param_2, tmp_0,
1525:                        param_4);
1526:                if (param_3 != null) {
1527:                    param_3.unlock();
1528:                }
1529:                return tmp_ret;
1530:            }
1531:
1532:            public final native int XFillRectangles(long param_0, long param_1,
1533:                    long param_2, long param_3, int param_4);
1534:
1535:            public static class XRectangle extends CommonStructWrapper {
1536:
1537:                public static final int sizeof = 8;
1538:
1539:                XRectangle(boolean direct) {
1540:                    super (sizeof, direct);
1541:                }
1542:
1543:                XRectangle(VoidPointer base) {
1544:                    super (base);
1545:                }
1546:
1547:                XRectangle(long addr) {
1548:                    super (addr);
1549:                }
1550:
1551:                public final void set_x(short val) {
1552:                    byteBase.setInt16(0, val);
1553:                }
1554:
1555:                public final short get_x() {
1556:                    return byteBase.getInt16(0);
1557:                }
1558:
1559:                public final void set_y(short val) {
1560:                    byteBase.setInt16(2, val);
1561:                }
1562:
1563:                public final short get_y() {
1564:                    return byteBase.getInt16(2);
1565:                }
1566:
1567:                public final void set_width(short val) {
1568:                    byteBase.setInt16(4, val);
1569:                }
1570:
1571:                public final short get_width() {
1572:                    return byteBase.getInt16(4);
1573:                }
1574:
1575:                public final void set_height(short val) {
1576:                    byteBase.setInt16(6, val);
1577:                }
1578:
1579:                public final short get_height() {
1580:                    return byteBase.getInt16(6);
1581:                }
1582:
1583:                public int size() {
1584:                    return sizeof;
1585:                }
1586:            }
1587:
1588:            public final XRectangle createXRectangle(boolean direct) {
1589:                return new XRectangle(direct);
1590:            }
1591:
1592:            public final XRectangle createXRectangle(VoidPointer base) {
1593:                return new XRectangle(base);
1594:            }
1595:
1596:            public final XRectangle createXRectangle(long addr) {
1597:                return new XRectangle(addr);
1598:            }
1599:
1600:            public final int XSetIconName(long param_0, long param_1,
1601:                    String param_2) {
1602:                Int8Pointer _param_2 = null == param_2 ? null : nb
1603:                        .createInt8Pointer(param_2, false);
1604:                long tmp_0 = _param_2 == null ? 0 : _param_2.longLockPointer();
1605:                int tmp_ret = XSetIconName(param_0, param_1, tmp_0);
1606:                if (_param_2 != null) {
1607:                    _param_2.unlock();
1608:                    _param_2.free();
1609:                }
1610:                return tmp_ret;
1611:            }
1612:
1613:            public final int XSetIconName(long param_0, long param_1,
1614:                    Int8Pointer param_2) {
1615:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
1616:                int tmp_ret = XSetIconName(param_0, param_1, tmp_0);
1617:                if (param_2 != null) {
1618:                    param_2.unlock();
1619:                }
1620:                return tmp_ret;
1621:            }
1622:
1623:            public final native int XSetIconName(long param_0, long param_1,
1624:                    long param_2);
1625:
1626:            public final native int XDisplayWidthMM(long param_0, int param_1);
1627:
1628:            public final native int XMapWindow(long param_0, long param_1);
1629:
1630:            public final int XParseColor(long param_0, long param_1,
1631:                    String param_2, X11.XColor param_3) {
1632:                Int8Pointer _param_2 = null == param_2 ? null : nb
1633:                        .createInt8Pointer(param_2, false);
1634:                long tmp_0 = _param_2 == null ? 0 : _param_2.longLockPointer();
1635:                long tmp_1 = param_3 == null ? 0 : param_3.longLockPointer();
1636:                int tmp_ret = XParseColor(param_0, param_1, tmp_0, tmp_1);
1637:                if (_param_2 != null) {
1638:                    _param_2.unlock();
1639:                    _param_2.free();
1640:                }
1641:                if (param_3 != null) {
1642:                    param_3.unlock();
1643:                }
1644:                return tmp_ret;
1645:            }
1646:
1647:            public final int XParseColor(long param_0, long param_1,
1648:                    Int8Pointer param_2, X11.XColor param_3) {
1649:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
1650:                long tmp_1 = param_3 == null ? 0 : param_3.longLockPointer();
1651:                int tmp_ret = XParseColor(param_0, param_1, tmp_0, tmp_1);
1652:                if (param_2 != null) {
1653:                    param_2.unlock();
1654:                }
1655:                if (param_3 != null) {
1656:                    param_3.unlock();
1657:                }
1658:                return tmp_ret;
1659:            }
1660:
1661:            public final native int XParseColor(long param_0, long param_1,
1662:                    long param_2, long param_3);
1663:
1664:            public final native int XTestFakeButtonEvent(long param_0,
1665:                    int param_1, int param_2, long param_3);
1666:
1667:            public final int XGetWindowProperty(long param_0, long param_1,
1668:                    long param_2, long param_3, long param_4, int param_5,
1669:                    long param_6, CLongPointer param_7, Int32Pointer param_8,
1670:                    CLongPointer param_9, CLongPointer param_10,
1671:                    PointerPointer param_11) {
1672:                long tmp_0 = param_7 == null ? 0 : param_7.longLockPointer();
1673:                long tmp_1 = param_8 == null ? 0 : param_8.longLockPointer();
1674:                long tmp_2 = param_9 == null ? 0 : param_9.longLockPointer();
1675:                long tmp_3 = param_10 == null ? 0 : param_10.longLockPointer();
1676:                long tmp_4 = param_11 == null ? 0 : param_11.longLockPointer();
1677:                int tmp_ret = XGetWindowProperty(param_0, param_1, param_2,
1678:                        param_3, param_4, param_5, param_6, tmp_0, tmp_1,
1679:                        tmp_2, tmp_3, tmp_4);
1680:                if (param_7 != null) {
1681:                    param_7.unlock();
1682:                }
1683:                if (param_8 != null) {
1684:                    param_8.unlock();
1685:                }
1686:                if (param_9 != null) {
1687:                    param_9.unlock();
1688:                }
1689:                if (param_10 != null) {
1690:                    param_10.unlock();
1691:                }
1692:                if (param_11 != null) {
1693:                    param_11.unlock();
1694:                }
1695:                return tmp_ret;
1696:            }
1697:
1698:            public final native int XGetWindowProperty(long param_0,
1699:                    long param_1, long param_2, long param_3, long param_4,
1700:                    int param_5, long param_6, long param_7, long param_8,
1701:                    long param_9, long param_10, long param_11);
1702:
1703:            public final native int XIconifyWindow(long param_0, long param_1,
1704:                    int param_2);
1705:
1706:            public final native long XAllocWMHints();
1707:
1708:            public static class XWMHints extends CommonStructWrapper {
1709:
1710:                public static final int sizeof = NativeBridge.is64 ? 56 : 36;
1711:
1712:                XWMHints(boolean direct) {
1713:                    super (sizeof, direct);
1714:                }
1715:
1716:                XWMHints(VoidPointer base) {
1717:                    super (base);
1718:                }
1719:
1720:                XWMHints(long addr) {
1721:                    super (addr);
1722:                }
1723:
1724:                public final void set_flags(long val) {
1725:                    byteBase.setCLong(0, val);
1726:                }
1727:
1728:                public final long get_flags() {
1729:                    return byteBase.getCLong(0);
1730:                }
1731:
1732:                public final void set_input(int val) {
1733:                    byteBase.setInt32(NativeBridge.is64 ? 8 : 4, val);
1734:                }
1735:
1736:                public final int get_input() {
1737:                    return byteBase.getInt32(NativeBridge.is64 ? 8 : 4);
1738:                }
1739:
1740:                public final void set_initial_state(int val) {
1741:                    byteBase.setInt32(NativeBridge.is64 ? 12 : 8, val);
1742:                }
1743:
1744:                public final int get_initial_state() {
1745:                    return byteBase.getInt32(NativeBridge.is64 ? 12 : 8);
1746:                }
1747:
1748:                public final void set_icon_pixmap(long val) {
1749:                    byteBase.setCLong(NativeBridge.is64 ? 16 : 12, val);
1750:                }
1751:
1752:                public final long get_icon_pixmap() {
1753:                    return byteBase.getCLong(NativeBridge.is64 ? 16 : 12);
1754:                }
1755:
1756:                public final void set_icon_window(long val) {
1757:                    byteBase.setCLong(NativeBridge.is64 ? 24 : 16, val);
1758:                }
1759:
1760:                public final long get_icon_window() {
1761:                    return byteBase.getCLong(NativeBridge.is64 ? 24 : 16);
1762:                }
1763:
1764:                public final void set_icon_x(int val) {
1765:                    byteBase.setInt32(NativeBridge.is64 ? 32 : 20, val);
1766:                }
1767:
1768:                public final int get_icon_x() {
1769:                    return byteBase.getInt32(NativeBridge.is64 ? 32 : 20);
1770:                }
1771:
1772:                public final void set_icon_y(int val) {
1773:                    byteBase.setInt32(NativeBridge.is64 ? 36 : 24, val);
1774:                }
1775:
1776:                public final int get_icon_y() {
1777:                    return byteBase.getInt32(NativeBridge.is64 ? 36 : 24);
1778:                }
1779:
1780:                public final void set_icon_mask(long val) {
1781:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 28, val);
1782:                }
1783:
1784:                public final long get_icon_mask() {
1785:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 28);
1786:                }
1787:
1788:                public final void set_window_group(long val) {
1789:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 32, val);
1790:                }
1791:
1792:                public final long get_window_group() {
1793:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 32);
1794:                }
1795:
1796:                public int size() {
1797:                    return sizeof;
1798:                }
1799:            }
1800:
1801:            public final XWMHints createXWMHints(boolean direct) {
1802:                return new XWMHints(direct);
1803:            }
1804:
1805:            public final XWMHints createXWMHints(VoidPointer base) {
1806:                return new XWMHints(base);
1807:            }
1808:
1809:            public final XWMHints createXWMHints(long addr) {
1810:                return new XWMHints(addr);
1811:            }
1812:
1813:            public final int XGetRGBColormaps(long param_0, long param_1,
1814:                    PointerPointer param_2, Int32Pointer param_3, long param_4) {
1815:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
1816:                long tmp_1 = param_3 == null ? 0 : param_3.longLockPointer();
1817:                int tmp_ret = XGetRGBColormaps(param_0, param_1, tmp_0, tmp_1,
1818:                        param_4);
1819:                if (param_2 != null) {
1820:                    param_2.unlock();
1821:                }
1822:                if (param_3 != null) {
1823:                    param_3.unlock();
1824:                }
1825:                return tmp_ret;
1826:            }
1827:
1828:            public final native int XGetRGBColormaps(long param_0,
1829:                    long param_1, long param_2, long param_3, long param_4);
1830:
1831:            public final XVisualInfo XGetVisualInfo(long param_0, long param_1,
1832:                    XVisualInfo param_2, Int32Pointer param_3) {
1833:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
1834:                long tmp_1 = param_3 == null ? 0 : param_3.longLockPointer();
1835:                long tmp_ret = XGetVisualInfo(param_0, param_1, tmp_0, tmp_1);
1836:                if (param_2 != null) {
1837:                    param_2.unlock();
1838:                }
1839:                if (param_3 != null) {
1840:                    param_3.unlock();
1841:                }
1842:                return instance.createXVisualInfo(tmp_ret);
1843:            }
1844:
1845:            public final native long XGetVisualInfo(long param_0, long param_1,
1846:                    long param_2, long param_3);
1847:
1848:            public static class XVisualInfo extends CommonStructWrapper {
1849:
1850:                public static final int sizeof = NativeBridge.is64 ? 64 : 40;
1851:
1852:                XVisualInfo(boolean direct) {
1853:                    super (sizeof, direct);
1854:                }
1855:
1856:                XVisualInfo(VoidPointer base) {
1857:                    super (base);
1858:                }
1859:
1860:                XVisualInfo(long addr) {
1861:                    super (addr);
1862:                }
1863:
1864:                public final X11.Visual get_visual() {
1865:                    return X11.instance.createVisual(byteBase.getAddress(0));
1866:                }
1867:
1868:                public final void set_visualid(long val) {
1869:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
1870:                }
1871:
1872:                public final long get_visualid() {
1873:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
1874:                }
1875:
1876:                public final void set_screen(int val) {
1877:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
1878:                }
1879:
1880:                public final int get_screen() {
1881:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
1882:                }
1883:
1884:                public final void set_depth(int val) {
1885:                    byteBase.setInt32(NativeBridge.is64 ? 20 : 12, val);
1886:                }
1887:
1888:                public final int get_depth() {
1889:                    return byteBase.getInt32(NativeBridge.is64 ? 20 : 12);
1890:                }
1891:
1892:                public final void set_class(int val) {
1893:                    byteBase.setInt32(NativeBridge.is64 ? 24 : 16, val);
1894:                }
1895:
1896:                public final int get_class() {
1897:                    return byteBase.getInt32(NativeBridge.is64 ? 24 : 16);
1898:                }
1899:
1900:                public final void set_red_mask(long val) {
1901:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 20, val);
1902:                }
1903:
1904:                public final long get_red_mask() {
1905:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 20);
1906:                }
1907:
1908:                public final void set_green_mask(long val) {
1909:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 24, val);
1910:                }
1911:
1912:                public final long get_green_mask() {
1913:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 24);
1914:                }
1915:
1916:                public final void set_blue_mask(long val) {
1917:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 28, val);
1918:                }
1919:
1920:                public final long get_blue_mask() {
1921:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 28);
1922:                }
1923:
1924:                public final void set_colormap_size(int val) {
1925:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 32, val);
1926:                }
1927:
1928:                public final int get_colormap_size() {
1929:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 32);
1930:                }
1931:
1932:                public final void set_bits_per_rgb(int val) {
1933:                    byteBase.setInt32(NativeBridge.is64 ? 60 : 36, val);
1934:                }
1935:
1936:                public final int get_bits_per_rgb() {
1937:                    return byteBase.getInt32(NativeBridge.is64 ? 60 : 36);
1938:                }
1939:
1940:                public int size() {
1941:                    return sizeof;
1942:                }
1943:            }
1944:
1945:            public final XVisualInfo createXVisualInfo(boolean direct) {
1946:                return new XVisualInfo(direct);
1947:            }
1948:
1949:            public final XVisualInfo createXVisualInfo(VoidPointer base) {
1950:                return new XVisualInfo(base);
1951:            }
1952:
1953:            public final XVisualInfo createXVisualInfo(long addr) {
1954:                return new XVisualInfo(addr);
1955:            }
1956:
1957:            public final native int XSetFunction(long param_0, long param_1,
1958:                    int param_2);
1959:
1960:            public final native int XDestroyWindow(long param_0, long param_1);
1961:
1962:            public final native long XRootWindow(long param_0, int param_1);
1963:
1964:            public final native int XLowerWindow(long param_0, long param_1);
1965:
1966:            public final native long XGetAtomName(long param_0, long param_1);
1967:
1968:            public final native int XSelectInput(long param_0, long param_1,
1969:                    long param_2);
1970:
1971:            public final native long XGetImage(long param_0, long param_1,
1972:                    int param_2, int param_3, int param_4, int param_5,
1973:                    long param_6, int param_7);
1974:
1975:            public final native int XDrawRectangle(long param_0, long param_1,
1976:                    long param_2, int param_3, int param_4, int param_5,
1977:                    int param_6);
1978:
1979:            public final native int XUngrabPointer(long param_0, long param_1);
1980:
1981:            public final native int XSetForeground(long param_0, long param_1,
1982:                    long param_2);
1983:
1984:            public final native int XMapRaised(long param_0, long param_1);
1985:
1986:            public final native long XAllPlanes();
1987:
1988:            public final native byte XKeysymToKeycode(long param_0, long param_1);
1989:
1990:            public final int XQueryPointer(long param_0, long param_1,
1991:                    CLongPointer param_2, CLongPointer param_3,
1992:                    Int32Pointer param_4, Int32Pointer param_5,
1993:                    Int32Pointer param_6, Int32Pointer param_7,
1994:                    Int32Pointer param_8) {
1995:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
1996:                long tmp_1 = param_3 == null ? 0 : param_3.longLockPointer();
1997:                long tmp_2 = param_4 == null ? 0 : param_4.longLockPointer();
1998:                long tmp_3 = param_5 == null ? 0 : param_5.longLockPointer();
1999:                long tmp_4 = param_6 == null ? 0 : param_6.longLockPointer();
2000:                long tmp_5 = param_7 == null ? 0 : param_7.longLockPointer();
2001:                long tmp_6 = param_8 == null ? 0 : param_8.longLockPointer();
2002:                int tmp_ret = XQueryPointer(param_0, param_1, tmp_0, tmp_1,
2003:                        tmp_2, tmp_3, tmp_4, tmp_5, tmp_6);
2004:                if (param_2 != null) {
2005:                    param_2.unlock();
2006:                }
2007:                if (param_3 != null) {
2008:                    param_3.unlock();
2009:                }
2010:                if (param_4 != null) {
2011:                    param_4.unlock();
2012:                }
2013:                if (param_5 != null) {
2014:                    param_5.unlock();
2015:                }
2016:                if (param_6 != null) {
2017:                    param_6.unlock();
2018:                }
2019:                if (param_7 != null) {
2020:                    param_7.unlock();
2021:                }
2022:                if (param_8 != null) {
2023:                    param_8.unlock();
2024:                }
2025:                return tmp_ret;
2026:            }
2027:
2028:            public final native int XQueryPointer(long param_0, long param_1,
2029:                    long param_2, long param_3, long param_4, long param_5,
2030:                    long param_6, long param_7, long param_8);
2031:
2032:            public final native int XDisplayWidth(long param_0, int param_1);
2033:
2034:            public final native int XDisplayHeightMM(long param_0, int param_1);
2035:
2036:            public final int XChangeProperty(long param_0, long param_1,
2037:                    long param_2, long param_3, int param_4, int param_5,
2038:                    String param_6, int param_7) {
2039:                Int8Pointer _param_6 = null == param_6 ? null : nb
2040:                        .createInt8Pointer(param_6, false);
2041:                long tmp_0 = _param_6 == null ? 0 : _param_6.longLockPointer();
2042:                int tmp_ret = XChangeProperty(param_0, param_1, param_2,
2043:                        param_3, param_4, param_5, tmp_0, param_7);
2044:                if (_param_6 != null) {
2045:                    _param_6.unlock();
2046:                    _param_6.free();
2047:                }
2048:                return tmp_ret;
2049:            }
2050:
2051:            public final int XChangeProperty(long param_0, long param_1,
2052:                    long param_2, long param_3, int param_4, int param_5,
2053:                    Int8Pointer param_6, int param_7) {
2054:                long tmp_0 = param_6 == null ? 0 : param_6.longLockPointer();
2055:                int tmp_ret = XChangeProperty(param_0, param_1, param_2,
2056:                        param_3, param_4, param_5, tmp_0, param_7);
2057:                if (param_6 != null) {
2058:                    param_6.unlock();
2059:                }
2060:                return tmp_ret;
2061:            }
2062:
2063:            public final native int XChangeProperty(long param_0, long param_1,
2064:                    long param_2, long param_3, int param_4, int param_5,
2065:                    long param_6, int param_7);
2066:
2067:            public final int XCheckTypedEvent(long param_0, int param_1,
2068:                    XEvent param_2) {
2069:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
2070:                int tmp_ret = XCheckTypedEvent(param_0, param_1, tmp_0);
2071:                if (param_2 != null) {
2072:                    param_2.unlock();
2073:                }
2074:                return tmp_ret;
2075:            }
2076:
2077:            public final native int XCheckTypedEvent(long param_0, int param_1,
2078:                    long param_2);
2079:
2080:            public static class XEvent extends CommonStructWrapper {
2081:
2082:                public static final int sizeof = NativeBridge.is64 ? 192 : 96;
2083:
2084:                XEvent(boolean direct) {
2085:                    super (sizeof, direct);
2086:                }
2087:
2088:                XEvent(VoidPointer base) {
2089:                    super (base);
2090:                }
2091:
2092:                XEvent(long addr) {
2093:                    super (addr);
2094:                }
2095:
2096:                public final void set_type(int val) {
2097:                    byteBase.setInt32(0, val);
2098:                }
2099:
2100:                public final int get_type() {
2101:                    return byteBase.getInt32(0);
2102:                }
2103:
2104:                public final XAnyEvent get_xany() {
2105:                    return instance.createXAnyEvent(getElementPointer(0));
2106:                }
2107:
2108:                public final X11.XKeyEvent get_xkey() {
2109:                    return X11.instance.createXKeyEvent(getElementPointer(0));
2110:                }
2111:
2112:                public final XButtonEvent get_xbutton() {
2113:                    return instance.createXButtonEvent(getElementPointer(0));
2114:                }
2115:
2116:                public final XMotionEvent get_xmotion() {
2117:                    return instance.createXMotionEvent(getElementPointer(0));
2118:                }
2119:
2120:                public final XCrossingEvent get_xcrossing() {
2121:                    return instance.createXCrossingEvent(getElementPointer(0));
2122:                }
2123:
2124:                public final XFocusChangeEvent get_xfocus() {
2125:                    return instance
2126:                            .createXFocusChangeEvent(getElementPointer(0));
2127:                }
2128:
2129:                public final XExposeEvent get_xexpose() {
2130:                    return instance.createXExposeEvent(getElementPointer(0));
2131:                }
2132:
2133:                public final XGraphicsExposeEvent get_xgraphicsexpose() {
2134:                    return instance
2135:                            .createXGraphicsExposeEvent(getElementPointer(0));
2136:                }
2137:
2138:                public final XNoExposeEvent get_xnoexpose() {
2139:                    return instance.createXNoExposeEvent(getElementPointer(0));
2140:                }
2141:
2142:                public final XVisibilityEvent get_xvisibility() {
2143:                    return instance
2144:                            .createXVisibilityEvent(getElementPointer(0));
2145:                }
2146:
2147:                public final XCreateWindowEvent get_xcreatewindow() {
2148:                    return instance
2149:                            .createXCreateWindowEvent(getElementPointer(0));
2150:                }
2151:
2152:                public final XDestroyWindowEvent get_xdestroywindow() {
2153:                    return instance
2154:                            .createXDestroyWindowEvent(getElementPointer(0));
2155:                }
2156:
2157:                public final XUnmapEvent get_xunmap() {
2158:                    return instance.createXUnmapEvent(getElementPointer(0));
2159:                }
2160:
2161:                public final XMapEvent get_xmap() {
2162:                    return instance.createXMapEvent(getElementPointer(0));
2163:                }
2164:
2165:                public final XMapRequestEvent get_xmaprequest() {
2166:                    return instance
2167:                            .createXMapRequestEvent(getElementPointer(0));
2168:                }
2169:
2170:                public final XReparentEvent get_xreparent() {
2171:                    return instance.createXReparentEvent(getElementPointer(0));
2172:                }
2173:
2174:                public final XConfigureEvent get_xconfigure() {
2175:                    return instance.createXConfigureEvent(getElementPointer(0));
2176:                }
2177:
2178:                public final XGravityEvent get_xgravity() {
2179:                    return instance.createXGravityEvent(getElementPointer(0));
2180:                }
2181:
2182:                public final XResizeRequestEvent get_xresizerequest() {
2183:                    return instance
2184:                            .createXResizeRequestEvent(getElementPointer(0));
2185:                }
2186:
2187:                public final XConfigureRequestEvent get_xconfigurerequest() {
2188:                    return instance
2189:                            .createXConfigureRequestEvent(getElementPointer(0));
2190:                }
2191:
2192:                public final XCirculateEvent get_xcirculate() {
2193:                    return instance.createXCirculateEvent(getElementPointer(0));
2194:                }
2195:
2196:                public final XCirculateRequestEvent get_xcirculaterequest() {
2197:                    return instance
2198:                            .createXCirculateRequestEvent(getElementPointer(0));
2199:                }
2200:
2201:                public final XPropertyEvent get_xproperty() {
2202:                    return instance.createXPropertyEvent(getElementPointer(0));
2203:                }
2204:
2205:                public final XSelectionClearEvent get_xselectionclear() {
2206:                    return instance
2207:                            .createXSelectionClearEvent(getElementPointer(0));
2208:                }
2209:
2210:                public final XSelectionRequestEvent get_xselectionrequest() {
2211:                    return instance
2212:                            .createXSelectionRequestEvent(getElementPointer(0));
2213:                }
2214:
2215:                public final XSelectionEvent get_xselection() {
2216:                    return instance.createXSelectionEvent(getElementPointer(0));
2217:                }
2218:
2219:                public final XColormapEvent get_xcolormap() {
2220:                    return instance.createXColormapEvent(getElementPointer(0));
2221:                }
2222:
2223:                public final XClientMessageEvent get_xclient() {
2224:                    return instance
2225:                            .createXClientMessageEvent(getElementPointer(0));
2226:                }
2227:
2228:                public final XMappingEvent get_xmapping() {
2229:                    return instance.createXMappingEvent(getElementPointer(0));
2230:                }
2231:
2232:                public final XErrorEvent get_xerror() {
2233:                    return instance.createXErrorEvent(getElementPointer(0));
2234:                }
2235:
2236:                public final XKeymapEvent get_xkeymap() {
2237:                    return instance.createXKeymapEvent(getElementPointer(0));
2238:                }
2239:
2240:                public final CLongPointer get_pad() {
2241:                    return nb.createCLongPointer(getElementPointer(0));
2242:                }
2243:
2244:                public int size() {
2245:                    return sizeof;
2246:                }
2247:            }
2248:
2249:            public final XEvent createXEvent(boolean direct) {
2250:                return new XEvent(direct);
2251:            }
2252:
2253:            public final XEvent createXEvent(VoidPointer base) {
2254:                return new XEvent(base);
2255:            }
2256:
2257:            public final XEvent createXEvent(long addr) {
2258:                return new XEvent(addr);
2259:            }
2260:
2261:            public static class XSelectionEvent extends CommonStructWrapper {
2262:
2263:                public static final int sizeof = NativeBridge.is64 ? 72 : 36;
2264:
2265:                XSelectionEvent(boolean direct) {
2266:                    super (sizeof, direct);
2267:                }
2268:
2269:                XSelectionEvent(VoidPointer base) {
2270:                    super (base);
2271:                }
2272:
2273:                XSelectionEvent(long addr) {
2274:                    super (addr);
2275:                }
2276:
2277:                public final void set_type(int val) {
2278:                    byteBase.setInt32(0, val);
2279:                }
2280:
2281:                public final int get_type() {
2282:                    return byteBase.getInt32(0);
2283:                }
2284:
2285:                public final void set_serial(long val) {
2286:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
2287:                }
2288:
2289:                public final long get_serial() {
2290:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
2291:                }
2292:
2293:                public final void set_send_event(int val) {
2294:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
2295:                }
2296:
2297:                public final int get_send_event() {
2298:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
2299:                }
2300:
2301:                public final void set_display(long val) {
2302:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
2303:                }
2304:
2305:                public final long get_display() {
2306:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
2307:                }
2308:
2309:                public final void set_requestor(long val) {
2310:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
2311:                }
2312:
2313:                public final long get_requestor() {
2314:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
2315:                }
2316:
2317:                public final void set_selection(long val) {
2318:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
2319:                }
2320:
2321:                public final long get_selection() {
2322:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
2323:                }
2324:
2325:                public final void set_target(long val) {
2326:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 24, val);
2327:                }
2328:
2329:                public final long get_target() {
2330:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 24);
2331:                }
2332:
2333:                public final void set_property(long val) {
2334:                    byteBase.setCLong(NativeBridge.is64 ? 56 : 28, val);
2335:                }
2336:
2337:                public final long get_property() {
2338:                    return byteBase.getCLong(NativeBridge.is64 ? 56 : 28);
2339:                }
2340:
2341:                public final void set_time(long val) {
2342:                    byteBase.setCLong(NativeBridge.is64 ? 64 : 32, val);
2343:                }
2344:
2345:                public final long get_time() {
2346:                    return byteBase.getCLong(NativeBridge.is64 ? 64 : 32);
2347:                }
2348:
2349:                public int size() {
2350:                    return sizeof;
2351:                }
2352:            }
2353:
2354:            public final XSelectionEvent createXSelectionEvent(boolean direct) {
2355:                return new XSelectionEvent(direct);
2356:            }
2357:
2358:            public final XSelectionEvent createXSelectionEvent(VoidPointer base) {
2359:                return new XSelectionEvent(base);
2360:            }
2361:
2362:            public final XSelectionEvent createXSelectionEvent(long addr) {
2363:                return new XSelectionEvent(addr);
2364:            }
2365:
2366:            public static class XResizeRequestEvent extends CommonStructWrapper {
2367:
2368:                public static final int sizeof = NativeBridge.is64 ? 48 : 28;
2369:
2370:                XResizeRequestEvent(boolean direct) {
2371:                    super (sizeof, direct);
2372:                }
2373:
2374:                XResizeRequestEvent(VoidPointer base) {
2375:                    super (base);
2376:                }
2377:
2378:                XResizeRequestEvent(long addr) {
2379:                    super (addr);
2380:                }
2381:
2382:                public final void set_type(int val) {
2383:                    byteBase.setInt32(0, val);
2384:                }
2385:
2386:                public final int get_type() {
2387:                    return byteBase.getInt32(0);
2388:                }
2389:
2390:                public final void set_serial(long val) {
2391:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
2392:                }
2393:
2394:                public final long get_serial() {
2395:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
2396:                }
2397:
2398:                public final void set_send_event(int val) {
2399:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
2400:                }
2401:
2402:                public final int get_send_event() {
2403:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
2404:                }
2405:
2406:                public final void set_display(long val) {
2407:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
2408:                }
2409:
2410:                public final long get_display() {
2411:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
2412:                }
2413:
2414:                public final void set_window(long val) {
2415:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
2416:                }
2417:
2418:                public final long get_window() {
2419:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
2420:                }
2421:
2422:                public final void set_width(int val) {
2423:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 20, val);
2424:                }
2425:
2426:                public final int get_width() {
2427:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 20);
2428:                }
2429:
2430:                public final void set_height(int val) {
2431:                    byteBase.setInt32(NativeBridge.is64 ? 44 : 24, val);
2432:                }
2433:
2434:                public final int get_height() {
2435:                    return byteBase.getInt32(NativeBridge.is64 ? 44 : 24);
2436:                }
2437:
2438:                public int size() {
2439:                    return sizeof;
2440:                }
2441:            }
2442:
2443:            public final XResizeRequestEvent createXResizeRequestEvent(
2444:                    boolean direct) {
2445:                return new XResizeRequestEvent(direct);
2446:            }
2447:
2448:            public final XResizeRequestEvent createXResizeRequestEvent(
2449:                    VoidPointer base) {
2450:                return new XResizeRequestEvent(base);
2451:            }
2452:
2453:            public final XResizeRequestEvent createXResizeRequestEvent(long addr) {
2454:                return new XResizeRequestEvent(addr);
2455:            }
2456:
2457:            public static class XUnmapEvent extends CommonStructWrapper {
2458:
2459:                public static final int sizeof = NativeBridge.is64 ? 56 : 28;
2460:
2461:                XUnmapEvent(boolean direct) {
2462:                    super (sizeof, direct);
2463:                }
2464:
2465:                XUnmapEvent(VoidPointer base) {
2466:                    super (base);
2467:                }
2468:
2469:                XUnmapEvent(long addr) {
2470:                    super (addr);
2471:                }
2472:
2473:                public final void set_type(int val) {
2474:                    byteBase.setInt32(0, val);
2475:                }
2476:
2477:                public final int get_type() {
2478:                    return byteBase.getInt32(0);
2479:                }
2480:
2481:                public final void set_serial(long val) {
2482:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
2483:                }
2484:
2485:                public final long get_serial() {
2486:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
2487:                }
2488:
2489:                public final void set_send_event(int val) {
2490:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
2491:                }
2492:
2493:                public final int get_send_event() {
2494:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
2495:                }
2496:
2497:                public final void set_display(long val) {
2498:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
2499:                }
2500:
2501:                public final long get_display() {
2502:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
2503:                }
2504:
2505:                public final void set_event(long val) {
2506:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
2507:                }
2508:
2509:                public final long get_event() {
2510:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
2511:                }
2512:
2513:                public final void set_window(long val) {
2514:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
2515:                }
2516:
2517:                public final long get_window() {
2518:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
2519:                }
2520:
2521:                public final void set_from_configure(int val) {
2522:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
2523:                }
2524:
2525:                public final int get_from_configure() {
2526:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
2527:                }
2528:
2529:                public int size() {
2530:                    return sizeof;
2531:                }
2532:            }
2533:
2534:            public final XUnmapEvent createXUnmapEvent(boolean direct) {
2535:                return new XUnmapEvent(direct);
2536:            }
2537:
2538:            public final XUnmapEvent createXUnmapEvent(VoidPointer base) {
2539:                return new XUnmapEvent(base);
2540:            }
2541:
2542:            public final XUnmapEvent createXUnmapEvent(long addr) {
2543:                return new XUnmapEvent(addr);
2544:            }
2545:
2546:            public static class XCreateWindowEvent extends CommonStructWrapper {
2547:
2548:                public static final int sizeof = NativeBridge.is64 ? 72 : 48;
2549:
2550:                XCreateWindowEvent(boolean direct) {
2551:                    super (sizeof, direct);
2552:                }
2553:
2554:                XCreateWindowEvent(VoidPointer base) {
2555:                    super (base);
2556:                }
2557:
2558:                XCreateWindowEvent(long addr) {
2559:                    super (addr);
2560:                }
2561:
2562:                public final void set_type(int val) {
2563:                    byteBase.setInt32(0, val);
2564:                }
2565:
2566:                public final int get_type() {
2567:                    return byteBase.getInt32(0);
2568:                }
2569:
2570:                public final void set_serial(long val) {
2571:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
2572:                }
2573:
2574:                public final long get_serial() {
2575:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
2576:                }
2577:
2578:                public final void set_send_event(int val) {
2579:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
2580:                }
2581:
2582:                public final int get_send_event() {
2583:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
2584:                }
2585:
2586:                public final void set_display(long val) {
2587:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
2588:                }
2589:
2590:                public final long get_display() {
2591:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
2592:                }
2593:
2594:                public final void set_parent(long val) {
2595:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
2596:                }
2597:
2598:                public final long get_parent() {
2599:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
2600:                }
2601:
2602:                public final void set_window(long val) {
2603:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
2604:                }
2605:
2606:                public final long get_window() {
2607:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
2608:                }
2609:
2610:                public final void set_x(int val) {
2611:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
2612:                }
2613:
2614:                public final int get_x() {
2615:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
2616:                }
2617:
2618:                public final void set_y(int val) {
2619:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 28, val);
2620:                }
2621:
2622:                public final int get_y() {
2623:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 28);
2624:                }
2625:
2626:                public final void set_width(int val) {
2627:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 32, val);
2628:                }
2629:
2630:                public final int get_width() {
2631:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 32);
2632:                }
2633:
2634:                public final void set_height(int val) {
2635:                    byteBase.setInt32(NativeBridge.is64 ? 60 : 36, val);
2636:                }
2637:
2638:                public final int get_height() {
2639:                    return byteBase.getInt32(NativeBridge.is64 ? 60 : 36);
2640:                }
2641:
2642:                public final void set_border_width(int val) {
2643:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 40, val);
2644:                }
2645:
2646:                public final int get_border_width() {
2647:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 40);
2648:                }
2649:
2650:                public final void set_override_redirect(int val) {
2651:                    byteBase.setInt32(NativeBridge.is64 ? 68 : 44, val);
2652:                }
2653:
2654:                public final int get_override_redirect() {
2655:                    return byteBase.getInt32(NativeBridge.is64 ? 68 : 44);
2656:                }
2657:
2658:                public int size() {
2659:                    return sizeof;
2660:                }
2661:            }
2662:
2663:            public final XCreateWindowEvent createXCreateWindowEvent(
2664:                    boolean direct) {
2665:                return new XCreateWindowEvent(direct);
2666:            }
2667:
2668:            public final XCreateWindowEvent createXCreateWindowEvent(
2669:                    VoidPointer base) {
2670:                return new XCreateWindowEvent(base);
2671:            }
2672:
2673:            public final XCreateWindowEvent createXCreateWindowEvent(long addr) {
2674:                return new XCreateWindowEvent(addr);
2675:            }
2676:
2677:            public static class XExposeEvent extends CommonStructWrapper {
2678:
2679:                public static final int sizeof = NativeBridge.is64 ? 64 : 40;
2680:
2681:                XExposeEvent(boolean direct) {
2682:                    super (sizeof, direct);
2683:                }
2684:
2685:                XExposeEvent(VoidPointer base) {
2686:                    super (base);
2687:                }
2688:
2689:                XExposeEvent(long addr) {
2690:                    super (addr);
2691:                }
2692:
2693:                public final void set_type(int val) {
2694:                    byteBase.setInt32(0, val);
2695:                }
2696:
2697:                public final int get_type() {
2698:                    return byteBase.getInt32(0);
2699:                }
2700:
2701:                public final void set_serial(long val) {
2702:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
2703:                }
2704:
2705:                public final long get_serial() {
2706:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
2707:                }
2708:
2709:                public final void set_send_event(int val) {
2710:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
2711:                }
2712:
2713:                public final int get_send_event() {
2714:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
2715:                }
2716:
2717:                public final void set_display(long val) {
2718:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
2719:                }
2720:
2721:                public final long get_display() {
2722:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
2723:                }
2724:
2725:                public final void set_window(long val) {
2726:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
2727:                }
2728:
2729:                public final long get_window() {
2730:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
2731:                }
2732:
2733:                public final void set_x(int val) {
2734:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 20, val);
2735:                }
2736:
2737:                public final int get_x() {
2738:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 20);
2739:                }
2740:
2741:                public final void set_y(int val) {
2742:                    byteBase.setInt32(NativeBridge.is64 ? 44 : 24, val);
2743:                }
2744:
2745:                public final int get_y() {
2746:                    return byteBase.getInt32(NativeBridge.is64 ? 44 : 24);
2747:                }
2748:
2749:                public final void set_width(int val) {
2750:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 28, val);
2751:                }
2752:
2753:                public final int get_width() {
2754:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 28);
2755:                }
2756:
2757:                public final void set_height(int val) {
2758:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 32, val);
2759:                }
2760:
2761:                public final int get_height() {
2762:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 32);
2763:                }
2764:
2765:                public final void set_count(int val) {
2766:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 36, val);
2767:                }
2768:
2769:                public final int get_count() {
2770:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 36);
2771:                }
2772:
2773:                public int size() {
2774:                    return sizeof;
2775:                }
2776:            }
2777:
2778:            public final XExposeEvent createXExposeEvent(boolean direct) {
2779:                return new XExposeEvent(direct);
2780:            }
2781:
2782:            public final XExposeEvent createXExposeEvent(VoidPointer base) {
2783:                return new XExposeEvent(base);
2784:            }
2785:
2786:            public final XExposeEvent createXExposeEvent(long addr) {
2787:                return new XExposeEvent(addr);
2788:            }
2789:
2790:            public static class XVisibilityEvent extends CommonStructWrapper {
2791:
2792:                public static final int sizeof = NativeBridge.is64 ? 48 : 24;
2793:
2794:                XVisibilityEvent(boolean direct) {
2795:                    super (sizeof, direct);
2796:                }
2797:
2798:                XVisibilityEvent(VoidPointer base) {
2799:                    super (base);
2800:                }
2801:
2802:                XVisibilityEvent(long addr) {
2803:                    super (addr);
2804:                }
2805:
2806:                public final void set_type(int val) {
2807:                    byteBase.setInt32(0, val);
2808:                }
2809:
2810:                public final int get_type() {
2811:                    return byteBase.getInt32(0);
2812:                }
2813:
2814:                public final void set_serial(long val) {
2815:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
2816:                }
2817:
2818:                public final long get_serial() {
2819:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
2820:                }
2821:
2822:                public final void set_send_event(int val) {
2823:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
2824:                }
2825:
2826:                public final int get_send_event() {
2827:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
2828:                }
2829:
2830:                public final void set_display(long val) {
2831:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
2832:                }
2833:
2834:                public final long get_display() {
2835:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
2836:                }
2837:
2838:                public final void set_window(long val) {
2839:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
2840:                }
2841:
2842:                public final long get_window() {
2843:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
2844:                }
2845:
2846:                public final void set_state(int val) {
2847:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 20, val);
2848:                }
2849:
2850:                public final int get_state() {
2851:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 20);
2852:                }
2853:
2854:                public int size() {
2855:                    return sizeof;
2856:                }
2857:            }
2858:
2859:            public final XVisibilityEvent createXVisibilityEvent(boolean direct) {
2860:                return new XVisibilityEvent(direct);
2861:            }
2862:
2863:            public final XVisibilityEvent createXVisibilityEvent(
2864:                    VoidPointer base) {
2865:                return new XVisibilityEvent(base);
2866:            }
2867:
2868:            public final XVisibilityEvent createXVisibilityEvent(long addr) {
2869:                return new XVisibilityEvent(addr);
2870:            }
2871:
2872:            public static class XMappingEvent extends CommonStructWrapper {
2873:
2874:                public static final int sizeof = NativeBridge.is64 ? 56 : 32;
2875:
2876:                XMappingEvent(boolean direct) {
2877:                    super (sizeof, direct);
2878:                }
2879:
2880:                XMappingEvent(VoidPointer base) {
2881:                    super (base);
2882:                }
2883:
2884:                XMappingEvent(long addr) {
2885:                    super (addr);
2886:                }
2887:
2888:                public final void set_type(int val) {
2889:                    byteBase.setInt32(0, val);
2890:                }
2891:
2892:                public final int get_type() {
2893:                    return byteBase.getInt32(0);
2894:                }
2895:
2896:                public final void set_serial(long val) {
2897:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
2898:                }
2899:
2900:                public final long get_serial() {
2901:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
2902:                }
2903:
2904:                public final void set_send_event(int val) {
2905:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
2906:                }
2907:
2908:                public final int get_send_event() {
2909:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
2910:                }
2911:
2912:                public final void set_display(long val) {
2913:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
2914:                }
2915:
2916:                public final long get_display() {
2917:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
2918:                }
2919:
2920:                public final void set_window(long val) {
2921:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
2922:                }
2923:
2924:                public final long get_window() {
2925:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
2926:                }
2927:
2928:                public final void set_request(int val) {
2929:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 20, val);
2930:                }
2931:
2932:                public final int get_request() {
2933:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 20);
2934:                }
2935:
2936:                public final void set_first_keycode(int val) {
2937:                    byteBase.setInt32(NativeBridge.is64 ? 44 : 24, val);
2938:                }
2939:
2940:                public final int get_first_keycode() {
2941:                    return byteBase.getInt32(NativeBridge.is64 ? 44 : 24);
2942:                }
2943:
2944:                public final void set_count(int val) {
2945:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 28, val);
2946:                }
2947:
2948:                public final int get_count() {
2949:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 28);
2950:                }
2951:
2952:                public int size() {
2953:                    return sizeof;
2954:                }
2955:            }
2956:
2957:            public final XMappingEvent createXMappingEvent(boolean direct) {
2958:                return new XMappingEvent(direct);
2959:            }
2960:
2961:            public final XMappingEvent createXMappingEvent(VoidPointer base) {
2962:                return new XMappingEvent(base);
2963:            }
2964:
2965:            public final XMappingEvent createXMappingEvent(long addr) {
2966:                return new XMappingEvent(addr);
2967:            }
2968:
2969:            public static class XFocusChangeEvent extends CommonStructWrapper {
2970:
2971:                public static final int sizeof = NativeBridge.is64 ? 48 : 28;
2972:
2973:                XFocusChangeEvent(boolean direct) {
2974:                    super (sizeof, direct);
2975:                }
2976:
2977:                XFocusChangeEvent(VoidPointer base) {
2978:                    super (base);
2979:                }
2980:
2981:                XFocusChangeEvent(long addr) {
2982:                    super (addr);
2983:                }
2984:
2985:                public final void set_type(int val) {
2986:                    byteBase.setInt32(0, val);
2987:                }
2988:
2989:                public final int get_type() {
2990:                    return byteBase.getInt32(0);
2991:                }
2992:
2993:                public final void set_serial(long val) {
2994:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
2995:                }
2996:
2997:                public final long get_serial() {
2998:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
2999:                }
3000:
3001:                public final void set_send_event(int val) {
3002:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
3003:                }
3004:
3005:                public final int get_send_event() {
3006:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
3007:                }
3008:
3009:                public final void set_display(long val) {
3010:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
3011:                }
3012:
3013:                public final long get_display() {
3014:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
3015:                }
3016:
3017:                public final void set_window(long val) {
3018:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
3019:                }
3020:
3021:                public final long get_window() {
3022:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
3023:                }
3024:
3025:                public final void set_mode(int val) {
3026:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 20, val);
3027:                }
3028:
3029:                public final int get_mode() {
3030:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 20);
3031:                }
3032:
3033:                public final void set_detail(int val) {
3034:                    byteBase.setInt32(NativeBridge.is64 ? 44 : 24, val);
3035:                }
3036:
3037:                public final int get_detail() {
3038:                    return byteBase.getInt32(NativeBridge.is64 ? 44 : 24);
3039:                }
3040:
3041:                public int size() {
3042:                    return sizeof;
3043:                }
3044:            }
3045:
3046:            public final XFocusChangeEvent createXFocusChangeEvent(
3047:                    boolean direct) {
3048:                return new XFocusChangeEvent(direct);
3049:            }
3050:
3051:            public final XFocusChangeEvent createXFocusChangeEvent(
3052:                    VoidPointer base) {
3053:                return new XFocusChangeEvent(base);
3054:            }
3055:
3056:            public final XFocusChangeEvent createXFocusChangeEvent(long addr) {
3057:                return new XFocusChangeEvent(addr);
3058:            }
3059:
3060:            public static class XCirculateRequestEvent extends
3061:                    CommonStructWrapper {
3062:
3063:                public static final int sizeof = NativeBridge.is64 ? 56 : 28;
3064:
3065:                XCirculateRequestEvent(boolean direct) {
3066:                    super (sizeof, direct);
3067:                }
3068:
3069:                XCirculateRequestEvent(VoidPointer base) {
3070:                    super (base);
3071:                }
3072:
3073:                XCirculateRequestEvent(long addr) {
3074:                    super (addr);
3075:                }
3076:
3077:                public final void set_type(int val) {
3078:                    byteBase.setInt32(0, val);
3079:                }
3080:
3081:                public final int get_type() {
3082:                    return byteBase.getInt32(0);
3083:                }
3084:
3085:                public final void set_serial(long val) {
3086:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
3087:                }
3088:
3089:                public final long get_serial() {
3090:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
3091:                }
3092:
3093:                public final void set_send_event(int val) {
3094:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
3095:                }
3096:
3097:                public final int get_send_event() {
3098:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
3099:                }
3100:
3101:                public final void set_display(long val) {
3102:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
3103:                }
3104:
3105:                public final long get_display() {
3106:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
3107:                }
3108:
3109:                public final void set_parent(long val) {
3110:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
3111:                }
3112:
3113:                public final long get_parent() {
3114:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
3115:                }
3116:
3117:                public final void set_window(long val) {
3118:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
3119:                }
3120:
3121:                public final long get_window() {
3122:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
3123:                }
3124:
3125:                public final void set_place(int val) {
3126:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
3127:                }
3128:
3129:                public final int get_place() {
3130:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
3131:                }
3132:
3133:                public int size() {
3134:                    return sizeof;
3135:                }
3136:            }
3137:
3138:            public final XCirculateRequestEvent createXCirculateRequestEvent(
3139:                    boolean direct) {
3140:                return new XCirculateRequestEvent(direct);
3141:            }
3142:
3143:            public final XCirculateRequestEvent createXCirculateRequestEvent(
3144:                    VoidPointer base) {
3145:                return new XCirculateRequestEvent(base);
3146:            }
3147:
3148:            public final XCirculateRequestEvent createXCirculateRequestEvent(
3149:                    long addr) {
3150:                return new XCirculateRequestEvent(addr);
3151:            }
3152:
3153:            public static class XNoExposeEvent extends CommonStructWrapper {
3154:
3155:                public static final int sizeof = NativeBridge.is64 ? 48 : 28;
3156:
3157:                XNoExposeEvent(boolean direct) {
3158:                    super (sizeof, direct);
3159:                }
3160:
3161:                XNoExposeEvent(VoidPointer base) {
3162:                    super (base);
3163:                }
3164:
3165:                XNoExposeEvent(long addr) {
3166:                    super (addr);
3167:                }
3168:
3169:                public final void set_type(int val) {
3170:                    byteBase.setInt32(0, val);
3171:                }
3172:
3173:                public final int get_type() {
3174:                    return byteBase.getInt32(0);
3175:                }
3176:
3177:                public final void set_serial(long val) {
3178:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
3179:                }
3180:
3181:                public final long get_serial() {
3182:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
3183:                }
3184:
3185:                public final void set_send_event(int val) {
3186:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
3187:                }
3188:
3189:                public final int get_send_event() {
3190:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
3191:                }
3192:
3193:                public final void set_display(long val) {
3194:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
3195:                }
3196:
3197:                public final long get_display() {
3198:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
3199:                }
3200:
3201:                public final void set_drawable(long val) {
3202:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
3203:                }
3204:
3205:                public final long get_drawable() {
3206:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
3207:                }
3208:
3209:                public final void set_major_code(int val) {
3210:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 20, val);
3211:                }
3212:
3213:                public final int get_major_code() {
3214:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 20);
3215:                }
3216:
3217:                public final void set_minor_code(int val) {
3218:                    byteBase.setInt32(NativeBridge.is64 ? 44 : 24, val);
3219:                }
3220:
3221:                public final int get_minor_code() {
3222:                    return byteBase.getInt32(NativeBridge.is64 ? 44 : 24);
3223:                }
3224:
3225:                public int size() {
3226:                    return sizeof;
3227:                }
3228:            }
3229:
3230:            public final XNoExposeEvent createXNoExposeEvent(boolean direct) {
3231:                return new XNoExposeEvent(direct);
3232:            }
3233:
3234:            public final XNoExposeEvent createXNoExposeEvent(VoidPointer base) {
3235:                return new XNoExposeEvent(base);
3236:            }
3237:
3238:            public final XNoExposeEvent createXNoExposeEvent(long addr) {
3239:                return new XNoExposeEvent(addr);
3240:            }
3241:
3242:            public static class XColormapEvent extends CommonStructWrapper {
3243:
3244:                public static final int sizeof = NativeBridge.is64 ? 56 : 32;
3245:
3246:                XColormapEvent(boolean direct) {
3247:                    super (sizeof, direct);
3248:                }
3249:
3250:                XColormapEvent(VoidPointer base) {
3251:                    super (base);
3252:                }
3253:
3254:                XColormapEvent(long addr) {
3255:                    super (addr);
3256:                }
3257:
3258:                public final void set_type(int val) {
3259:                    byteBase.setInt32(0, val);
3260:                }
3261:
3262:                public final int get_type() {
3263:                    return byteBase.getInt32(0);
3264:                }
3265:
3266:                public final void set_serial(long val) {
3267:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
3268:                }
3269:
3270:                public final long get_serial() {
3271:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
3272:                }
3273:
3274:                public final void set_send_event(int val) {
3275:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
3276:                }
3277:
3278:                public final int get_send_event() {
3279:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
3280:                }
3281:
3282:                public final void set_display(long val) {
3283:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
3284:                }
3285:
3286:                public final long get_display() {
3287:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
3288:                }
3289:
3290:                public final void set_window(long val) {
3291:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
3292:                }
3293:
3294:                public final long get_window() {
3295:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
3296:                }
3297:
3298:                public final void set_colormap(long val) {
3299:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
3300:                }
3301:
3302:                public final long get_colormap() {
3303:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
3304:                }
3305:
3306:                public final void set_new(int val) {
3307:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
3308:                }
3309:
3310:                public final int get_new() {
3311:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
3312:                }
3313:
3314:                public final void set_state(int val) {
3315:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 28, val);
3316:                }
3317:
3318:                public final int get_state() {
3319:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 28);
3320:                }
3321:
3322:                public int size() {
3323:                    return sizeof;
3324:                }
3325:            }
3326:
3327:            public final XColormapEvent createXColormapEvent(boolean direct) {
3328:                return new XColormapEvent(direct);
3329:            }
3330:
3331:            public final XColormapEvent createXColormapEvent(VoidPointer base) {
3332:                return new XColormapEvent(base);
3333:            }
3334:
3335:            public final XColormapEvent createXColormapEvent(long addr) {
3336:                return new XColormapEvent(addr);
3337:            }
3338:
3339:            public static class XSelectionRequestEvent extends
3340:                    CommonStructWrapper {
3341:
3342:                public static final int sizeof = NativeBridge.is64 ? 80 : 40;
3343:
3344:                XSelectionRequestEvent(boolean direct) {
3345:                    super (sizeof, direct);
3346:                }
3347:
3348:                XSelectionRequestEvent(VoidPointer base) {
3349:                    super (base);
3350:                }
3351:
3352:                XSelectionRequestEvent(long addr) {
3353:                    super (addr);
3354:                }
3355:
3356:                public final void set_type(int val) {
3357:                    byteBase.setInt32(0, val);
3358:                }
3359:
3360:                public final int get_type() {
3361:                    return byteBase.getInt32(0);
3362:                }
3363:
3364:                public final void set_serial(long val) {
3365:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
3366:                }
3367:
3368:                public final long get_serial() {
3369:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
3370:                }
3371:
3372:                public final void set_send_event(int val) {
3373:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
3374:                }
3375:
3376:                public final int get_send_event() {
3377:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
3378:                }
3379:
3380:                public final void set_display(long val) {
3381:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
3382:                }
3383:
3384:                public final long get_display() {
3385:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
3386:                }
3387:
3388:                public final void set_owner(long val) {
3389:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
3390:                }
3391:
3392:                public final long get_owner() {
3393:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
3394:                }
3395:
3396:                public final void set_requestor(long val) {
3397:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
3398:                }
3399:
3400:                public final long get_requestor() {
3401:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
3402:                }
3403:
3404:                public final void set_selection(long val) {
3405:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 24, val);
3406:                }
3407:
3408:                public final long get_selection() {
3409:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 24);
3410:                }
3411:
3412:                public final void set_target(long val) {
3413:                    byteBase.setCLong(NativeBridge.is64 ? 56 : 28, val);
3414:                }
3415:
3416:                public final long get_target() {
3417:                    return byteBase.getCLong(NativeBridge.is64 ? 56 : 28);
3418:                }
3419:
3420:                public final void set_property(long val) {
3421:                    byteBase.setCLong(NativeBridge.is64 ? 64 : 32, val);
3422:                }
3423:
3424:                public final long get_property() {
3425:                    return byteBase.getCLong(NativeBridge.is64 ? 64 : 32);
3426:                }
3427:
3428:                public final void set_time(long val) {
3429:                    byteBase.setCLong(NativeBridge.is64 ? 72 : 36, val);
3430:                }
3431:
3432:                public final long get_time() {
3433:                    return byteBase.getCLong(NativeBridge.is64 ? 72 : 36);
3434:                }
3435:
3436:                public int size() {
3437:                    return sizeof;
3438:                }
3439:            }
3440:
3441:            public final XSelectionRequestEvent createXSelectionRequestEvent(
3442:                    boolean direct) {
3443:                return new XSelectionRequestEvent(direct);
3444:            }
3445:
3446:            public final XSelectionRequestEvent createXSelectionRequestEvent(
3447:                    VoidPointer base) {
3448:                return new XSelectionRequestEvent(base);
3449:            }
3450:
3451:            public final XSelectionRequestEvent createXSelectionRequestEvent(
3452:                    long addr) {
3453:                return new XSelectionRequestEvent(addr);
3454:            }
3455:
3456:            public static class XErrorEvent extends CommonStructWrapper {
3457:
3458:                public static final int sizeof = NativeBridge.is64 ? 40 : 20;
3459:
3460:                XErrorEvent(boolean direct) {
3461:                    super (sizeof, direct);
3462:                }
3463:
3464:                XErrorEvent(VoidPointer base) {
3465:                    super (base);
3466:                }
3467:
3468:                XErrorEvent(long addr) {
3469:                    super (addr);
3470:                }
3471:
3472:                public final void set_type(int val) {
3473:                    byteBase.setInt32(0, val);
3474:                }
3475:
3476:                public final int get_type() {
3477:                    return byteBase.getInt32(0);
3478:                }
3479:
3480:                public final void set_display(long val) {
3481:                    byteBase.setAddress(NativeBridge.is64 ? 8 : 4, val);
3482:                }
3483:
3484:                public final long get_display() {
3485:                    return byteBase.getAddress(NativeBridge.is64 ? 8 : 4);
3486:                }
3487:
3488:                public final void set_resourceid(long val) {
3489:                    byteBase.setCLong(NativeBridge.is64 ? 16 : 8, val);
3490:                }
3491:
3492:                public final long get_resourceid() {
3493:                    return byteBase.getCLong(NativeBridge.is64 ? 16 : 8);
3494:                }
3495:
3496:                public final void set_serial(long val) {
3497:                    byteBase.setCLong(NativeBridge.is64 ? 24 : 12, val);
3498:                }
3499:
3500:                public final long get_serial() {
3501:                    return byteBase.getCLong(NativeBridge.is64 ? 24 : 12);
3502:                }
3503:
3504:                public final void set_error_code(byte val) {
3505:                    byteBase.set(NativeBridge.is64 ? 32 : 16, val);
3506:                }
3507:
3508:                public final byte get_error_code() {
3509:                    return byteBase.get(NativeBridge.is64 ? 32 : 16);
3510:                }
3511:
3512:                public final void set_request_code(byte val) {
3513:                    byteBase.set(NativeBridge.is64 ? 33 : 17, val);
3514:                }
3515:
3516:                public final byte get_request_code() {
3517:                    return byteBase.get(NativeBridge.is64 ? 33 : 17);
3518:                }
3519:
3520:                public final void set_minor_code(byte val) {
3521:                    byteBase.set(NativeBridge.is64 ? 34 : 18, val);
3522:                }
3523:
3524:                public final byte get_minor_code() {
3525:                    return byteBase.get(NativeBridge.is64 ? 34 : 18);
3526:                }
3527:
3528:                public int size() {
3529:                    return sizeof;
3530:                }
3531:            }
3532:
3533:            public final XErrorEvent createXErrorEvent(boolean direct) {
3534:                return new XErrorEvent(direct);
3535:            }
3536:
3537:            public final XErrorEvent createXErrorEvent(VoidPointer base) {
3538:                return new XErrorEvent(base);
3539:            }
3540:
3541:            public final XErrorEvent createXErrorEvent(long addr) {
3542:                return new XErrorEvent(addr);
3543:            }
3544:
3545:            public static class XClientMessageEvent extends CommonStructWrapper {
3546:
3547:                public static final int sizeof = NativeBridge.is64 ? 96 : 48;
3548:
3549:                XClientMessageEvent(boolean direct) {
3550:                    super (sizeof, direct);
3551:                }
3552:
3553:                XClientMessageEvent(VoidPointer base) {
3554:                    super (base);
3555:                }
3556:
3557:                XClientMessageEvent(long addr) {
3558:                    super (addr);
3559:                }
3560:
3561:                public final void set_type(int val) {
3562:                    byteBase.setInt32(0, val);
3563:                }
3564:
3565:                public final int get_type() {
3566:                    return byteBase.getInt32(0);
3567:                }
3568:
3569:                public final void set_serial(long val) {
3570:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
3571:                }
3572:
3573:                public final long get_serial() {
3574:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
3575:                }
3576:
3577:                public final void set_send_event(int val) {
3578:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
3579:                }
3580:
3581:                public final int get_send_event() {
3582:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
3583:                }
3584:
3585:                public final void set_display(long val) {
3586:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
3587:                }
3588:
3589:                public final long get_display() {
3590:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
3591:                }
3592:
3593:                public final void set_window(long val) {
3594:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
3595:                }
3596:
3597:                public final long get_window() {
3598:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
3599:                }
3600:
3601:                public final void set_message_type(long val) {
3602:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
3603:                }
3604:
3605:                public final long get_message_type() {
3606:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
3607:                }
3608:
3609:                public final void set_format(int val) {
3610:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
3611:                }
3612:
3613:                public final int get_format() {
3614:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
3615:                }
3616:
3617:                public final Int8Pointer get_b() {
3618:                    return nb
3619:                            .createInt8Pointer(getElementPointer(NativeBridge.is64 ? 56
3620:                                    : 28));
3621:                }
3622:
3623:                public final Int16Pointer get_s() {
3624:                    return nb
3625:                            .createInt16Pointer(getElementPointer(NativeBridge.is64 ? 56
3626:                                    : 28));
3627:                }
3628:
3629:                public final CLongPointer get_l() {
3630:                    return nb
3631:                            .createCLongPointer(getElementPointer(NativeBridge.is64 ? 56
3632:                                    : 28));
3633:                }
3634:
3635:                public int size() {
3636:                    return sizeof;
3637:                }
3638:            }
3639:
3640:            public final XClientMessageEvent createXClientMessageEvent(
3641:                    boolean direct) {
3642:                return new XClientMessageEvent(direct);
3643:            }
3644:
3645:            public final XClientMessageEvent createXClientMessageEvent(
3646:                    VoidPointer base) {
3647:                return new XClientMessageEvent(base);
3648:            }
3649:
3650:            public final XClientMessageEvent createXClientMessageEvent(long addr) {
3651:                return new XClientMessageEvent(addr);
3652:            }
3653:
3654:            public static class XCirculateEvent extends CommonStructWrapper {
3655:
3656:                public static final int sizeof = NativeBridge.is64 ? 56 : 28;
3657:
3658:                XCirculateEvent(boolean direct) {
3659:                    super (sizeof, direct);
3660:                }
3661:
3662:                XCirculateEvent(VoidPointer base) {
3663:                    super (base);
3664:                }
3665:
3666:                XCirculateEvent(long addr) {
3667:                    super (addr);
3668:                }
3669:
3670:                public final void set_type(int val) {
3671:                    byteBase.setInt32(0, val);
3672:                }
3673:
3674:                public final int get_type() {
3675:                    return byteBase.getInt32(0);
3676:                }
3677:
3678:                public final void set_serial(long val) {
3679:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
3680:                }
3681:
3682:                public final long get_serial() {
3683:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
3684:                }
3685:
3686:                public final void set_send_event(int val) {
3687:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
3688:                }
3689:
3690:                public final int get_send_event() {
3691:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
3692:                }
3693:
3694:                public final void set_display(long val) {
3695:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
3696:                }
3697:
3698:                public final long get_display() {
3699:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
3700:                }
3701:
3702:                public final void set_event(long val) {
3703:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
3704:                }
3705:
3706:                public final long get_event() {
3707:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
3708:                }
3709:
3710:                public final void set_window(long val) {
3711:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
3712:                }
3713:
3714:                public final long get_window() {
3715:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
3716:                }
3717:
3718:                public final void set_place(int val) {
3719:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
3720:                }
3721:
3722:                public final int get_place() {
3723:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
3724:                }
3725:
3726:                public int size() {
3727:                    return sizeof;
3728:                }
3729:            }
3730:
3731:            public final XCirculateEvent createXCirculateEvent(boolean direct) {
3732:                return new XCirculateEvent(direct);
3733:            }
3734:
3735:            public final XCirculateEvent createXCirculateEvent(VoidPointer base) {
3736:                return new XCirculateEvent(base);
3737:            }
3738:
3739:            public final XCirculateEvent createXCirculateEvent(long addr) {
3740:                return new XCirculateEvent(addr);
3741:            }
3742:
3743:            public static class XMotionEvent extends CommonStructWrapper {
3744:
3745:                public static final int sizeof = NativeBridge.is64 ? 96 : 60;
3746:
3747:                XMotionEvent(boolean direct) {
3748:                    super (sizeof, direct);
3749:                }
3750:
3751:                XMotionEvent(VoidPointer base) {
3752:                    super (base);
3753:                }
3754:
3755:                XMotionEvent(long addr) {
3756:                    super (addr);
3757:                }
3758:
3759:                public final void set_type(int val) {
3760:                    byteBase.setInt32(0, val);
3761:                }
3762:
3763:                public final int get_type() {
3764:                    return byteBase.getInt32(0);
3765:                }
3766:
3767:                public final void set_serial(long val) {
3768:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
3769:                }
3770:
3771:                public final long get_serial() {
3772:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
3773:                }
3774:
3775:                public final void set_send_event(int val) {
3776:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
3777:                }
3778:
3779:                public final int get_send_event() {
3780:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
3781:                }
3782:
3783:                public final void set_display(long val) {
3784:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
3785:                }
3786:
3787:                public final long get_display() {
3788:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
3789:                }
3790:
3791:                public final void set_window(long val) {
3792:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
3793:                }
3794:
3795:                public final long get_window() {
3796:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
3797:                }
3798:
3799:                public final void set_root(long val) {
3800:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
3801:                }
3802:
3803:                public final long get_root() {
3804:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
3805:                }
3806:
3807:                public final void set_subwindow(long val) {
3808:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 24, val);
3809:                }
3810:
3811:                public final long get_subwindow() {
3812:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 24);
3813:                }
3814:
3815:                public final void set_time(long val) {
3816:                    byteBase.setCLong(NativeBridge.is64 ? 56 : 28, val);
3817:                }
3818:
3819:                public final long get_time() {
3820:                    return byteBase.getCLong(NativeBridge.is64 ? 56 : 28);
3821:                }
3822:
3823:                public final void set_x(int val) {
3824:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 32, val);
3825:                }
3826:
3827:                public final int get_x() {
3828:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 32);
3829:                }
3830:
3831:                public final void set_y(int val) {
3832:                    byteBase.setInt32(NativeBridge.is64 ? 68 : 36, val);
3833:                }
3834:
3835:                public final int get_y() {
3836:                    return byteBase.getInt32(NativeBridge.is64 ? 68 : 36);
3837:                }
3838:
3839:                public final void set_x_root(int val) {
3840:                    byteBase.setInt32(NativeBridge.is64 ? 72 : 40, val);
3841:                }
3842:
3843:                public final int get_x_root() {
3844:                    return byteBase.getInt32(NativeBridge.is64 ? 72 : 40);
3845:                }
3846:
3847:                public final void set_y_root(int val) {
3848:                    byteBase.setInt32(NativeBridge.is64 ? 76 : 44, val);
3849:                }
3850:
3851:                public final int get_y_root() {
3852:                    return byteBase.getInt32(NativeBridge.is64 ? 76 : 44);
3853:                }
3854:
3855:                public final void set_state(int val) {
3856:                    byteBase.setInt32(NativeBridge.is64 ? 80 : 48, val);
3857:                }
3858:
3859:                public final int get_state() {
3860:                    return byteBase.getInt32(NativeBridge.is64 ? 80 : 48);
3861:                }
3862:
3863:                public final void set_is_hint(byte val) {
3864:                    byteBase.set(NativeBridge.is64 ? 84 : 52, val);
3865:                }
3866:
3867:                public final byte get_is_hint() {
3868:                    return byteBase.get(NativeBridge.is64 ? 84 : 52);
3869:                }
3870:
3871:                public final void set_same_screen(int val) {
3872:                    byteBase.setInt32(NativeBridge.is64 ? 88 : 56, val);
3873:                }
3874:
3875:                public final int get_same_screen() {
3876:                    return byteBase.getInt32(NativeBridge.is64 ? 88 : 56);
3877:                }
3878:
3879:                public int size() {
3880:                    return sizeof;
3881:                }
3882:            }
3883:
3884:            public final XMotionEvent createXMotionEvent(boolean direct) {
3885:                return new XMotionEvent(direct);
3886:            }
3887:
3888:            public final XMotionEvent createXMotionEvent(VoidPointer base) {
3889:                return new XMotionEvent(base);
3890:            }
3891:
3892:            public final XMotionEvent createXMotionEvent(long addr) {
3893:                return new XMotionEvent(addr);
3894:            }
3895:
3896:            public static class XButtonEvent extends CommonStructWrapper {
3897:
3898:                public static final int sizeof = NativeBridge.is64 ? 96 : 60;
3899:
3900:                XButtonEvent(boolean direct) {
3901:                    super (sizeof, direct);
3902:                }
3903:
3904:                XButtonEvent(VoidPointer base) {
3905:                    super (base);
3906:                }
3907:
3908:                XButtonEvent(long addr) {
3909:                    super (addr);
3910:                }
3911:
3912:                public final void set_type(int val) {
3913:                    byteBase.setInt32(0, val);
3914:                }
3915:
3916:                public final int get_type() {
3917:                    return byteBase.getInt32(0);
3918:                }
3919:
3920:                public final void set_serial(long val) {
3921:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
3922:                }
3923:
3924:                public final long get_serial() {
3925:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
3926:                }
3927:
3928:                public final void set_send_event(int val) {
3929:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
3930:                }
3931:
3932:                public final int get_send_event() {
3933:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
3934:                }
3935:
3936:                public final void set_display(long val) {
3937:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
3938:                }
3939:
3940:                public final long get_display() {
3941:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
3942:                }
3943:
3944:                public final void set_window(long val) {
3945:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
3946:                }
3947:
3948:                public final long get_window() {
3949:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
3950:                }
3951:
3952:                public final void set_root(long val) {
3953:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
3954:                }
3955:
3956:                public final long get_root() {
3957:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
3958:                }
3959:
3960:                public final void set_subwindow(long val) {
3961:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 24, val);
3962:                }
3963:
3964:                public final long get_subwindow() {
3965:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 24);
3966:                }
3967:
3968:                public final void set_time(long val) {
3969:                    byteBase.setCLong(NativeBridge.is64 ? 56 : 28, val);
3970:                }
3971:
3972:                public final long get_time() {
3973:                    return byteBase.getCLong(NativeBridge.is64 ? 56 : 28);
3974:                }
3975:
3976:                public final void set_x(int val) {
3977:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 32, val);
3978:                }
3979:
3980:                public final int get_x() {
3981:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 32);
3982:                }
3983:
3984:                public final void set_y(int val) {
3985:                    byteBase.setInt32(NativeBridge.is64 ? 68 : 36, val);
3986:                }
3987:
3988:                public final int get_y() {
3989:                    return byteBase.getInt32(NativeBridge.is64 ? 68 : 36);
3990:                }
3991:
3992:                public final void set_x_root(int val) {
3993:                    byteBase.setInt32(NativeBridge.is64 ? 72 : 40, val);
3994:                }
3995:
3996:                public final int get_x_root() {
3997:                    return byteBase.getInt32(NativeBridge.is64 ? 72 : 40);
3998:                }
3999:
4000:                public final void set_y_root(int val) {
4001:                    byteBase.setInt32(NativeBridge.is64 ? 76 : 44, val);
4002:                }
4003:
4004:                public final int get_y_root() {
4005:                    return byteBase.getInt32(NativeBridge.is64 ? 76 : 44);
4006:                }
4007:
4008:                public final void set_state(int val) {
4009:                    byteBase.setInt32(NativeBridge.is64 ? 80 : 48, val);
4010:                }
4011:
4012:                public final int get_state() {
4013:                    return byteBase.getInt32(NativeBridge.is64 ? 80 : 48);
4014:                }
4015:
4016:                public final void set_button(int val) {
4017:                    byteBase.setInt32(NativeBridge.is64 ? 84 : 52, val);
4018:                }
4019:
4020:                public final int get_button() {
4021:                    return byteBase.getInt32(NativeBridge.is64 ? 84 : 52);
4022:                }
4023:
4024:                public final void set_same_screen(int val) {
4025:                    byteBase.setInt32(NativeBridge.is64 ? 88 : 56, val);
4026:                }
4027:
4028:                public final int get_same_screen() {
4029:                    return byteBase.getInt32(NativeBridge.is64 ? 88 : 56);
4030:                }
4031:
4032:                public int size() {
4033:                    return sizeof;
4034:                }
4035:            }
4036:
4037:            public final XButtonEvent createXButtonEvent(boolean direct) {
4038:                return new XButtonEvent(direct);
4039:            }
4040:
4041:            public final XButtonEvent createXButtonEvent(VoidPointer base) {
4042:                return new XButtonEvent(base);
4043:            }
4044:
4045:            public final XButtonEvent createXButtonEvent(long addr) {
4046:                return new XButtonEvent(addr);
4047:            }
4048:
4049:            public static class XReparentEvent extends CommonStructWrapper {
4050:
4051:                public static final int sizeof = NativeBridge.is64 ? 72 : 40;
4052:
4053:                XReparentEvent(boolean direct) {
4054:                    super (sizeof, direct);
4055:                }
4056:
4057:                XReparentEvent(VoidPointer base) {
4058:                    super (base);
4059:                }
4060:
4061:                XReparentEvent(long addr) {
4062:                    super (addr);
4063:                }
4064:
4065:                public final void set_type(int val) {
4066:                    byteBase.setInt32(0, val);
4067:                }
4068:
4069:                public final int get_type() {
4070:                    return byteBase.getInt32(0);
4071:                }
4072:
4073:                public final void set_serial(long val) {
4074:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
4075:                }
4076:
4077:                public final long get_serial() {
4078:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
4079:                }
4080:
4081:                public final void set_send_event(int val) {
4082:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
4083:                }
4084:
4085:                public final int get_send_event() {
4086:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
4087:                }
4088:
4089:                public final void set_display(long val) {
4090:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
4091:                }
4092:
4093:                public final long get_display() {
4094:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
4095:                }
4096:
4097:                public final void set_event(long val) {
4098:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
4099:                }
4100:
4101:                public final long get_event() {
4102:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
4103:                }
4104:
4105:                public final void set_window(long val) {
4106:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
4107:                }
4108:
4109:                public final long get_window() {
4110:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
4111:                }
4112:
4113:                public final void set_parent(long val) {
4114:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 24, val);
4115:                }
4116:
4117:                public final long get_parent() {
4118:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 24);
4119:                }
4120:
4121:                public final void set_x(int val) {
4122:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 28, val);
4123:                }
4124:
4125:                public final int get_x() {
4126:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 28);
4127:                }
4128:
4129:                public final void set_y(int val) {
4130:                    byteBase.setInt32(NativeBridge.is64 ? 60 : 32, val);
4131:                }
4132:
4133:                public final int get_y() {
4134:                    return byteBase.getInt32(NativeBridge.is64 ? 60 : 32);
4135:                }
4136:
4137:                public final void set_override_redirect(int val) {
4138:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 36, val);
4139:                }
4140:
4141:                public final int get_override_redirect() {
4142:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 36);
4143:                }
4144:
4145:                public int size() {
4146:                    return sizeof;
4147:                }
4148:            }
4149:
4150:            public final XReparentEvent createXReparentEvent(boolean direct) {
4151:                return new XReparentEvent(direct);
4152:            }
4153:
4154:            public final XReparentEvent createXReparentEvent(VoidPointer base) {
4155:                return new XReparentEvent(base);
4156:            }
4157:
4158:            public final XReparentEvent createXReparentEvent(long addr) {
4159:                return new XReparentEvent(addr);
4160:            }
4161:
4162:            public static class XConfigureRequestEvent extends
4163:                    CommonStructWrapper {
4164:
4165:                public static final int sizeof = NativeBridge.is64 ? 96 : 56;
4166:
4167:                XConfigureRequestEvent(boolean direct) {
4168:                    super (sizeof, direct);
4169:                }
4170:
4171:                XConfigureRequestEvent(VoidPointer base) {
4172:                    super (base);
4173:                }
4174:
4175:                XConfigureRequestEvent(long addr) {
4176:                    super (addr);
4177:                }
4178:
4179:                public final void set_type(int val) {
4180:                    byteBase.setInt32(0, val);
4181:                }
4182:
4183:                public final int get_type() {
4184:                    return byteBase.getInt32(0);
4185:                }
4186:
4187:                public final void set_serial(long val) {
4188:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
4189:                }
4190:
4191:                public final long get_serial() {
4192:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
4193:                }
4194:
4195:                public final void set_send_event(int val) {
4196:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
4197:                }
4198:
4199:                public final int get_send_event() {
4200:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
4201:                }
4202:
4203:                public final void set_display(long val) {
4204:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
4205:                }
4206:
4207:                public final long get_display() {
4208:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
4209:                }
4210:
4211:                public final void set_parent(long val) {
4212:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
4213:                }
4214:
4215:                public final long get_parent() {
4216:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
4217:                }
4218:
4219:                public final void set_window(long val) {
4220:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
4221:                }
4222:
4223:                public final long get_window() {
4224:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
4225:                }
4226:
4227:                public final void set_x(int val) {
4228:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
4229:                }
4230:
4231:                public final int get_x() {
4232:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
4233:                }
4234:
4235:                public final void set_y(int val) {
4236:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 28, val);
4237:                }
4238:
4239:                public final int get_y() {
4240:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 28);
4241:                }
4242:
4243:                public final void set_width(int val) {
4244:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 32, val);
4245:                }
4246:
4247:                public final int get_width() {
4248:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 32);
4249:                }
4250:
4251:                public final void set_height(int val) {
4252:                    byteBase.setInt32(NativeBridge.is64 ? 60 : 36, val);
4253:                }
4254:
4255:                public final int get_height() {
4256:                    return byteBase.getInt32(NativeBridge.is64 ? 60 : 36);
4257:                }
4258:
4259:                public final void set_border_width(int val) {
4260:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 40, val);
4261:                }
4262:
4263:                public final int get_border_width() {
4264:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 40);
4265:                }
4266:
4267:                public final void set_above(long val) {
4268:                    byteBase.setCLong(NativeBridge.is64 ? 72 : 44, val);
4269:                }
4270:
4271:                public final long get_above() {
4272:                    return byteBase.getCLong(NativeBridge.is64 ? 72 : 44);
4273:                }
4274:
4275:                public final void set_detail(int val) {
4276:                    byteBase.setInt32(NativeBridge.is64 ? 80 : 48, val);
4277:                }
4278:
4279:                public final int get_detail() {
4280:                    return byteBase.getInt32(NativeBridge.is64 ? 80 : 48);
4281:                }
4282:
4283:                public final void set_value_mask(long val) {
4284:                    byteBase.setCLong(NativeBridge.is64 ? 88 : 52, val);
4285:                }
4286:
4287:                public final long get_value_mask() {
4288:                    return byteBase.getCLong(NativeBridge.is64 ? 88 : 52);
4289:                }
4290:
4291:                public int size() {
4292:                    return sizeof;
4293:                }
4294:            }
4295:
4296:            public final XConfigureRequestEvent createXConfigureRequestEvent(
4297:                    boolean direct) {
4298:                return new XConfigureRequestEvent(direct);
4299:            }
4300:
4301:            public final XConfigureRequestEvent createXConfigureRequestEvent(
4302:                    VoidPointer base) {
4303:                return new XConfigureRequestEvent(base);
4304:            }
4305:
4306:            public final XConfigureRequestEvent createXConfigureRequestEvent(
4307:                    long addr) {
4308:                return new XConfigureRequestEvent(addr);
4309:            }
4310:
4311:            public static class XAnyEvent extends CommonStructWrapper {
4312:
4313:                public static final int sizeof = NativeBridge.is64 ? 40 : 20;
4314:
4315:                XAnyEvent(boolean direct) {
4316:                    super (sizeof, direct);
4317:                }
4318:
4319:                XAnyEvent(VoidPointer base) {
4320:                    super (base);
4321:                }
4322:
4323:                XAnyEvent(long addr) {
4324:                    super (addr);
4325:                }
4326:
4327:                public final void set_type(int val) {
4328:                    byteBase.setInt32(0, val);
4329:                }
4330:
4331:                public final int get_type() {
4332:                    return byteBase.getInt32(0);
4333:                }
4334:
4335:                public final void set_serial(long val) {
4336:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
4337:                }
4338:
4339:                public final long get_serial() {
4340:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
4341:                }
4342:
4343:                public final void set_send_event(int val) {
4344:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
4345:                }
4346:
4347:                public final int get_send_event() {
4348:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
4349:                }
4350:
4351:                public final void set_display(long val) {
4352:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
4353:                }
4354:
4355:                public final long get_display() {
4356:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
4357:                }
4358:
4359:                public final void set_window(long val) {
4360:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
4361:                }
4362:
4363:                public final long get_window() {
4364:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
4365:                }
4366:
4367:                public int size() {
4368:                    return sizeof;
4369:                }
4370:            }
4371:
4372:            public final XAnyEvent createXAnyEvent(boolean direct) {
4373:                return new XAnyEvent(direct);
4374:            }
4375:
4376:            public final XAnyEvent createXAnyEvent(VoidPointer base) {
4377:                return new XAnyEvent(base);
4378:            }
4379:
4380:            public final XAnyEvent createXAnyEvent(long addr) {
4381:                return new XAnyEvent(addr);
4382:            }
4383:
4384:            public static class XGravityEvent extends CommonStructWrapper {
4385:
4386:                public static final int sizeof = NativeBridge.is64 ? 56 : 32;
4387:
4388:                XGravityEvent(boolean direct) {
4389:                    super (sizeof, direct);
4390:                }
4391:
4392:                XGravityEvent(VoidPointer base) {
4393:                    super (base);
4394:                }
4395:
4396:                XGravityEvent(long addr) {
4397:                    super (addr);
4398:                }
4399:
4400:                public final void set_type(int val) {
4401:                    byteBase.setInt32(0, val);
4402:                }
4403:
4404:                public final int get_type() {
4405:                    return byteBase.getInt32(0);
4406:                }
4407:
4408:                public final void set_serial(long val) {
4409:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
4410:                }
4411:
4412:                public final long get_serial() {
4413:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
4414:                }
4415:
4416:                public final void set_send_event(int val) {
4417:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
4418:                }
4419:
4420:                public final int get_send_event() {
4421:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
4422:                }
4423:
4424:                public final void set_display(long val) {
4425:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
4426:                }
4427:
4428:                public final long get_display() {
4429:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
4430:                }
4431:
4432:                public final void set_event(long val) {
4433:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
4434:                }
4435:
4436:                public final long get_event() {
4437:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
4438:                }
4439:
4440:                public final void set_window(long val) {
4441:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
4442:                }
4443:
4444:                public final long get_window() {
4445:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
4446:                }
4447:
4448:                public final void set_x(int val) {
4449:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
4450:                }
4451:
4452:                public final int get_x() {
4453:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
4454:                }
4455:
4456:                public final void set_y(int val) {
4457:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 28, val);
4458:                }
4459:
4460:                public final int get_y() {
4461:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 28);
4462:                }
4463:
4464:                public int size() {
4465:                    return sizeof;
4466:                }
4467:            }
4468:
4469:            public final XGravityEvent createXGravityEvent(boolean direct) {
4470:                return new XGravityEvent(direct);
4471:            }
4472:
4473:            public final XGravityEvent createXGravityEvent(VoidPointer base) {
4474:                return new XGravityEvent(base);
4475:            }
4476:
4477:            public final XGravityEvent createXGravityEvent(long addr) {
4478:                return new XGravityEvent(addr);
4479:            }
4480:
4481:            public static class XConfigureEvent extends CommonStructWrapper {
4482:
4483:                public static final int sizeof = NativeBridge.is64 ? 88 : 52;
4484:
4485:                XConfigureEvent(boolean direct) {
4486:                    super (sizeof, direct);
4487:                }
4488:
4489:                XConfigureEvent(VoidPointer base) {
4490:                    super (base);
4491:                }
4492:
4493:                XConfigureEvent(long addr) {
4494:                    super (addr);
4495:                }
4496:
4497:                public final void set_type(int val) {
4498:                    byteBase.setInt32(0, val);
4499:                }
4500:
4501:                public final int get_type() {
4502:                    return byteBase.getInt32(0);
4503:                }
4504:
4505:                public final void set_serial(long val) {
4506:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
4507:                }
4508:
4509:                public final long get_serial() {
4510:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
4511:                }
4512:
4513:                public final void set_send_event(int val) {
4514:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
4515:                }
4516:
4517:                public final int get_send_event() {
4518:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
4519:                }
4520:
4521:                public final void set_display(long val) {
4522:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
4523:                }
4524:
4525:                public final long get_display() {
4526:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
4527:                }
4528:
4529:                public final void set_event(long val) {
4530:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
4531:                }
4532:
4533:                public final long get_event() {
4534:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
4535:                }
4536:
4537:                public final void set_window(long val) {
4538:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
4539:                }
4540:
4541:                public final long get_window() {
4542:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
4543:                }
4544:
4545:                public final void set_x(int val) {
4546:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
4547:                }
4548:
4549:                public final int get_x() {
4550:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
4551:                }
4552:
4553:                public final void set_y(int val) {
4554:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 28, val);
4555:                }
4556:
4557:                public final int get_y() {
4558:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 28);
4559:                }
4560:
4561:                public final void set_width(int val) {
4562:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 32, val);
4563:                }
4564:
4565:                public final int get_width() {
4566:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 32);
4567:                }
4568:
4569:                public final void set_height(int val) {
4570:                    byteBase.setInt32(NativeBridge.is64 ? 60 : 36, val);
4571:                }
4572:
4573:                public final int get_height() {
4574:                    return byteBase.getInt32(NativeBridge.is64 ? 60 : 36);
4575:                }
4576:
4577:                public final void set_border_width(int val) {
4578:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 40, val);
4579:                }
4580:
4581:                public final int get_border_width() {
4582:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 40);
4583:                }
4584:
4585:                public final void set_above(long val) {
4586:                    byteBase.setCLong(NativeBridge.is64 ? 72 : 44, val);
4587:                }
4588:
4589:                public final long get_above() {
4590:                    return byteBase.getCLong(NativeBridge.is64 ? 72 : 44);
4591:                }
4592:
4593:                public final void set_override_redirect(int val) {
4594:                    byteBase.setInt32(NativeBridge.is64 ? 80 : 48, val);
4595:                }
4596:
4597:                public final int get_override_redirect() {
4598:                    return byteBase.getInt32(NativeBridge.is64 ? 80 : 48);
4599:                }
4600:
4601:                public int size() {
4602:                    return sizeof;
4603:                }
4604:            }
4605:
4606:            public final XConfigureEvent createXConfigureEvent(boolean direct) {
4607:                return new XConfigureEvent(direct);
4608:            }
4609:
4610:            public final XConfigureEvent createXConfigureEvent(VoidPointer base) {
4611:                return new XConfigureEvent(base);
4612:            }
4613:
4614:            public final XConfigureEvent createXConfigureEvent(long addr) {
4615:                return new XConfigureEvent(addr);
4616:            }
4617:
4618:            public static class XPropertyEvent extends CommonStructWrapper {
4619:
4620:                public static final int sizeof = NativeBridge.is64 ? 64 : 32;
4621:
4622:                XPropertyEvent(boolean direct) {
4623:                    super (sizeof, direct);
4624:                }
4625:
4626:                XPropertyEvent(VoidPointer base) {
4627:                    super (base);
4628:                }
4629:
4630:                XPropertyEvent(long addr) {
4631:                    super (addr);
4632:                }
4633:
4634:                public final void set_type(int val) {
4635:                    byteBase.setInt32(0, val);
4636:                }
4637:
4638:                public final int get_type() {
4639:                    return byteBase.getInt32(0);
4640:                }
4641:
4642:                public final void set_serial(long val) {
4643:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
4644:                }
4645:
4646:                public final long get_serial() {
4647:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
4648:                }
4649:
4650:                public final void set_send_event(int val) {
4651:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
4652:                }
4653:
4654:                public final int get_send_event() {
4655:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
4656:                }
4657:
4658:                public final void set_display(long val) {
4659:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
4660:                }
4661:
4662:                public final long get_display() {
4663:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
4664:                }
4665:
4666:                public final void set_window(long val) {
4667:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
4668:                }
4669:
4670:                public final long get_window() {
4671:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
4672:                }
4673:
4674:                public final void set_atom(long val) {
4675:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
4676:                }
4677:
4678:                public final long get_atom() {
4679:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
4680:                }
4681:
4682:                public final void set_time(long val) {
4683:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 24, val);
4684:                }
4685:
4686:                public final long get_time() {
4687:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 24);
4688:                }
4689:
4690:                public final void set_state(int val) {
4691:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 28, val);
4692:                }
4693:
4694:                public final int get_state() {
4695:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 28);
4696:                }
4697:
4698:                public int size() {
4699:                    return sizeof;
4700:                }
4701:            }
4702:
4703:            public final XPropertyEvent createXPropertyEvent(boolean direct) {
4704:                return new XPropertyEvent(direct);
4705:            }
4706:
4707:            public final XPropertyEvent createXPropertyEvent(VoidPointer base) {
4708:                return new XPropertyEvent(base);
4709:            }
4710:
4711:            public final XPropertyEvent createXPropertyEvent(long addr) {
4712:                return new XPropertyEvent(addr);
4713:            }
4714:
4715:            public static class XSelectionClearEvent extends
4716:                    CommonStructWrapper {
4717:
4718:                public static final int sizeof = NativeBridge.is64 ? 56 : 28;
4719:
4720:                XSelectionClearEvent(boolean direct) {
4721:                    super (sizeof, direct);
4722:                }
4723:
4724:                XSelectionClearEvent(VoidPointer base) {
4725:                    super (base);
4726:                }
4727:
4728:                XSelectionClearEvent(long addr) {
4729:                    super (addr);
4730:                }
4731:
4732:                public final void set_type(int val) {
4733:                    byteBase.setInt32(0, val);
4734:                }
4735:
4736:                public final int get_type() {
4737:                    return byteBase.getInt32(0);
4738:                }
4739:
4740:                public final void set_serial(long val) {
4741:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
4742:                }
4743:
4744:                public final long get_serial() {
4745:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
4746:                }
4747:
4748:                public final void set_send_event(int val) {
4749:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
4750:                }
4751:
4752:                public final int get_send_event() {
4753:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
4754:                }
4755:
4756:                public final void set_display(long val) {
4757:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
4758:                }
4759:
4760:                public final long get_display() {
4761:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
4762:                }
4763:
4764:                public final void set_window(long val) {
4765:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
4766:                }
4767:
4768:                public final long get_window() {
4769:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
4770:                }
4771:
4772:                public final void set_selection(long val) {
4773:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
4774:                }
4775:
4776:                public final long get_selection() {
4777:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
4778:                }
4779:
4780:                public final void set_time(long val) {
4781:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 24, val);
4782:                }
4783:
4784:                public final long get_time() {
4785:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 24);
4786:                }
4787:
4788:                public int size() {
4789:                    return sizeof;
4790:                }
4791:            }
4792:
4793:            public final XSelectionClearEvent createXSelectionClearEvent(
4794:                    boolean direct) {
4795:                return new XSelectionClearEvent(direct);
4796:            }
4797:
4798:            public final XSelectionClearEvent createXSelectionClearEvent(
4799:                    VoidPointer base) {
4800:                return new XSelectionClearEvent(base);
4801:            }
4802:
4803:            public final XSelectionClearEvent createXSelectionClearEvent(
4804:                    long addr) {
4805:                return new XSelectionClearEvent(addr);
4806:            }
4807:
4808:            public static class XMapEvent extends CommonStructWrapper {
4809:
4810:                public static final int sizeof = NativeBridge.is64 ? 56 : 28;
4811:
4812:                XMapEvent(boolean direct) {
4813:                    super (sizeof, direct);
4814:                }
4815:
4816:                XMapEvent(VoidPointer base) {
4817:                    super (base);
4818:                }
4819:
4820:                XMapEvent(long addr) {
4821:                    super (addr);
4822:                }
4823:
4824:                public final void set_type(int val) {
4825:                    byteBase.setInt32(0, val);
4826:                }
4827:
4828:                public final int get_type() {
4829:                    return byteBase.getInt32(0);
4830:                }
4831:
4832:                public final void set_serial(long val) {
4833:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
4834:                }
4835:
4836:                public final long get_serial() {
4837:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
4838:                }
4839:
4840:                public final void set_send_event(int val) {
4841:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
4842:                }
4843:
4844:                public final int get_send_event() {
4845:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
4846:                }
4847:
4848:                public final void set_display(long val) {
4849:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
4850:                }
4851:
4852:                public final long get_display() {
4853:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
4854:                }
4855:
4856:                public final void set_event(long val) {
4857:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
4858:                }
4859:
4860:                public final long get_event() {
4861:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
4862:                }
4863:
4864:                public final void set_window(long val) {
4865:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
4866:                }
4867:
4868:                public final long get_window() {
4869:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
4870:                }
4871:
4872:                public final void set_override_redirect(int val) {
4873:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 24, val);
4874:                }
4875:
4876:                public final int get_override_redirect() {
4877:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 24);
4878:                }
4879:
4880:                public int size() {
4881:                    return sizeof;
4882:                }
4883:            }
4884:
4885:            public final XMapEvent createXMapEvent(boolean direct) {
4886:                return new XMapEvent(direct);
4887:            }
4888:
4889:            public final XMapEvent createXMapEvent(VoidPointer base) {
4890:                return new XMapEvent(base);
4891:            }
4892:
4893:            public final XMapEvent createXMapEvent(long addr) {
4894:                return new XMapEvent(addr);
4895:            }
4896:
4897:            public static class XDestroyWindowEvent extends CommonStructWrapper {
4898:
4899:                public static final int sizeof = NativeBridge.is64 ? 48 : 24;
4900:
4901:                XDestroyWindowEvent(boolean direct) {
4902:                    super (sizeof, direct);
4903:                }
4904:
4905:                XDestroyWindowEvent(VoidPointer base) {
4906:                    super (base);
4907:                }
4908:
4909:                XDestroyWindowEvent(long addr) {
4910:                    super (addr);
4911:                }
4912:
4913:                public final void set_type(int val) {
4914:                    byteBase.setInt32(0, val);
4915:                }
4916:
4917:                public final int get_type() {
4918:                    return byteBase.getInt32(0);
4919:                }
4920:
4921:                public final void set_serial(long val) {
4922:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
4923:                }
4924:
4925:                public final long get_serial() {
4926:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
4927:                }
4928:
4929:                public final void set_send_event(int val) {
4930:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
4931:                }
4932:
4933:                public final int get_send_event() {
4934:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
4935:                }
4936:
4937:                public final void set_display(long val) {
4938:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
4939:                }
4940:
4941:                public final long get_display() {
4942:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
4943:                }
4944:
4945:                public final void set_event(long val) {
4946:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
4947:                }
4948:
4949:                public final long get_event() {
4950:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
4951:                }
4952:
4953:                public final void set_window(long val) {
4954:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
4955:                }
4956:
4957:                public final long get_window() {
4958:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
4959:                }
4960:
4961:                public int size() {
4962:                    return sizeof;
4963:                }
4964:            }
4965:
4966:            public final XDestroyWindowEvent createXDestroyWindowEvent(
4967:                    boolean direct) {
4968:                return new XDestroyWindowEvent(direct);
4969:            }
4970:
4971:            public final XDestroyWindowEvent createXDestroyWindowEvent(
4972:                    VoidPointer base) {
4973:                return new XDestroyWindowEvent(base);
4974:            }
4975:
4976:            public final XDestroyWindowEvent createXDestroyWindowEvent(long addr) {
4977:                return new XDestroyWindowEvent(addr);
4978:            }
4979:
4980:            public static class XMapRequestEvent extends CommonStructWrapper {
4981:
4982:                public static final int sizeof = NativeBridge.is64 ? 48 : 24;
4983:
4984:                XMapRequestEvent(boolean direct) {
4985:                    super (sizeof, direct);
4986:                }
4987:
4988:                XMapRequestEvent(VoidPointer base) {
4989:                    super (base);
4990:                }
4991:
4992:                XMapRequestEvent(long addr) {
4993:                    super (addr);
4994:                }
4995:
4996:                public final void set_type(int val) {
4997:                    byteBase.setInt32(0, val);
4998:                }
4999:
5000:                public final int get_type() {
5001:                    return byteBase.getInt32(0);
5002:                }
5003:
5004:                public final void set_serial(long val) {
5005:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
5006:                }
5007:
5008:                public final long get_serial() {
5009:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
5010:                }
5011:
5012:                public final void set_send_event(int val) {
5013:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
5014:                }
5015:
5016:                public final int get_send_event() {
5017:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
5018:                }
5019:
5020:                public final void set_display(long val) {
5021:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
5022:                }
5023:
5024:                public final long get_display() {
5025:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
5026:                }
5027:
5028:                public final void set_parent(long val) {
5029:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
5030:                }
5031:
5032:                public final long get_parent() {
5033:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
5034:                }
5035:
5036:                public final void set_window(long val) {
5037:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
5038:                }
5039:
5040:                public final long get_window() {
5041:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
5042:                }
5043:
5044:                public int size() {
5045:                    return sizeof;
5046:                }
5047:            }
5048:
5049:            public final XMapRequestEvent createXMapRequestEvent(boolean direct) {
5050:                return new XMapRequestEvent(direct);
5051:            }
5052:
5053:            public final XMapRequestEvent createXMapRequestEvent(
5054:                    VoidPointer base) {
5055:                return new XMapRequestEvent(base);
5056:            }
5057:
5058:            public final XMapRequestEvent createXMapRequestEvent(long addr) {
5059:                return new XMapRequestEvent(addr);
5060:            }
5061:
5062:            public static class XGraphicsExposeEvent extends
5063:                    CommonStructWrapper {
5064:
5065:                public static final int sizeof = NativeBridge.is64 ? 72 : 48;
5066:
5067:                XGraphicsExposeEvent(boolean direct) {
5068:                    super (sizeof, direct);
5069:                }
5070:
5071:                XGraphicsExposeEvent(VoidPointer base) {
5072:                    super (base);
5073:                }
5074:
5075:                XGraphicsExposeEvent(long addr) {
5076:                    super (addr);
5077:                }
5078:
5079:                public final void set_type(int val) {
5080:                    byteBase.setInt32(0, val);
5081:                }
5082:
5083:                public final int get_type() {
5084:                    return byteBase.getInt32(0);
5085:                }
5086:
5087:                public final void set_serial(long val) {
5088:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
5089:                }
5090:
5091:                public final long get_serial() {
5092:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
5093:                }
5094:
5095:                public final void set_send_event(int val) {
5096:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
5097:                }
5098:
5099:                public final int get_send_event() {
5100:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
5101:                }
5102:
5103:                public final void set_display(long val) {
5104:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
5105:                }
5106:
5107:                public final long get_display() {
5108:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
5109:                }
5110:
5111:                public final void set_drawable(long val) {
5112:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
5113:                }
5114:
5115:                public final long get_drawable() {
5116:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
5117:                }
5118:
5119:                public final void set_x(int val) {
5120:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 20, val);
5121:                }
5122:
5123:                public final int get_x() {
5124:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 20);
5125:                }
5126:
5127:                public final void set_y(int val) {
5128:                    byteBase.setInt32(NativeBridge.is64 ? 44 : 24, val);
5129:                }
5130:
5131:                public final int get_y() {
5132:                    return byteBase.getInt32(NativeBridge.is64 ? 44 : 24);
5133:                }
5134:
5135:                public final void set_width(int val) {
5136:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 28, val);
5137:                }
5138:
5139:                public final int get_width() {
5140:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 28);
5141:                }
5142:
5143:                public final void set_height(int val) {
5144:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 32, val);
5145:                }
5146:
5147:                public final int get_height() {
5148:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 32);
5149:                }
5150:
5151:                public final void set_count(int val) {
5152:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 36, val);
5153:                }
5154:
5155:                public final int get_count() {
5156:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 36);
5157:                }
5158:
5159:                public final void set_major_code(int val) {
5160:                    byteBase.setInt32(NativeBridge.is64 ? 60 : 40, val);
5161:                }
5162:
5163:                public final int get_major_code() {
5164:                    return byteBase.getInt32(NativeBridge.is64 ? 60 : 40);
5165:                }
5166:
5167:                public final void set_minor_code(int val) {
5168:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 44, val);
5169:                }
5170:
5171:                public final int get_minor_code() {
5172:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 44);
5173:                }
5174:
5175:                public int size() {
5176:                    return sizeof;
5177:                }
5178:            }
5179:
5180:            public final XGraphicsExposeEvent createXGraphicsExposeEvent(
5181:                    boolean direct) {
5182:                return new XGraphicsExposeEvent(direct);
5183:            }
5184:
5185:            public final XGraphicsExposeEvent createXGraphicsExposeEvent(
5186:                    VoidPointer base) {
5187:                return new XGraphicsExposeEvent(base);
5188:            }
5189:
5190:            public final XGraphicsExposeEvent createXGraphicsExposeEvent(
5191:                    long addr) {
5192:                return new XGraphicsExposeEvent(addr);
5193:            }
5194:
5195:            public static class XCrossingEvent extends CommonStructWrapper {
5196:
5197:                public static final int sizeof = NativeBridge.is64 ? 104 : 68;
5198:
5199:                XCrossingEvent(boolean direct) {
5200:                    super (sizeof, direct);
5201:                }
5202:
5203:                XCrossingEvent(VoidPointer base) {
5204:                    super (base);
5205:                }
5206:
5207:                XCrossingEvent(long addr) {
5208:                    super (addr);
5209:                }
5210:
5211:                public final void set_type(int val) {
5212:                    byteBase.setInt32(0, val);
5213:                }
5214:
5215:                public final int get_type() {
5216:                    return byteBase.getInt32(0);
5217:                }
5218:
5219:                public final void set_serial(long val) {
5220:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
5221:                }
5222:
5223:                public final long get_serial() {
5224:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
5225:                }
5226:
5227:                public final void set_send_event(int val) {
5228:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
5229:                }
5230:
5231:                public final int get_send_event() {
5232:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
5233:                }
5234:
5235:                public final void set_display(long val) {
5236:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
5237:                }
5238:
5239:                public final long get_display() {
5240:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
5241:                }
5242:
5243:                public final void set_window(long val) {
5244:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
5245:                }
5246:
5247:                public final long get_window() {
5248:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
5249:                }
5250:
5251:                public final void set_root(long val) {
5252:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
5253:                }
5254:
5255:                public final long get_root() {
5256:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
5257:                }
5258:
5259:                public final void set_subwindow(long val) {
5260:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 24, val);
5261:                }
5262:
5263:                public final long get_subwindow() {
5264:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 24);
5265:                }
5266:
5267:                public final void set_time(long val) {
5268:                    byteBase.setCLong(NativeBridge.is64 ? 56 : 28, val);
5269:                }
5270:
5271:                public final long get_time() {
5272:                    return byteBase.getCLong(NativeBridge.is64 ? 56 : 28);
5273:                }
5274:
5275:                public final void set_x(int val) {
5276:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 32, val);
5277:                }
5278:
5279:                public final int get_x() {
5280:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 32);
5281:                }
5282:
5283:                public final void set_y(int val) {
5284:                    byteBase.setInt32(NativeBridge.is64 ? 68 : 36, val);
5285:                }
5286:
5287:                public final int get_y() {
5288:                    return byteBase.getInt32(NativeBridge.is64 ? 68 : 36);
5289:                }
5290:
5291:                public final void set_x_root(int val) {
5292:                    byteBase.setInt32(NativeBridge.is64 ? 72 : 40, val);
5293:                }
5294:
5295:                public final int get_x_root() {
5296:                    return byteBase.getInt32(NativeBridge.is64 ? 72 : 40);
5297:                }
5298:
5299:                public final void set_y_root(int val) {
5300:                    byteBase.setInt32(NativeBridge.is64 ? 76 : 44, val);
5301:                }
5302:
5303:                public final int get_y_root() {
5304:                    return byteBase.getInt32(NativeBridge.is64 ? 76 : 44);
5305:                }
5306:
5307:                public final void set_mode(int val) {
5308:                    byteBase.setInt32(NativeBridge.is64 ? 80 : 48, val);
5309:                }
5310:
5311:                public final int get_mode() {
5312:                    return byteBase.getInt32(NativeBridge.is64 ? 80 : 48);
5313:                }
5314:
5315:                public final void set_detail(int val) {
5316:                    byteBase.setInt32(NativeBridge.is64 ? 84 : 52, val);
5317:                }
5318:
5319:                public final int get_detail() {
5320:                    return byteBase.getInt32(NativeBridge.is64 ? 84 : 52);
5321:                }
5322:
5323:                public final void set_same_screen(int val) {
5324:                    byteBase.setInt32(NativeBridge.is64 ? 88 : 56, val);
5325:                }
5326:
5327:                public final int get_same_screen() {
5328:                    return byteBase.getInt32(NativeBridge.is64 ? 88 : 56);
5329:                }
5330:
5331:                public final void set_focus(int val) {
5332:                    byteBase.setInt32(NativeBridge.is64 ? 92 : 60, val);
5333:                }
5334:
5335:                public final int get_focus() {
5336:                    return byteBase.getInt32(NativeBridge.is64 ? 92 : 60);
5337:                }
5338:
5339:                public final void set_state(int val) {
5340:                    byteBase.setInt32(NativeBridge.is64 ? 96 : 64, val);
5341:                }
5342:
5343:                public final int get_state() {
5344:                    return byteBase.getInt32(NativeBridge.is64 ? 96 : 64);
5345:                }
5346:
5347:                public int size() {
5348:                    return sizeof;
5349:                }
5350:            }
5351:
5352:            public final XCrossingEvent createXCrossingEvent(boolean direct) {
5353:                return new XCrossingEvent(direct);
5354:            }
5355:
5356:            public final XCrossingEvent createXCrossingEvent(VoidPointer base) {
5357:                return new XCrossingEvent(base);
5358:            }
5359:
5360:            public final XCrossingEvent createXCrossingEvent(long addr) {
5361:                return new XCrossingEvent(addr);
5362:            }
5363:
5364:            public static class XKeymapEvent extends CommonStructWrapper {
5365:
5366:                public static final int sizeof = NativeBridge.is64 ? 72 : 52;
5367:
5368:                XKeymapEvent(boolean direct) {
5369:                    super (sizeof, direct);
5370:                }
5371:
5372:                XKeymapEvent(VoidPointer base) {
5373:                    super (base);
5374:                }
5375:
5376:                XKeymapEvent(long addr) {
5377:                    super (addr);
5378:                }
5379:
5380:                public final void set_type(int val) {
5381:                    byteBase.setInt32(0, val);
5382:                }
5383:
5384:                public final int get_type() {
5385:                    return byteBase.getInt32(0);
5386:                }
5387:
5388:                public final void set_serial(long val) {
5389:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
5390:                }
5391:
5392:                public final long get_serial() {
5393:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
5394:                }
5395:
5396:                public final void set_send_event(int val) {
5397:                    byteBase.setInt32(NativeBridge.is64 ? 16 : 8, val);
5398:                }
5399:
5400:                public final int get_send_event() {
5401:                    return byteBase.getInt32(NativeBridge.is64 ? 16 : 8);
5402:                }
5403:
5404:                public final void set_display(long val) {
5405:                    byteBase.setAddress(NativeBridge.is64 ? 24 : 12, val);
5406:                }
5407:
5408:                public final long get_display() {
5409:                    return byteBase.getAddress(NativeBridge.is64 ? 24 : 12);
5410:                }
5411:
5412:                public final void set_window(long val) {
5413:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
5414:                }
5415:
5416:                public final long get_window() {
5417:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
5418:                }
5419:
5420:                public final Int8Pointer get_key_vector() {
5421:                    return nb
5422:                            .createInt8Pointer(getElementPointer(NativeBridge.is64 ? 40
5423:                                    : 20));
5424:                }
5425:
5426:                public int size() {
5427:                    return sizeof;
5428:                }
5429:            }
5430:
5431:            public final XKeymapEvent createXKeymapEvent(boolean direct) {
5432:                return new XKeymapEvent(direct);
5433:            }
5434:
5435:            public final XKeymapEvent createXKeymapEvent(VoidPointer base) {
5436:                return new XKeymapEvent(base);
5437:            }
5438:
5439:            public final XKeymapEvent createXKeymapEvent(long addr) {
5440:                return new XKeymapEvent(addr);
5441:            }
5442:
5443:            public final int XPutImage(long param_0, long param_1,
5444:                    long param_2, X11.XImage param_3, int param_4, int param_5,
5445:                    int param_6, int param_7, int param_8, int param_9) {
5446:                long tmp_0 = param_3 == null ? 0 : param_3.longLockPointer();
5447:                int tmp_ret = XPutImage(param_0, param_1, param_2, tmp_0,
5448:                        param_4, param_5, param_6, param_7, param_8, param_9);
5449:                if (param_3 != null) {
5450:                    param_3.unlock();
5451:                }
5452:                return tmp_ret;
5453:            }
5454:
5455:            public final native int XPutImage(long param_0, long param_1,
5456:                    long param_2, long param_3, int param_4, int param_5,
5457:                    int param_6, int param_7, int param_8, int param_9);
5458:
5459:            public final native int XmuLookupStandardColormap(long dpy,
5460:                    int screen, long visualid, int depth, long property,
5461:                    int replace, int retain);
5462:
5463:            public final int XStoreName(long param_0, long param_1,
5464:                    String param_2) {
5465:                Int8Pointer _param_2 = null == param_2 ? null : nb
5466:                        .createInt8Pointer(param_2, false);
5467:                long tmp_0 = _param_2 == null ? 0 : _param_2.longLockPointer();
5468:                int tmp_ret = XStoreName(param_0, param_1, tmp_0);
5469:                if (_param_2 != null) {
5470:                    _param_2.unlock();
5471:                    _param_2.free();
5472:                }
5473:                return tmp_ret;
5474:            }
5475:
5476:            public final int XStoreName(long param_0, long param_1,
5477:                    Int8Pointer param_2) {
5478:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
5479:                int tmp_ret = XStoreName(param_0, param_1, tmp_0);
5480:                if (param_2 != null) {
5481:                    param_2.unlock();
5482:                }
5483:                return tmp_ret;
5484:            }
5485:
5486:            public final native int XStoreName(long param_0, long param_1,
5487:                    long param_2);
5488:
5489:            public final native long XAllocStandardColormap();
5490:
5491:            public static class XStandardColormap extends CommonStructWrapper {
5492:
5493:                public static final int sizeof = NativeBridge.is64 ? 80 : 40;
5494:
5495:                XStandardColormap(boolean direct) {
5496:                    super (sizeof, direct);
5497:                }
5498:
5499:                XStandardColormap(VoidPointer base) {
5500:                    super (base);
5501:                }
5502:
5503:                XStandardColormap(long addr) {
5504:                    super (addr);
5505:                }
5506:
5507:                public final void set_colormap(long val) {
5508:                    byteBase.setCLong(0, val);
5509:                }
5510:
5511:                public final long get_colormap() {
5512:                    return byteBase.getCLong(0);
5513:                }
5514:
5515:                public final void set_red_max(long val) {
5516:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
5517:                }
5518:
5519:                public final long get_red_max() {
5520:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
5521:                }
5522:
5523:                public final void set_red_mult(long val) {
5524:                    byteBase.setCLong(NativeBridge.is64 ? 16 : 8, val);
5525:                }
5526:
5527:                public final long get_red_mult() {
5528:                    return byteBase.getCLong(NativeBridge.is64 ? 16 : 8);
5529:                }
5530:
5531:                public final void set_green_max(long val) {
5532:                    byteBase.setCLong(NativeBridge.is64 ? 24 : 12, val);
5533:                }
5534:
5535:                public final long get_green_max() {
5536:                    return byteBase.getCLong(NativeBridge.is64 ? 24 : 12);
5537:                }
5538:
5539:                public final void set_green_mult(long val) {
5540:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 16, val);
5541:                }
5542:
5543:                public final long get_green_mult() {
5544:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 16);
5545:                }
5546:
5547:                public final void set_blue_max(long val) {
5548:                    byteBase.setCLong(NativeBridge.is64 ? 40 : 20, val);
5549:                }
5550:
5551:                public final long get_blue_max() {
5552:                    return byteBase.getCLong(NativeBridge.is64 ? 40 : 20);
5553:                }
5554:
5555:                public final void set_blue_mult(long val) {
5556:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 24, val);
5557:                }
5558:
5559:                public final long get_blue_mult() {
5560:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 24);
5561:                }
5562:
5563:                public final void set_base_pixel(long val) {
5564:                    byteBase.setCLong(NativeBridge.is64 ? 56 : 28, val);
5565:                }
5566:
5567:                public final long get_base_pixel() {
5568:                    return byteBase.getCLong(NativeBridge.is64 ? 56 : 28);
5569:                }
5570:
5571:                public final void set_visualid(long val) {
5572:                    byteBase.setCLong(NativeBridge.is64 ? 64 : 32, val);
5573:                }
5574:
5575:                public final long get_visualid() {
5576:                    return byteBase.getCLong(NativeBridge.is64 ? 64 : 32);
5577:                }
5578:
5579:                public final void set_killid(long val) {
5580:                    byteBase.setCLong(NativeBridge.is64 ? 72 : 36, val);
5581:                }
5582:
5583:                public final long get_killid() {
5584:                    return byteBase.getCLong(NativeBridge.is64 ? 72 : 36);
5585:                }
5586:
5587:                public int size() {
5588:                    return sizeof;
5589:                }
5590:            }
5591:
5592:            public final XStandardColormap createXStandardColormap(
5593:                    boolean direct) {
5594:                return new XStandardColormap(direct);
5595:            }
5596:
5597:            public final XStandardColormap createXStandardColormap(
5598:                    VoidPointer base) {
5599:                return new XStandardColormap(base);
5600:            }
5601:
5602:            public final XStandardColormap createXStandardColormap(long addr) {
5603:                return new XStandardColormap(addr);
5604:            }
5605:
5606:            public final int XSetClipRectangles(long param_0, long param_1,
5607:                    int param_2, int param_3, X11.XRectangle param_4,
5608:                    int param_5, int param_6) {
5609:                long tmp_0 = param_4 == null ? 0 : param_4.longLockPointer();
5610:                int tmp_ret = XSetClipRectangles(param_0, param_1, param_2,
5611:                        param_3, tmp_0, param_5, param_6);
5612:                if (param_4 != null) {
5613:                    param_4.unlock();
5614:                }
5615:                return tmp_ret;
5616:            }
5617:
5618:            public final native int XSetClipRectangles(long param_0,
5619:                    long param_1, int param_2, int param_3, long param_4,
5620:                    int param_5, int param_6);
5621:
5622:            public final int XChangeWindowAttributes(long param_0,
5623:                    long param_1, long param_2, XSetWindowAttributes param_3) {
5624:                long tmp_0 = param_3 == null ? 0 : param_3.longLockPointer();
5625:                int tmp_ret = XChangeWindowAttributes(param_0, param_1,
5626:                        param_2, tmp_0);
5627:                if (param_3 != null) {
5628:                    param_3.unlock();
5629:                }
5630:                return tmp_ret;
5631:            }
5632:
5633:            public final native int XChangeWindowAttributes(long param_0,
5634:                    long param_1, long param_2, long param_3);
5635:
5636:            public static class XSetWindowAttributes extends
5637:                    CommonStructWrapper {
5638:
5639:                public static final int sizeof = NativeBridge.is64 ? 112 : 60;
5640:
5641:                XSetWindowAttributes(boolean direct) {
5642:                    super (sizeof, direct);
5643:                }
5644:
5645:                XSetWindowAttributes(VoidPointer base) {
5646:                    super (base);
5647:                }
5648:
5649:                XSetWindowAttributes(long addr) {
5650:                    super (addr);
5651:                }
5652:
5653:                public final void set_background_pixmap(long val) {
5654:                    byteBase.setCLong(0, val);
5655:                }
5656:
5657:                public final long get_background_pixmap() {
5658:                    return byteBase.getCLong(0);
5659:                }
5660:
5661:                public final void set_background_pixel(long val) {
5662:                    byteBase.setCLong(NativeBridge.is64 ? 8 : 4, val);
5663:                }
5664:
5665:                public final long get_background_pixel() {
5666:                    return byteBase.getCLong(NativeBridge.is64 ? 8 : 4);
5667:                }
5668:
5669:                public final void set_border_pixmap(long val) {
5670:                    byteBase.setCLong(NativeBridge.is64 ? 16 : 8, val);
5671:                }
5672:
5673:                public final long get_border_pixmap() {
5674:                    return byteBase.getCLong(NativeBridge.is64 ? 16 : 8);
5675:                }
5676:
5677:                public final void set_border_pixel(long val) {
5678:                    byteBase.setCLong(NativeBridge.is64 ? 24 : 12, val);
5679:                }
5680:
5681:                public final long get_border_pixel() {
5682:                    return byteBase.getCLong(NativeBridge.is64 ? 24 : 12);
5683:                }
5684:
5685:                public final void set_bit_gravity(int val) {
5686:                    byteBase.setInt32(NativeBridge.is64 ? 32 : 16, val);
5687:                }
5688:
5689:                public final int get_bit_gravity() {
5690:                    return byteBase.getInt32(NativeBridge.is64 ? 32 : 16);
5691:                }
5692:
5693:                public final void set_win_gravity(int val) {
5694:                    byteBase.setInt32(NativeBridge.is64 ? 36 : 20, val);
5695:                }
5696:
5697:                public final int get_win_gravity() {
5698:                    return byteBase.getInt32(NativeBridge.is64 ? 36 : 20);
5699:                }
5700:
5701:                public final void set_backing_store(int val) {
5702:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 24, val);
5703:                }
5704:
5705:                public final int get_backing_store() {
5706:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 24);
5707:                }
5708:
5709:                public final void set_backing_planes(long val) {
5710:                    byteBase.setCLong(NativeBridge.is64 ? 48 : 28, val);
5711:                }
5712:
5713:                public final long get_backing_planes() {
5714:                    return byteBase.getCLong(NativeBridge.is64 ? 48 : 28);
5715:                }
5716:
5717:                public final void set_backing_pixel(long val) {
5718:                    byteBase.setCLong(NativeBridge.is64 ? 56 : 32, val);
5719:                }
5720:
5721:                public final long get_backing_pixel() {
5722:                    return byteBase.getCLong(NativeBridge.is64 ? 56 : 32);
5723:                }
5724:
5725:                public final void set_save_under(int val) {
5726:                    byteBase.setInt32(NativeBridge.is64 ? 64 : 36, val);
5727:                }
5728:
5729:                public final int get_save_under() {
5730:                    return byteBase.getInt32(NativeBridge.is64 ? 64 : 36);
5731:                }
5732:
5733:                public final void set_event_mask(long val) {
5734:                    byteBase.setCLong(NativeBridge.is64 ? 72 : 40, val);
5735:                }
5736:
5737:                public final long get_event_mask() {
5738:                    return byteBase.getCLong(NativeBridge.is64 ? 72 : 40);
5739:                }
5740:
5741:                public final void set_do_not_propagate_mask(long val) {
5742:                    byteBase.setCLong(NativeBridge.is64 ? 80 : 44, val);
5743:                }
5744:
5745:                public final long get_do_not_propagate_mask() {
5746:                    return byteBase.getCLong(NativeBridge.is64 ? 80 : 44);
5747:                }
5748:
5749:                public final void set_override_redirect(int val) {
5750:                    byteBase.setInt32(NativeBridge.is64 ? 88 : 48, val);
5751:                }
5752:
5753:                public final int get_override_redirect() {
5754:                    return byteBase.getInt32(NativeBridge.is64 ? 88 : 48);
5755:                }
5756:
5757:                public final void set_colormap(long val) {
5758:                    byteBase.setCLong(NativeBridge.is64 ? 96 : 52, val);
5759:                }
5760:
5761:                public final long get_colormap() {
5762:                    return byteBase.getCLong(NativeBridge.is64 ? 96 : 52);
5763:                }
5764:
5765:                public final void set_cursor(long val) {
5766:                    byteBase.setCLong(NativeBridge.is64 ? 104 : 56, val);
5767:                }
5768:
5769:                public final long get_cursor() {
5770:                    return byteBase.getCLong(NativeBridge.is64 ? 104 : 56);
5771:                }
5772:
5773:                public int size() {
5774:                    return sizeof;
5775:                }
5776:            }
5777:
5778:            public final XSetWindowAttributes createXSetWindowAttributes(
5779:                    boolean direct) {
5780:                return new XSetWindowAttributes(direct);
5781:            }
5782:
5783:            public final XSetWindowAttributes createXSetWindowAttributes(
5784:                    VoidPointer base) {
5785:                return new XSetWindowAttributes(base);
5786:            }
5787:
5788:            public final XSetWindowAttributes createXSetWindowAttributes(
5789:                    long addr) {
5790:                return new XSetWindowAttributes(addr);
5791:            }
5792:
5793:            public final native long XDisplayString(long param_0);
5794:
5795:            public final native int XSetFillRule(long param_0, long param_1,
5796:                    int param_2);
5797:
5798:            public final int XInitImage(X11.XImage param_0) {
5799:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
5800:                int tmp_ret = XInitImage(tmp_0);
5801:                if (param_0 != null) {
5802:                    param_0.unlock();
5803:                }
5804:                return tmp_ret;
5805:            }
5806:
5807:            public final native int XInitImage(long param_0);
5808:
5809:            public final int XSetDashes(long param_0, long param_1,
5810:                    int param_2, String param_3, int param_4) {
5811:                Int8Pointer _param_3 = null == param_3 ? null : nb
5812:                        .createInt8Pointer(param_3, false);
5813:                long tmp_0 = _param_3 == null ? 0 : _param_3.longLockPointer();
5814:                int tmp_ret = XSetDashes(param_0, param_1, param_2, tmp_0,
5815:                        param_4);
5816:                if (_param_3 != null) {
5817:                    _param_3.unlock();
5818:                    _param_3.free();
5819:                }
5820:                return tmp_ret;
5821:            }
5822:
5823:            public final int XSetDashes(long param_0, long param_1,
5824:                    int param_2, Int8Pointer param_3, int param_4) {
5825:                long tmp_0 = param_3 == null ? 0 : param_3.longLockPointer();
5826:                int tmp_ret = XSetDashes(param_0, param_1, param_2, tmp_0,
5827:                        param_4);
5828:                if (param_3 != null) {
5829:                    param_3.unlock();
5830:                }
5831:                return tmp_ret;
5832:            }
5833:
5834:            public final native int XSetDashes(long param_0, long param_1,
5835:                    int param_2, long param_3, int param_4);
5836:
5837:            public final int XSetWMHints(long param_0, long param_1,
5838:                    X11.XWMHints param_2) {
5839:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
5840:                int tmp_ret = XSetWMHints(param_0, param_1, tmp_0);
5841:                if (param_2 != null) {
5842:                    param_2.unlock();
5843:                }
5844:                return tmp_ret;
5845:            }
5846:
5847:            public final native int XSetWMHints(long param_0, long param_1,
5848:                    long param_2);
5849:
5850:            public final native int XPending(long param_0);
5851:
5852:            public final long XVisualIDFromVisual(X11.Visual param_0) {
5853:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
5854:                long tmp_ret = XVisualIDFromVisual(tmp_0);
5855:                if (param_0 != null) {
5856:                    param_0.unlock();
5857:                }
5858:                return tmp_ret;
5859:            }
5860:
5861:            public final native long XVisualIDFromVisual(long param_0);
5862:
5863:            public final int XSendEvent(long param_0, long param_1,
5864:                    int param_2, long param_3, X11.XEvent param_4) {
5865:                long tmp_0 = param_4 == null ? 0 : param_4.longLockPointer();
5866:                int tmp_ret = XSendEvent(param_0, param_1, param_2, param_3,
5867:                        tmp_0);
5868:                if (param_4 != null) {
5869:                    param_4.unlock();
5870:                }
5871:                return tmp_ret;
5872:            }
5873:
5874:            public final native int XSendEvent(long param_0, long param_1,
5875:                    int param_2, long param_3, long param_4);
5876:
5877:            public final native int XDrawLine(long param_0, long param_1,
5878:                    long param_2, int param_3, int param_4, int param_5,
5879:                    int param_6);
5880:
5881:            public final native long XCreatePixmap(long param_0, long param_1,
5882:                    int param_2, int param_3, int param_4);
5883:
5884:            public final native int XDefineCursor(long param_0, long param_1,
5885:                    long param_2);
5886:
5887:            public final int XDrawLines(long param_0, long param_1,
5888:                    long param_2, X11.XPoint param_3, int param_4, int param_5) {
5889:                long tmp_0 = param_3 == null ? 0 : param_3.longLockPointer();
5890:                int tmp_ret = XDrawLines(param_0, param_1, param_2, tmp_0,
5891:                        param_4, param_5);
5892:                if (param_3 != null) {
5893:                    param_3.unlock();
5894:                }
5895:                return tmp_ret;
5896:            }
5897:
5898:            public final native int XDrawLines(long param_0, long param_1,
5899:                    long param_2, long param_3, int param_4, int param_5);
5900:
5901:            public final void XSetWMNormalHints(long param_0, long param_1,
5902:                    X11.XSizeHints param_2) {
5903:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
5904:                XSetWMNormalHints(param_0, param_1, tmp_0);
5905:                if (param_2 != null) {
5906:                    param_2.unlock();
5907:                }
5908:            }
5909:
5910:            public final native void XSetWMNormalHints(long param_0,
5911:                    long param_1, long param_2);
5912:
5913:            public final int XTranslateCoordinates(long param_0, long param_1,
5914:                    long param_2, int param_3, int param_4,
5915:                    Int32Pointer param_5, Int32Pointer param_6,
5916:                    CLongPointer param_7) {
5917:                long tmp_0 = param_5 == null ? 0 : param_5.longLockPointer();
5918:                long tmp_1 = param_6 == null ? 0 : param_6.longLockPointer();
5919:                long tmp_2 = param_7 == null ? 0 : param_7.longLockPointer();
5920:                int tmp_ret = XTranslateCoordinates(param_0, param_1, param_2,
5921:                        param_3, param_4, tmp_0, tmp_1, tmp_2);
5922:                if (param_5 != null) {
5923:                    param_5.unlock();
5924:                }
5925:                if (param_6 != null) {
5926:                    param_6.unlock();
5927:                }
5928:                if (param_7 != null) {
5929:                    param_7.unlock();
5930:                }
5931:                return tmp_ret;
5932:            }
5933:
5934:            public final native int XTranslateCoordinates(long param_0,
5935:                    long param_1, long param_2, int param_3, int param_4,
5936:                    long param_5, long param_6, long param_7);
5937:
5938:            public final int XSetStandardProperties(long param_0, long param_1,
5939:                    String param_2, String param_3, long param_4,
5940:                    PointerPointer param_5, int param_6, X11.XSizeHints param_7) {
5941:                Int8Pointer _param_2 = null == param_2 ? null : nb
5942:                        .createInt8Pointer(param_2, false);
5943:                long tmp_0 = _param_2 == null ? 0 : _param_2.longLockPointer();
5944:                Int8Pointer _param_3 = null == param_3 ? null : nb
5945:                        .createInt8Pointer(param_3, false);
5946:                long tmp_1 = _param_3 == null ? 0 : _param_3.longLockPointer();
5947:                long tmp_2 = param_5 == null ? 0 : param_5.longLockPointer();
5948:                long tmp_3 = param_7 == null ? 0 : param_7.longLockPointer();
5949:                int tmp_ret = XSetStandardProperties(param_0, param_1, tmp_0,
5950:                        tmp_1, param_4, tmp_2, param_6, tmp_3);
5951:                if (_param_2 != null) {
5952:                    _param_2.unlock();
5953:                    _param_2.free();
5954:                }
5955:                if (_param_3 != null) {
5956:                    _param_3.unlock();
5957:                    _param_3.free();
5958:                }
5959:                if (param_5 != null) {
5960:                    param_5.unlock();
5961:                }
5962:                if (param_7 != null) {
5963:                    param_7.unlock();
5964:                }
5965:                return tmp_ret;
5966:            }
5967:
5968:            public final int XSetStandardProperties(long param_0, long param_1,
5969:                    Int8Pointer param_2, Int8Pointer param_3, long param_4,
5970:                    PointerPointer param_5, int param_6, X11.XSizeHints param_7) {
5971:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
5972:                long tmp_1 = param_3 == null ? 0 : param_3.longLockPointer();
5973:                long tmp_2 = param_5 == null ? 0 : param_5.longLockPointer();
5974:                long tmp_3 = param_7 == null ? 0 : param_7.longLockPointer();
5975:                int tmp_ret = XSetStandardProperties(param_0, param_1, tmp_0,
5976:                        tmp_1, param_4, tmp_2, param_6, tmp_3);
5977:                if (param_2 != null) {
5978:                    param_2.unlock();
5979:                }
5980:                if (param_3 != null) {
5981:                    param_3.unlock();
5982:                }
5983:                if (param_5 != null) {
5984:                    param_5.unlock();
5985:                }
5986:                if (param_7 != null) {
5987:                    param_7.unlock();
5988:                }
5989:                return tmp_ret;
5990:            }
5991:
5992:            public final native int XSetStandardProperties(long param_0,
5993:                    long param_1, long param_2, long param_3, long param_4,
5994:                    long param_5, int param_6, long param_7);
5995:
5996:            public final void Xutf8SetWMProperties(long param_0, long param_1,
5997:                    String param_2, String param_3, PointerPointer param_4,
5998:                    int param_5, X11.XSizeHints param_6, X11.XWMHints param_7,
5999:                    PointerPointer param_8) {
6000:                Int8Pointer _param_2 = null == param_2 ? null : nb
6001:                        .createInt8Pointer(param_2, false);
6002:                long tmp_0 = _param_2 == null ? 0 : _param_2.longLockPointer();
6003:                Int8Pointer _param_3 = null == param_3 ? null : nb
6004:                        .createInt8Pointer(param_3, false);
6005:                long tmp_1 = _param_3 == null ? 0 : _param_3.longLockPointer();
6006:                long tmp_2 = param_4 == null ? 0 : param_4.longLockPointer();
6007:                long tmp_3 = param_6 == null ? 0 : param_6.longLockPointer();
6008:                long tmp_4 = param_7 == null ? 0 : param_7.longLockPointer();
6009:                long tmp_5 = param_8 == null ? 0 : param_8.longLockPointer();
6010:                Xutf8SetWMProperties(param_0, param_1, tmp_0, tmp_1, tmp_2,
6011:                        param_5, tmp_3, tmp_4, tmp_5);
6012:                if (_param_2 != null) {
6013:                    _param_2.unlock();
6014:                    _param_2.free();
6015:                }
6016:                if (_param_3 != null) {
6017:                    _param_3.unlock();
6018:                    _param_3.free();
6019:                }
6020:                if (param_4 != null) {
6021:                    param_4.unlock();
6022:                }
6023:                if (param_6 != null) {
6024:                    param_6.unlock();
6025:                }
6026:                if (param_7 != null) {
6027:                    param_7.unlock();
6028:                }
6029:                if (param_8 != null) {
6030:                    param_8.unlock();
6031:                }
6032:            }
6033:
6034:            public final void Xutf8SetWMProperties(long param_0, long param_1,
6035:                    Int8Pointer param_2, Int8Pointer param_3,
6036:                    PointerPointer param_4, int param_5,
6037:                    X11.XSizeHints param_6, X11.XWMHints param_7,
6038:                    PointerPointer param_8) {
6039:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
6040:                long tmp_1 = param_3 == null ? 0 : param_3.longLockPointer();
6041:                long tmp_2 = param_4 == null ? 0 : param_4.longLockPointer();
6042:                long tmp_3 = param_6 == null ? 0 : param_6.longLockPointer();
6043:                long tmp_4 = param_7 == null ? 0 : param_7.longLockPointer();
6044:                long tmp_5 = param_8 == null ? 0 : param_8.longLockPointer();
6045:                Xutf8SetWMProperties(param_0, param_1, tmp_0, tmp_1, tmp_2,
6046:                        param_5, tmp_3, tmp_4, tmp_5);
6047:                if (param_2 != null) {
6048:                    param_2.unlock();
6049:                }
6050:                if (param_3 != null) {
6051:                    param_3.unlock();
6052:                }
6053:                if (param_4 != null) {
6054:                    param_4.unlock();
6055:                }
6056:                if (param_6 != null) {
6057:                    param_6.unlock();
6058:                }
6059:                if (param_7 != null) {
6060:                    param_7.unlock();
6061:                }
6062:                if (param_8 != null) {
6063:                    param_8.unlock();
6064:                }
6065:            }
6066:
6067:            public final native void Xutf8SetWMProperties(long param_0,
6068:                    long param_1, long param_2, long param_3, long param_4,
6069:                    int param_5, long param_6, long param_7, long param_8);
6070:
6071:            public final native long XDefaultColormap(long param_0, int param_1);
6072:
6073:            public final native long XAllocSizeHints();
6074:
6075:            public final native int XFlush(long param_0);
6076:
6077:            public final int XGetWindowAttributes(long param_0, long param_1,
6078:                    XWindowAttributes param_2) {
6079:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
6080:                int tmp_ret = XGetWindowAttributes(param_0, param_1, tmp_0);
6081:                if (param_2 != null) {
6082:                    param_2.unlock();
6083:                }
6084:                return tmp_ret;
6085:            }
6086:
6087:            public final native int XGetWindowAttributes(long param_0,
6088:                    long param_1, long param_2);
6089:
6090:            public static class XWindowAttributes extends CommonStructWrapper {
6091:
6092:                public static final int sizeof = NativeBridge.is64 ? 136 : 92;
6093:
6094:                XWindowAttributes(boolean direct) {
6095:                    super (sizeof, direct);
6096:                }
6097:
6098:                XWindowAttributes(VoidPointer base) {
6099:                    super (base);
6100:                }
6101:
6102:                XWindowAttributes(long addr) {
6103:                    super (addr);
6104:                }
6105:
6106:                public final void set_x(int val) {
6107:                    byteBase.setInt32(0, val);
6108:                }
6109:
6110:                public final int get_x() {
6111:                    return byteBase.getInt32(0);
6112:                }
6113:
6114:                public final void set_y(int val) {
6115:                    byteBase.setInt32(4, val);
6116:                }
6117:
6118:                public final int get_y() {
6119:                    return byteBase.getInt32(4);
6120:                }
6121:
6122:                public final void set_width(int val) {
6123:                    byteBase.setInt32(8, val);
6124:                }
6125:
6126:                public final int get_width() {
6127:                    return byteBase.getInt32(8);
6128:                }
6129:
6130:                public final void set_height(int val) {
6131:                    byteBase.setInt32(12, val);
6132:                }
6133:
6134:                public final int get_height() {
6135:                    return byteBase.getInt32(12);
6136:                }
6137:
6138:                public final void set_border_width(int val) {
6139:                    byteBase.setInt32(16, val);
6140:                }
6141:
6142:                public final int get_border_width() {
6143:                    return byteBase.getInt32(16);
6144:                }
6145:
6146:                public final void set_depth(int val) {
6147:                    byteBase.setInt32(20, val);
6148:                }
6149:
6150:                public final int get_depth() {
6151:                    return byteBase.getInt32(20);
6152:                }
6153:
6154:                public final X11.Visual get_visual() {
6155:                    return X11.instance.createVisual(byteBase.getAddress(24));
6156:                }
6157:
6158:                public final void set_root(long val) {
6159:                    byteBase.setCLong(NativeBridge.is64 ? 32 : 28, val);
6160:                }
6161:
6162:                public final long get_root() {
6163:                    return byteBase.getCLong(NativeBridge.is64 ? 32 : 28);
6164:                }
6165:
6166:                public final void set_class(int val) {
6167:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 32, val);
6168:                }
6169:
6170:                public final int get_class() {
6171:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 32);
6172:                }
6173:
6174:                public final void set_bit_gravity(int val) {
6175:                    byteBase.setInt32(NativeBridge.is64 ? 44 : 36, val);
6176:                }
6177:
6178:                public final int get_bit_gravity() {
6179:                    return byteBase.getInt32(NativeBridge.is64 ? 44 : 36);
6180:                }
6181:
6182:                public final void set_win_gravity(int val) {
6183:                    byteBase.setInt32(NativeBridge.is64 ? 48 : 40, val);
6184:                }
6185:
6186:                public final int get_win_gravity() {
6187:                    return byteBase.getInt32(NativeBridge.is64 ? 48 : 40);
6188:                }
6189:
6190:                public final void set_backing_store(int val) {
6191:                    byteBase.setInt32(NativeBridge.is64 ? 52 : 44, val);
6192:                }
6193:
6194:                public final int get_backing_store() {
6195:                    return byteBase.getInt32(NativeBridge.is64 ? 52 : 44);
6196:                }
6197:
6198:                public final void set_backing_planes(long val) {
6199:                    byteBase.setCLong(NativeBridge.is64 ? 56 : 48, val);
6200:                }
6201:
6202:                public final long get_backing_planes() {
6203:                    return byteBase.getCLong(NativeBridge.is64 ? 56 : 48);
6204:                }
6205:
6206:                public final void set_backing_pixel(long val) {
6207:                    byteBase.setCLong(NativeBridge.is64 ? 64 : 52, val);
6208:                }
6209:
6210:                public final long get_backing_pixel() {
6211:                    return byteBase.getCLong(NativeBridge.is64 ? 64 : 52);
6212:                }
6213:
6214:                public final void set_save_under(int val) {
6215:                    byteBase.setInt32(NativeBridge.is64 ? 72 : 56, val);
6216:                }
6217:
6218:                public final int get_save_under() {
6219:                    return byteBase.getInt32(NativeBridge.is64 ? 72 : 56);
6220:                }
6221:
6222:                public final void set_colormap(long val) {
6223:                    byteBase.setCLong(NativeBridge.is64 ? 80 : 60, val);
6224:                }
6225:
6226:                public final long get_colormap() {
6227:                    return byteBase.getCLong(NativeBridge.is64 ? 80 : 60);
6228:                }
6229:
6230:                public final void set_map_installed(int val) {
6231:                    byteBase.setInt32(NativeBridge.is64 ? 88 : 64, val);
6232:                }
6233:
6234:                public final int get_map_installed() {
6235:                    return byteBase.getInt32(NativeBridge.is64 ? 88 : 64);
6236:                }
6237:
6238:                public final void set_map_state(int val) {
6239:                    byteBase.setInt32(NativeBridge.is64 ? 92 : 68, val);
6240:                }
6241:
6242:                public final int get_map_state() {
6243:                    return byteBase.getInt32(NativeBridge.is64 ? 92 : 68);
6244:                }
6245:
6246:                public final void set_all_event_masks(long val) {
6247:                    byteBase.setCLong(NativeBridge.is64 ? 96 : 72, val);
6248:                }
6249:
6250:                public final long get_all_event_masks() {
6251:                    return byteBase.getCLong(NativeBridge.is64 ? 96 : 72);
6252:                }
6253:
6254:                public final void set_your_event_mask(long val) {
6255:                    byteBase.setCLong(NativeBridge.is64 ? 104 : 76, val);
6256:                }
6257:
6258:                public final long get_your_event_mask() {
6259:                    return byteBase.getCLong(NativeBridge.is64 ? 104 : 76);
6260:                }
6261:
6262:                public final void set_do_not_propagate_mask(long val) {
6263:                    byteBase.setCLong(NativeBridge.is64 ? 112 : 80, val);
6264:                }
6265:
6266:                public final long get_do_not_propagate_mask() {
6267:                    return byteBase.getCLong(NativeBridge.is64 ? 112 : 80);
6268:                }
6269:
6270:                public final void set_override_redirect(int val) {
6271:                    byteBase.setInt32(NativeBridge.is64 ? 120 : 84, val);
6272:                }
6273:
6274:                public final int get_override_redirect() {
6275:                    return byteBase.getInt32(NativeBridge.is64 ? 120 : 84);
6276:                }
6277:
6278:                public final Screen get_screen() {
6279:                    return instance.createScreen(byteBase
6280:                            .getAddress(NativeBridge.is64 ? 128 : 88));
6281:                }
6282:
6283:                public int size() {
6284:                    return sizeof;
6285:                }
6286:            }
6287:
6288:            public final XWindowAttributes createXWindowAttributes(
6289:                    boolean direct) {
6290:                return new XWindowAttributes(direct);
6291:            }
6292:
6293:            public final XWindowAttributes createXWindowAttributes(
6294:                    VoidPointer base) {
6295:                return new XWindowAttributes(base);
6296:            }
6297:
6298:            public final XWindowAttributes createXWindowAttributes(long addr) {
6299:                return new XWindowAttributes(addr);
6300:            }
6301:
6302:            public static class Screen extends CommonStructWrapper {
6303:
6304:                public static final int sizeof = NativeBridge.is64 ? 128 : 80;
6305:
6306:                Screen(boolean direct) {
6307:                    super (sizeof, direct);
6308:                }
6309:
6310:                Screen(VoidPointer base) {
6311:                    super (base);
6312:                }
6313:
6314:                Screen(long addr) {
6315:                    super (addr);
6316:                }
6317:
6318:                public final X11.XExtData get_ext_data() {
6319:                    return X11.instance.createXExtData(byteBase.getAddress(0));
6320:                }
6321:
6322:                public final void set_display(long val) {
6323:                    byteBase.setAddress(NativeBridge.is64 ? 8 : 4, val);
6324:                }
6325:
6326:                public final long get_display() {
6327:                    return byteBase.getAddress(NativeBridge.is64 ? 8 : 4);
6328:                }
6329:
6330:                public final void set_root(long val) {
6331:                    byteBase.setCLong(NativeBridge.is64 ? 16 : 8, val);
6332:                }
6333:
6334:                public final long get_root() {
6335:                    return byteBase.getCLong(NativeBridge.is64 ? 16 : 8);
6336:                }
6337:
6338:                public final void set_width(int val) {
6339:                    byteBase.setInt32(NativeBridge.is64 ? 24 : 12, val);
6340:                }
6341:
6342:                public final int get_width() {
6343:                    return byteBase.getInt32(NativeBridge.is64 ? 24 : 12);
6344:                }
6345:
6346:                public final void set_height(int val) {
6347:                    byteBase.setInt32(NativeBridge.is64 ? 28 : 16, val);
6348:                }
6349:
6350:                public final int get_height() {
6351:                    return byteBase.getInt32(NativeBridge.is64 ? 28 : 16);
6352:                }
6353:
6354:                public final void set_mwidth(int val) {
6355:                    byteBase.setInt32(NativeBridge.is64 ? 32 : 20, val);
6356:                }
6357:
6358:                public final int get_mwidth() {
6359:                    return byteBase.getInt32(NativeBridge.is64 ? 32 : 20);
6360:                }
6361:
6362:                public final void set_mheight(int val) {
6363:                    byteBase.setInt32(NativeBridge.is64 ? 36 : 24, val);
6364:                }
6365:
6366:                public final int get_mheight() {
6367:                    return byteBase.getInt32(NativeBridge.is64 ? 36 : 24);
6368:                }
6369:
6370:                public final void set_ndepths(int val) {
6371:                    byteBase.setInt32(NativeBridge.is64 ? 40 : 28, val);
6372:                }
6373:
6374:                public final int get_ndepths() {
6375:                    return byteBase.getInt32(NativeBridge.is64 ? 40 : 28);
6376:                }
6377:
6378:                public final Depth get_depths() {
6379:                    return instance.createDepth(byteBase
6380:                            .getAddress(NativeBridge.is64 ? 48 : 32));
6381:                }
6382:
6383:                public final void set_root_depth(int val) {
6384:                    byteBase.setInt32(NativeBridge.is64 ? 56 : 36, val);
6385:                }
6386:
6387:                public final int get_root_depth() {
6388:                    return byteBase.getInt32(NativeBridge.is64 ? 56 : 36);
6389:                }
6390:
6391:                public final X11.Visual get_root_visual() {
6392:                    return X11.instance.createVisual(byteBase
6393:                            .getAddress(NativeBridge.is64 ? 64 : 40));
6394:                }
6395:
6396:                public final void set_default_gc(long val) {
6397:                    byteBase.setAddress(NativeBridge.is64 ? 72 : 44, val);
6398:                }
6399:
6400:                public final long get_default_gc() {
6401:                    return byteBase.getAddress(NativeBridge.is64 ? 72 : 44);
6402:                }
6403:
6404:                public final void set_cmap(long val) {
6405:                    byteBase.setCLong(NativeBridge.is64 ? 80 : 48, val);
6406:                }
6407:
6408:                public final long get_cmap() {
6409:                    return byteBase.getCLong(NativeBridge.is64 ? 80 : 48);
6410:                }
6411:
6412:                public final void set_white_pixel(long val) {
6413:                    byteBase.setCLong(NativeBridge.is64 ? 88 : 52, val);
6414:                }
6415:
6416:                public final long get_white_pixel() {
6417:                    return byteBase.getCLong(NativeBridge.is64 ? 88 : 52);
6418:                }
6419:
6420:                public final void set_black_pixel(long val) {
6421:                    byteBase.setCLong(NativeBridge.is64 ? 96 : 56, val);
6422:                }
6423:
6424:                public final long get_black_pixel() {
6425:                    return byteBase.getCLong(NativeBridge.is64 ? 96 : 56);
6426:                }
6427:
6428:                public final void set_max_maps(int val) {
6429:                    byteBase.setInt32(NativeBridge.is64 ? 104 : 60, val);
6430:                }
6431:
6432:                public final int get_max_maps() {
6433:                    return byteBase.getInt32(NativeBridge.is64 ? 104 : 60);
6434:                }
6435:
6436:                public final void set_min_maps(int val) {
6437:                    byteBase.setInt32(NativeBridge.is64 ? 108 : 64, val);
6438:                }
6439:
6440:                public final int get_min_maps() {
6441:                    return byteBase.getInt32(NativeBridge.is64 ? 108 : 64);
6442:                }
6443:
6444:                public final void set_backing_store(int val) {
6445:                    byteBase.setInt32(NativeBridge.is64 ? 112 : 68, val);
6446:                }
6447:
6448:                public final int get_backing_store() {
6449:                    return byteBase.getInt32(NativeBridge.is64 ? 112 : 68);
6450:                }
6451:
6452:                public final void set_save_unders(int val) {
6453:                    byteBase.setInt32(NativeBridge.is64 ? 116 : 72, val);
6454:                }
6455:
6456:                public final int get_save_unders() {
6457:                    return byteBase.getInt32(NativeBridge.is64 ? 116 : 72);
6458:                }
6459:
6460:                public final void set_root_input_mask(long val) {
6461:                    byteBase.setCLong(NativeBridge.is64 ? 120 : 76, val);
6462:                }
6463:
6464:                public final long get_root_input_mask() {
6465:                    return byteBase.getCLong(NativeBridge.is64 ? 120 : 76);
6466:                }
6467:
6468:                public int size() {
6469:                    return sizeof;
6470:                }
6471:            }
6472:
6473:            public final Screen createScreen(boolean direct) {
6474:                return new Screen(direct);
6475:            }
6476:
6477:            public final Screen createScreen(VoidPointer base) {
6478:                return new Screen(base);
6479:            }
6480:
6481:            public final Screen createScreen(long addr) {
6482:                return new Screen(addr);
6483:            }
6484:
6485:            public static class Depth extends CommonStructWrapper {
6486:
6487:                public static final int sizeof = NativeBridge.is64 ? 16 : 12;
6488:
6489:                Depth(boolean direct) {
6490:                    super (sizeof, direct);
6491:                }
6492:
6493:                Depth(VoidPointer base) {
6494:                    super (base);
6495:                }
6496:
6497:                Depth(long addr) {
6498:                    super (addr);
6499:                }
6500:
6501:                public final void set_depth(int val) {
6502:                    byteBase.setInt32(0, val);
6503:                }
6504:
6505:                public final int get_depth() {
6506:                    return byteBase.getInt32(0);
6507:                }
6508:
6509:                public final void set_nvisuals(int val) {
6510:                    byteBase.setInt32(4, val);
6511:                }
6512:
6513:                public final int get_nvisuals() {
6514:                    return byteBase.getInt32(4);
6515:                }
6516:
6517:                public final X11.Visual get_visuals() {
6518:                    return X11.instance.createVisual(byteBase.getAddress(8));
6519:                }
6520:
6521:                public int size() {
6522:                    return sizeof;
6523:                }
6524:            }
6525:
6526:            public final Depth createDepth(boolean direct) {
6527:                return new Depth(direct);
6528:            }
6529:
6530:            public final Depth createDepth(VoidPointer base) {
6531:                return new Depth(base);
6532:            }
6533:
6534:            public final Depth createDepth(long addr) {
6535:                return new Depth(addr);
6536:            }
6537:
6538:            public final native int XFreePixmap(long param_0, long param_1);
6539:
6540:            public final int XGetGeometry(long param_0, long param_1,
6541:                    CLongPointer param_2, Int32Pointer param_3,
6542:                    Int32Pointer param_4, Int32Pointer param_5,
6543:                    Int32Pointer param_6, Int32Pointer param_7,
6544:                    Int32Pointer param_8) {
6545:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
6546:                long tmp_1 = param_3 == null ? 0 : param_3.longLockPointer();
6547:                long tmp_2 = param_4 == null ? 0 : param_4.longLockPointer();
6548:                long tmp_3 = param_5 == null ? 0 : param_5.longLockPointer();
6549:                long tmp_4 = param_6 == null ? 0 : param_6.longLockPointer();
6550:                long tmp_5 = param_7 == null ? 0 : param_7.longLockPointer();
6551:                long tmp_6 = param_8 == null ? 0 : param_8.longLockPointer();
6552:                int tmp_ret = XGetGeometry(param_0, param_1, tmp_0, tmp_1,
6553:                        tmp_2, tmp_3, tmp_4, tmp_5, tmp_6);
6554:                if (param_2 != null) {
6555:                    param_2.unlock();
6556:                }
6557:                if (param_3 != null) {
6558:                    param_3.unlock();
6559:                }
6560:                if (param_4 != null) {
6561:                    param_4.unlock();
6562:                }
6563:                if (param_5 != null) {
6564:                    param_5.unlock();
6565:                }
6566:                if (param_6 != null) {
6567:                    param_6.unlock();
6568:                }
6569:                if (param_7 != null) {
6570:                    param_7.unlock();
6571:                }
6572:                if (param_8 != null) {
6573:                    param_8.unlock();
6574:                }
6575:                return tmp_ret;
6576:            }
6577:
6578:            public final native int XGetGeometry(long param_0, long param_1,
6579:                    long param_2, long param_3, long param_4, long param_5,
6580:                    long param_6, long param_7, long param_8);
6581:
6582:            public final int XQueryColors(long param_0, long param_1,
6583:                    X11.XColor param_2, int param_3) {
6584:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
6585:                int tmp_ret = XQueryColors(param_0, param_1, tmp_0, param_3);
6586:                if (param_2 != null) {
6587:                    param_2.unlock();
6588:                }
6589:                return tmp_ret;
6590:            }
6591:
6592:            public final native int XQueryColors(long param_0, long param_1,
6593:                    long param_2, int param_3);
6594:
6595:            public final int XQueryBestCursor(long param_0, long param_1,
6596:                    int param_2, int param_3, Int32Pointer param_4,
6597:                    Int32Pointer param_5) {
6598:                long tmp_0 = param_4 == null ? 0 : param_4.longLockPointer();
6599:                long tmp_1 = param_5 == null ? 0 : param_5.longLockPointer();
6600:                int tmp_ret = XQueryBestCursor(param_0, param_1, param_2,
6601:                        param_3, tmp_0, tmp_1);
6602:                if (param_4 != null) {
6603:                    param_4.unlock();
6604:                }
6605:                if (param_5 != null) {
6606:                    param_5.unlock();
6607:                }
6608:                return tmp_ret;
6609:            }
6610:
6611:            public final native int XQueryBestCursor(long param_0,
6612:                    long param_1, int param_2, int param_3, long param_4,
6613:                    long param_5);
6614:
6615:            public final int XNextEvent(long param_0, X11.XEvent param_1) {
6616:                long tmp_0 = param_1 == null ? 0 : param_1.longLockPointer();
6617:                int tmp_ret = XNextEvent(param_0, tmp_0);
6618:                if (param_1 != null) {
6619:                    param_1.unlock();
6620:                }
6621:                return tmp_ret;
6622:            }
6623:
6624:            public final native int XNextEvent(long param_0, long param_1);
6625:
6626:            public final native long XDefaultVisual(long param_0, int param_1);
6627:
6628:            public final long XCreateWindow(long param_0, long param_1,
6629:                    int param_2, int param_3, int param_4, int param_5,
6630:                    int param_6, int param_7, int param_8, X11.Visual param_9,
6631:                    long param_10, X11.XSetWindowAttributes param_11) {
6632:                long tmp_0 = param_9 == null ? 0 : param_9.longLockPointer();
6633:                long tmp_1 = param_11 == null ? 0 : param_11.longLockPointer();
6634:                long tmp_ret = XCreateWindow(param_0, param_1, param_2,
6635:                        param_3, param_4, param_5, param_6, param_7, param_8,
6636:                        tmp_0, param_10, tmp_1);
6637:                if (param_9 != null) {
6638:                    param_9.unlock();
6639:                }
6640:                if (param_11 != null) {
6641:                    param_11.unlock();
6642:                }
6643:                return tmp_ret;
6644:            }
6645:
6646:            public final native long XCreateWindow(long param_0, long param_1,
6647:                    int param_2, int param_3, int param_4, int param_5,
6648:                    int param_6, int param_7, int param_8, long param_9,
6649:                    long param_10, long param_11);
6650:
6651:            public final native int XFreeGC(long param_0, long param_1);
6652:
6653:            public final native int XBitmapPad(long param_0);
6654:
6655:            public final long XCreateColormap(long param_0, long param_1,
6656:                    X11.Visual param_2, int param_3) {
6657:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
6658:                long tmp_ret = XCreateColormap(param_0, param_1, tmp_0, param_3);
6659:                if (param_2 != null) {
6660:                    param_2.unlock();
6661:                }
6662:                return tmp_ret;
6663:            }
6664:
6665:            public final native long XCreateColormap(long param_0,
6666:                    long param_1, long param_2, int param_3);
6667:
6668:            public final int XGetPointerMapping(long param_0,
6669:                    Int8Pointer param_1, int param_2) {
6670:                long tmp_0 = param_1 == null ? 0 : param_1.longLockPointer();
6671:                int tmp_ret = XGetPointerMapping(param_0, tmp_0, param_2);
6672:                if (param_1 != null) {
6673:                    param_1.unlock();
6674:                }
6675:                return tmp_ret;
6676:            }
6677:
6678:            public final native int XGetPointerMapping(long param_0,
6679:                    long param_1, int param_2);
6680:
6681:            public final native long XSetErrorHandler(long param_0);
6682:
6683:            public final native int XSetTransientForHint(long param_0,
6684:                    long param_1, long param_2);
6685:
6686:            public final native int XFreeCursor(long param_0, long param_1);
6687:
6688:            public final native int XFillRectangle(long param_0, long param_1,
6689:                    long param_2, int param_3, int param_4, int param_5,
6690:                    int param_6);
6691:
6692:            public final int XSetWMProtocols(long param_0, long param_1,
6693:                    CLongPointer param_2, int param_3) {
6694:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
6695:                int tmp_ret = XSetWMProtocols(param_0, param_1, tmp_0, param_3);
6696:                if (param_2 != null) {
6697:                    param_2.unlock();
6698:                }
6699:                return tmp_ret;
6700:            }
6701:
6702:            public final native int XSetWMProtocols(long param_0, long param_1,
6703:                    long param_2, int param_3);
6704:
6705:            public final native int XCloseDisplay(long param_0);
6706:
6707:            public final int XQueryTree(long param_0, long param_1,
6708:                    CLongPointer param_2, CLongPointer param_3,
6709:                    PointerPointer param_4, Int32Pointer param_5) {
6710:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
6711:                long tmp_1 = param_3 == null ? 0 : param_3.longLockPointer();
6712:                long tmp_2 = param_4 == null ? 0 : param_4.longLockPointer();
6713:                long tmp_3 = param_5 == null ? 0 : param_5.longLockPointer();
6714:                int tmp_ret = XQueryTree(param_0, param_1, tmp_0, tmp_1, tmp_2,
6715:                        tmp_3);
6716:                if (param_2 != null) {
6717:                    param_2.unlock();
6718:                }
6719:                if (param_3 != null) {
6720:                    param_3.unlock();
6721:                }
6722:                if (param_4 != null) {
6723:                    param_4.unlock();
6724:                }
6725:                if (param_5 != null) {
6726:                    param_5.unlock();
6727:                }
6728:                return tmp_ret;
6729:            }
6730:
6731:            public final native int XQueryTree(long param_0, long param_1,
6732:                    long param_2, long param_3, long param_4, long param_5);
6733:
6734:            public final int XGetInputFocus(long param_0, CLongPointer param_1,
6735:                    Int32Pointer param_2) {
6736:                long tmp_0 = param_1 == null ? 0 : param_1.longLockPointer();
6737:                long tmp_1 = param_2 == null ? 0 : param_2.longLockPointer();
6738:                int tmp_ret = XGetInputFocus(param_0, tmp_0, tmp_1);
6739:                if (param_1 != null) {
6740:                    param_1.unlock();
6741:                }
6742:                if (param_2 != null) {
6743:                    param_2.unlock();
6744:                }
6745:                return tmp_ret;
6746:            }
6747:
6748:            public final native int XGetInputFocus(long param_0, long param_1,
6749:                    long param_2);
6750:
6751:            public final long XInternAtom(long param_0, String param_1,
6752:                    int param_2) {
6753:                Int8Pointer _param_1 = null == param_1 ? null : nb
6754:                        .createInt8Pointer(param_1, false);
6755:                long tmp_0 = _param_1 == null ? 0 : _param_1.longLockPointer();
6756:                long tmp_ret = XInternAtom(param_0, tmp_0, param_2);
6757:                if (_param_1 != null) {
6758:                    _param_1.unlock();
6759:                    _param_1.free();
6760:                }
6761:                return tmp_ret;
6762:            }
6763:
6764:            public final long XInternAtom(long param_0, Int8Pointer param_1,
6765:                    int param_2) {
6766:                long tmp_0 = param_1 == null ? 0 : param_1.longLockPointer();
6767:                long tmp_ret = XInternAtom(param_0, tmp_0, param_2);
6768:                if (param_1 != null) {
6769:                    param_1.unlock();
6770:                }
6771:                return tmp_ret;
6772:            }
6773:
6774:            public final native long XInternAtom(long param_0, long param_1,
6775:                    int param_2);
6776:
6777:            public final native int XSetClipOrigin(long param_0, long param_1,
6778:                    int param_2, int param_3);
6779:
6780:            public final int XTestQueryExtension(long param_0,
6781:                    Int32Pointer param_1, Int32Pointer param_2,
6782:                    Int32Pointer param_3, Int32Pointer param_4) {
6783:                long tmp_0 = param_1 == null ? 0 : param_1.longLockPointer();
6784:                long tmp_1 = param_2 == null ? 0 : param_2.longLockPointer();
6785:                long tmp_2 = param_3 == null ? 0 : param_3.longLockPointer();
6786:                long tmp_3 = param_4 == null ? 0 : param_4.longLockPointer();
6787:                int tmp_ret = XTestQueryExtension(param_0, tmp_0, tmp_1, tmp_2,
6788:                        tmp_3);
6789:                if (param_1 != null) {
6790:                    param_1.unlock();
6791:                }
6792:                if (param_2 != null) {
6793:                    param_2.unlock();
6794:                }
6795:                if (param_3 != null) {
6796:                    param_3.unlock();
6797:                }
6798:                if (param_4 != null) {
6799:                    param_4.unlock();
6800:                }
6801:                return tmp_ret;
6802:            }
6803:
6804:            public final native int XTestQueryExtension(long param_0,
6805:                    long param_1, long param_2, long param_3, long param_4);
6806:
6807:            public final native long XCreateSimpleWindow(long param_0,
6808:                    long param_1, int param_2, int param_3, int param_4,
6809:                    int param_5, int param_6, long param_7, long param_8);
6810:
6811:            public final native int XUngrabServer(long param_0);
6812:
6813:            public final native int XFillArc(long param_0, long param_1,
6814:                    long param_2, int param_3, int param_4, int param_5,
6815:                    int param_6, int param_7, int param_8);
6816:
6817:            public final native long XScreenOfDisplay(long param_0, int param_1);
6818:
6819:            public final native int XSetClipMask(long param_0, long param_1,
6820:                    long param_2);
6821:
6822:            public final int XChangeGC(long param_0, long param_1,
6823:                    long param_2, X11.XGCValues param_3) {
6824:                long tmp_0 = param_3 == null ? 0 : param_3.longLockPointer();
6825:                int tmp_ret = XChangeGC(param_0, param_1, param_2, tmp_0);
6826:                if (param_3 != null) {
6827:                    param_3.unlock();
6828:                }
6829:                return tmp_ret;
6830:            }
6831:
6832:            public final native int XChangeGC(long param_0, long param_1,
6833:                    long param_2, long param_3);
6834:
6835:            public final long XCreateBitmapFromData(long param_0, long param_1,
6836:                    String param_2, int param_3, int param_4) {
6837:                Int8Pointer _param_2 = null == param_2 ? null : nb
6838:                        .createInt8Pointer(param_2, false);
6839:                long tmp_0 = _param_2 == null ? 0 : _param_2.longLockPointer();
6840:                long tmp_ret = XCreateBitmapFromData(param_0, param_1, tmp_0,
6841:                        param_3, param_4);
6842:                if (_param_2 != null) {
6843:                    _param_2.unlock();
6844:                    _param_2.free();
6845:                }
6846:                return tmp_ret;
6847:            }
6848:
6849:            public final long XCreateBitmapFromData(long param_0, long param_1,
6850:                    Int8Pointer param_2, int param_3, int param_4) {
6851:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
6852:                long tmp_ret = XCreateBitmapFromData(param_0, param_1, tmp_0,
6853:                        param_3, param_4);
6854:                if (param_2 != null) {
6855:                    param_2.unlock();
6856:                }
6857:                return tmp_ret;
6858:            }
6859:
6860:            public final native long XCreateBitmapFromData(long param_0,
6861:                    long param_1, long param_2, int param_3, int param_4);
6862:
6863:            public final native int XDeleteProperty(long param_0, long param_1,
6864:                    long param_2);
6865:
6866:            public final native long XGetWMHints(long param_0, long param_1);
6867:
6868:            public final native int XSetSelectionOwner(long param_0,
6869:                    long param_1, long param_2, long param_3);
6870:
6871:            public final int XDestroyImage(X11.XImage ximage) {
6872:                long tmp_0 = ximage == null ? 0 : ximage.longLockPointer();
6873:                int tmp_ret = XDestroyImage(tmp_0);
6874:                if (ximage != null) {
6875:                    ximage.unlock();
6876:                }
6877:                return tmp_ret;
6878:            }
6879:
6880:            public final native int XDestroyImage(long ximage);
6881:
6882:            public final native int XDrawArc(long param_0, long param_1,
6883:                    long param_2, int param_3, int param_4, int param_5,
6884:                    int param_6, int param_7, int param_8);
6885:
6886:            public final native int XGrabPointer(long param_0, long param_1,
6887:                    int param_2, int param_3, int param_4, int param_5,
6888:                    long param_6, long param_7, long param_8);
6889:
6890:            public final native int XDisplayHeight(long param_0, int param_1);
6891:
6892:            public final int XQueryColor(long param_0, long param_1,
6893:                    X11.XColor param_2) {
6894:                long tmp_0 = param_2 == null ? 0 : param_2.longLockPointer();
6895:                int tmp_ret = XQueryColor(param_0, param_1, tmp_0);
6896:                if (param_2 != null) {
6897:                    param_2.unlock();
6898:                }
6899:                return tmp_ret;
6900:            }
6901:
6902:            public final native int XQueryColor(long param_0, long param_1,
6903:                    long param_2);
6904:
6905:            public final native int XRaiseWindow(long param_0, long param_1);
6906:
6907:            public final native int XWithdrawWindow(long param_0, long param_1,
6908:                    int param_2);
6909:
6910:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.