本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}