Package org.apache.harmony.awt.nativebridge.linux

Examples of org.apache.harmony.awt.nativebridge.linux.X11$XVisualInfo


        private int[] getAlphaVisuals() {
            X11 x11 = X11.INSTANCE;
            Display dpy = x11.XOpenDisplay(null);
            if (dpy == null)
                return new int[0];
            XVisualInfo info = null;
            try {
                int screen = x11.XDefaultScreen(dpy);
                XVisualInfo template = new XVisualInfo();
                template.screen = screen;
                template.depth = 32;
                template.c_class = X11.TrueColor;
                NativeLong mask = new NativeLong(X11.VisualScreenMask
                                                 | X11.VisualDepthMask
View Full Code Here


            didCheck = true;
            X11 x11 = X11.INSTANCE;
            Display dpy = x11.XOpenDisplay(null);
            if (dpy == null)
                return alphaVisualIDs;
            XVisualInfo info = null;
            try {
                int screen = x11.XDefaultScreen(dpy);
                XVisualInfo template = new XVisualInfo();
                template.screen = screen;
                template.depth = 32;
                template.c_class = X11.TrueColor;
                NativeLong mask = new NativeLong(X11.VisualScreenMask
                                                 | X11.VisualDepthMask
View Full Code Here

            X11 x11 = X11.INSTANCE;
            Display dpy = x11.XOpenDisplay(null);
            if (dpy == null) {
        return alphaVisualIDs;
      }
            XVisualInfo info = null;
            try {
                int screen = x11.XDefaultScreen(dpy);
                XVisualInfo template = new XVisualInfo();
                template.screen = screen;
                template.depth = 32;
                template.c_class = X11.TrueColor;
                NativeLong mask = new NativeLong(X11.VisualScreenMask
                                                 | X11.VisualDepthMask
View Full Code Here

            didCheck = true;
            X11 x11 = X11.INSTANCE;
            Display dpy = x11.XOpenDisplay(null);
            if (dpy == null)
                return alphaVisualIDs;
            XVisualInfo info = null;
            try {
                int screen = x11.XDefaultScreen(dpy);
                XVisualInfo template = new XVisualInfo();
                template.screen = screen;
                template.depth = 32;
                template.c_class = X11.TrueColor;
                NativeLong mask = new NativeLong(X11.VisualScreenMask
                                                 | X11.VisualDepthMask
View Full Code Here

            didCheck = true;
            X11 x11 = X11.INSTANCE;
            Display dpy = x11.XOpenDisplay(null);
            if (dpy == null)
                return alphaVisualIDs;
            XVisualInfo info = null;
            try {
                int screen = x11.XDefaultScreen(dpy);
                XVisualInfo template = new XVisualInfo();
                template.screen = screen;
                template.depth = 32;
                template.c_class = X11.TrueColor;
                NativeLong mask = new NativeLong(X11.VisualScreenMask
                                                 | X11.VisualDepthMask
View Full Code Here

                // Get translated clip
                makeClip(dstX, dstY, width, height, clip);

                g2d.setXClip(clip, g2d.imageGC);
                X11 x11 = X11.getInstance();
                x11.XCopyArea(
                        g2d.display,
                        xSrcSurf.g2d.drawable, g2d.drawable,
                        g2d.imageGC,
                        srcX, srcY,
                        width, height,
                        dstX, dstY
                );
                x11.XFlush(g2d.display);
                g2d.resetXClip(g2d.imageGC);

                g2d.setImageGCFunction(X11Defs.GXcopy);
            } else if (srcSurf.getSurfaceType() == BufferedImage.TYPE_CUSTOM) {
                // source is custom image, slow blit
View Full Code Here

                // Get translated clip
                makeClip(dstX, dstY, width, height, clip);

                g2d.setXClip(clip, g2d.imageGC);
                X11 x11 = X11.getInstance();
                x11.XCopyArea(
                        g2d.display,
                        xSrcSurf.g2d.drawable, g2d.drawable,
                        g2d.imageGC,
                        srcX, srcY,
                        width, height,
                        dstX, dstY
                );
                x11.XFlush(g2d.display);
                g2d.resetXClip(g2d.imageGC);

                g2d.setImageGCFunction(X11Defs.GXcopy);
            } else if (srcSurf.getSurfaceType() == BufferedImage.TYPE_CUSTOM) {
                // source is custom image, slow blit
View Full Code Here

TOP

Related Classes of org.apache.harmony.awt.nativebridge.linux.X11$XVisualInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.