当前位置: 首页>>代码示例>>Java>>正文


Java WinDef.BOOLByReference方法代码示例

本文整理汇总了Java中com.sun.jna.platform.win32.WinDef.BOOLByReference方法的典型用法代码示例。如果您正苦于以下问题:Java WinDef.BOOLByReference方法的具体用法?Java WinDef.BOOLByReference怎么用?Java WinDef.BOOLByReference使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.jna.platform.win32.WinDef的用法示例。


在下文中一共展示了WinDef.BOOLByReference方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: offScreen

import com.sun.jna.platform.win32.WinDef; //导入方法依赖的package包/类
/**
 * Returns whether the element is off screen.
 * @return True if off screen.
 * @throws AutomationException Call to Automation API failed.
 */
public WinDef.BOOL offScreen() throws AutomationException {
    WinDef.BOOLByReference bbr = new WinDef.BOOLByReference();

    final int res = this.element.getCurrentIsOffscreen(bbr);
    if (res != 0) {
        throw new AutomationException(res);
    }

    return bbr.getValue();
}
 
开发者ID:mmarquee,项目名称:ui-automation,代码行数:16,代码来源:AutomationElement.java

示例2: isContentElement

import com.sun.jna.platform.win32.WinDef; //导入方法依赖的package包/类
/**
 * Returns whether the element is a content element.
 * @return True if content element.
 * @throws AutomationException Call to Automation API failed.
 */
public WinDef.BOOL isContentElement() throws AutomationException {
    WinDef.BOOLByReference bbr = new WinDef.BOOLByReference();

    final int res = this.element.getCurrentIsContentElement(bbr);
    if (res != 0) {
        throw new AutomationException(res);
    }

    return bbr.getValue();
}
 
开发者ID:mmarquee,项目名称:ui-automation,代码行数:16,代码来源:AutomationElement.java

示例3: isControlElement

import com.sun.jna.platform.win32.WinDef; //导入方法依赖的package包/类
/**
 * Returns whether the element is a control element.
 * @return True if control element.
 * @throws AutomationException Call to Automation API failed.
 */
public WinDef.BOOL isControlElement() throws AutomationException {
    WinDef.BOOLByReference bbr = new WinDef.BOOLByReference();

    final int res = this.element.getCurrentIsControlElement(bbr);
    if (res != 0) {
        throw new AutomationException(res);
    }

    return bbr.getValue();
}
 
开发者ID:mmarquee,项目名称:ui-automation,代码行数:16,代码来源:AutomationElement.java

示例4: isEnabled

import com.sun.jna.platform.win32.WinDef; //导入方法依赖的package包/类
/**
 * Returns whether the element is enabled.
 * @return True if enabled.
 * @throws AutomationException Call to Automation API failed.
 */
public WinDef.BOOL isEnabled() throws AutomationException {
    WinDef.BOOLByReference bbr = new WinDef.BOOLByReference();

    final int res = this.element.getCurrentIsEnabled(bbr);
    if (res  != 0) {
        throw new AutomationException(res);
    }

    return bbr.getValue();
}
 
开发者ID:mmarquee,项目名称:ui-automation,代码行数:16,代码来源:AutomationElement.java

示例5: getClickablePoint

import com.sun.jna.platform.win32.WinDef; //导入方法依赖的package包/类
/**
 * Gets the clickable point for the control.
 *
 * @return The clickable point.
 * @throws AutomationException Call to Automation API failed.
 */
public WinDef.POINT getClickablePoint() throws AutomationException {
    WinDef.POINT.ByReference pbr = new WinDef.POINT.ByReference();

    WinDef.BOOLByReference br = new WinDef.BOOLByReference();

    final int res = this.element.getClickablePoint(pbr, br);
    if (res != 0) {
        throw new AutomationException(res);
    }

    return new WinDef.POINT(pbr.x, pbr.y);
}
 
开发者ID:mmarquee,项目名称:ui-automation,代码行数:19,代码来源:AutomationElement.java


注:本文中的com.sun.jna.platform.win32.WinDef.BOOLByReference方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。