diff options
author | Michael Bien <[email protected]> | 2009-11-11 18:58:31 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-11-11 18:58:31 +0100 |
commit | 1360f3839ec52a8da5420946781327cb859597c4 (patch) | |
tree | 375d0fb91a520c1cd15625242d928ab5bc226313 /src/nativewindow | |
parent | 1c73b8b7d9bdc6e060b1a81c3b92c998df1359e2 (diff) |
refactoring: new struct accessor method naming conventions.
Diffstat (limited to 'src/nativewindow')
5 files changed, 11 insertions, 11 deletions
diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/macosx/MacOSXJAWTWindow.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/macosx/MacOSXJAWTWindow.java index 2d85f1d4d..4ecc6aa4d 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/macosx/MacOSXJAWTWindow.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/macosx/MacOSXJAWTWindow.java @@ -111,7 +111,7 @@ public class MacOSXJAWTWindow extends JAWTWindow { super.unlockSurface(); return NativeWindow.LOCK_SURFACE_NOT_READY; } - drawable = macosxdsi.cocoaViewRef(); + drawable = macosxdsi.getCocoaViewRef(); if (drawable == 0) { // Widget not yet realized diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/windows/WindowsJAWTWindow.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/windows/WindowsJAWTWindow.java index 591213038..2b8cab9c4 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/windows/WindowsJAWTWindow.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/windows/WindowsJAWTWindow.java @@ -105,7 +105,7 @@ public class WindowsJAWTWindow extends JAWTWindow { super.unlockSurface(); return LOCK_SURFACE_NOT_READY; } - drawable = win32dsi.hdc(); + drawable = win32dsi.getHdc(); if (drawable == 0) { // Widget not yet realized ds.FreeDrawingSurfaceInfo(dsi); diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11JAWTWindow.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11JAWTWindow.java index 75133488f..af2b7a71c 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11JAWTWindow.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11JAWTWindow.java @@ -99,7 +99,7 @@ public class X11JAWTWindow extends JAWTWindow { super.unlockSurface(); return LOCK_SURFACE_NOT_READY; } - drawable = x11dsi.drawable(); + drawable = x11dsi.getDrawable(); if (drawable == 0) { // Widget not yet realized ds.FreeDrawingSurfaceInfo(dsi); diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/x11/X11GraphicsConfigurationFactory.java b/src/nativewindow/classes/com/sun/nativewindow/impl/x11/X11GraphicsConfigurationFactory.java index d6abf291f..4709e3ef0 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/x11/X11GraphicsConfigurationFactory.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/x11/X11GraphicsConfigurationFactory.java @@ -53,8 +53,8 @@ public class X11GraphicsConfigurationFactory extends GraphicsConfigurationFactor public static XVisualInfo getXVisualInfo(AbstractGraphicsScreen screen, long visualID) { XVisualInfo xvi_temp = XVisualInfo.create(); - xvi_temp.visualid(visualID); - xvi_temp.screen(screen.getIndex()); + xvi_temp.setVisualid(visualID); + xvi_temp.setScreen(screen.getIndex()); int num[] = { -1 }; long display = screen.getDevice().getHandle(); @@ -86,8 +86,8 @@ public class X11GraphicsConfigurationFactory extends GraphicsConfigurationFactor int[] num = { -1 }; XVisualInfo vinfo_template = XVisualInfo.create(); - vinfo_template.screen(screen.getIndex()); - vinfo_template.c_class(c_class); + vinfo_template.setScreen(screen.getIndex()); + vinfo_template.setC_class(c_class); long display = screen.getDevice().getHandle(); try { @@ -97,14 +97,14 @@ public class X11GraphicsConfigurationFactory extends GraphicsConfigurationFactor int rdepth = capabilities.getRedBits() + capabilities.getGreenBits() + capabilities.getBlueBits() + capabilities.getAlphaBits(); for (int i = 0; vinfos!=null && i < num[0]; i++) { if ( best == null || - best.depth() < vinfos[i].depth() ) + best.getDepth() < vinfos[i].getDepth() ) { best = vinfos[i]; - if(rdepth <= best.depth()) + if(rdepth <= best.getDepth()) break; } } - if ( null!=best && ( rdepth <= best.depth() || 24 == best.depth()) ) { + if ( null!=best && ( rdepth <= best.getDepth() || 24 == best.getDepth()) ) { ret = XVisualInfo.create(best); } best = null; diff --git a/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsConfiguration.java b/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsConfiguration.java index fdecac8fc..49d5f2d83 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsConfiguration.java +++ b/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsConfiguration.java @@ -64,7 +64,7 @@ public class X11GraphicsConfiguration extends DefaultGraphicsConfiguration imple } public long getVisualID() { - return (null!=info)?info.visualid():0; + return (null!=info)?info.getVisualid():0; } public String toString() { |