Package org.apache.harmony.awt.nativebridge

Examples of org.apache.harmony.awt.nativebridge.NativeBridge


    private void getSM(String propName, int idx, Map<String, Object> props) {
        setIntProperty(propName, win32.GetSystemMetrics(idx), props);
    }
   
    private int getIntSPI(int idx) {
        NativeBridge bridge = NativeBridge.getInstance();
        Int32Pointer ptr = bridge.createInt32Pointer(1, false);
        win32.SystemParametersInfoW(idx, 0, ptr, 0);
        return ptr.get(0);
    }
View Full Code Here


    private void getSM(String propName, int idx, Map<String, Object> props) {
        setIntProperty(propName, win32.GetSystemMetrics(idx), props);
    }
   
    private int getIntSPI(int idx) {
        NativeBridge bridge = NativeBridge.getInstance();
        Int32Pointer ptr = bridge.createInt32Pointer(1, false);
        win32.SystemParametersInfoW(idx, 0, ptr, 0);
        return ptr.get(0);
    }
View Full Code Here

    void getXPTheme(Map<String, Object> props) {
        String style = "win.xpstyle."; //$NON-NLS-1$
        String nm = "Name"; //$NON-NLS-1$
        setBoolProperty(style + "themeActive", win32.IsThemeActive(), props);//$NON-NLS-1$
        int bufSize = 256;
        NativeBridge nb = NativeBridge.getInstance();
        Int16Pointer ptrs[] = new Int16Pointer[3];
        for (int i = 0; i < ptrs.length; i++) {
            ptrs[i] = nb.createInt16Pointer(bufSize, false);
        }
        String[] names = new String[] {"dll", "color", "size"};//$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
        int res = win32.GetCurrentThemeName(ptrs[0], bufSize, ptrs[1], bufSize,
                                            ptrs[2], bufSize);
        boolean ok = (res == WindowsDefs.S_OK);
View Full Code Here

    private void getSM(String propName, int idx, Map<String, Object> props) {
        setIntProperty(propName, win32.GetSystemMetrics(idx), props);
    }
   
    private int getIntSPI(int idx) {
        NativeBridge bridge = NativeBridge.getInstance();
        Int32Pointer ptr = bridge.createInt32Pointer(1, false);
        win32.SystemParametersInfoW(idx, 0, ptr, 0);
        return ptr.get(0);
    }
View Full Code Here

    void getXPTheme(Map<String, Object> props) {
        String style = "win.xpstyle."; //$NON-NLS-1$
        String nm = "Name"; //$NON-NLS-1$
        setBoolProperty(style + "themeActive", win32.IsThemeActive(), props);//$NON-NLS-1$
        int bufSize = 256;
        NativeBridge nb = NativeBridge.getInstance();
        Int16Pointer ptrs[] = new Int16Pointer[3];
        for (int i = 0; i < ptrs.length; i++) {
            ptrs[i] = nb.createInt16Pointer(bufSize, false);
        }
        String[] names = new String[] {"dll", "color", "size"};//$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
        int res = win32.GetCurrentThemeName(ptrs[0], bufSize, ptrs[1], bufSize,
                                            ptrs[2], bufSize);
        boolean ok = (res == WindowsDefs.S_OK);
View Full Code Here

TOP

Related Classes of org.apache.harmony.awt.nativebridge.NativeBridge

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.