本文整理了Java中org.eclipse.swt.accessibility.Accessible.getControlHandle()
方法的一些代码示例,展示了Accessible.getControlHandle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Accessible.getControlHandle()
方法的具体详情如下:
包路径:org.eclipse.swt.accessibility.Accessible
类名称:Accessible
方法名:getControlHandle
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
static void createAccessible (Accessible accessible) {
int /*long*/ controlHandle = accessible.getControlHandle ();
OS.gtk_widget_get_accessible(controlHandle);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
static void createAccessible (Accessible accessible) {
long /*int*/ controlHandle = accessible.getControlHandle ();
OS.gtk_widget_get_accessible(controlHandle);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
static void createAccessible (Accessible accessible) {
int /*long*/ controlHandle = accessible.getControlHandle ();
OS.gtk_widget_get_accessible(controlHandle);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
static void unregisterAccessible (Accessible accessible) {
int /*long*/ widget = accessible.getControlHandle ();
Accessibles.remove (new LONG (widget));
if (AccessibleObject.DEBUG) AccessibleObject.print("-->Deregister=" + accessible.control + " " + widget); //$NON-NLS-1$
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
static void unregisterAccessible (Accessible accessible) {
int /*long*/ widget = accessible.getControlHandle ();
Accessibles.remove (new LONG (widget));
if (AccessibleObject.DEBUG) AccessibleObject.print("-->Deregister=" + accessible.control + " " + widget); //$NON-NLS-1$
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
static void unregisterAccessible (Accessible accessible) {
long /*int*/ widget = accessible.getControlHandle ();
Accessibles.remove (new LONG (widget));
if (AccessibleObject.DEBUG) AccessibleObject.print("-->Deregister=" + accessible.control + " " + widget); //$NON-NLS-1$
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
static void registerAccessible (Accessible accessible) {
int /*long*/ widget = accessible.getControlHandle ();
int /*long*/ widgetType = OS.G_OBJECT_TYPE (widget);
int /*long*/ registry = ATK.atk_get_default_registry ();
int /*long*/ factory = ATK.atk_registry_get_factory (registry, widgetType);
/* If NO_OP factory is registered then OS accessibility is not active */
if (ATK.ATK_IS_NO_OP_OBJECT_FACTORY(factory)) return;
String name = FACTORY_TYPENAME + getTypeName(widgetType);
byte[] factoryName = Converter.wcsToMbcs(null, name, true);
if (OS.g_type_from_name (factoryName) == 0) {
if (AccessibleObject.DEBUG) AccessibleObject.print("-->New Factory=" + name); //$NON-NLS-1$
/* register the factory */
GTypeInfo typeInfo = new GTypeInfo ();
typeInfo.base_init = GTypeInfo_base_init_factory.getAddress ();
typeInfo.class_size = (short)ATK.AtkObjectFactoryClass_sizeof ();
typeInfo.instance_size = (short)ATK.AtkObjectFactory_sizeof ();
int /*long*/ info = OS.g_malloc (GTypeInfo.sizeof);
OS.memmove (info, typeInfo, GTypeInfo.sizeof);
int /*long*/ swtFactoryType = OS.g_type_register_static (ATK.ATK_TYPE_OBJECT_FACTORY(), factoryName, info, 0);
int /*long*/ parentType = ATK.atk_object_factory_get_accessible_type(factory);
ATK.atk_registry_set_factory_type (registry, widgetType, swtFactoryType);
Factories.put (new LONG (widgetType), new LONG (parentType));
}
if (AccessibleObject.DEBUG) AccessibleObject.print("-->Register=" + accessible.control + " " + widget); //$NON-NLS-1$
Accessibles.put (new LONG (widget), accessible);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
static void registerAccessible (Accessible accessible) {
long /*int*/ widget = accessible.getControlHandle ();
long /*int*/ widgetType = OS.G_OBJECT_TYPE (widget);
long /*int*/ registry = ATK.atk_get_default_registry ();
long /*int*/ factory = ATK.atk_registry_get_factory (registry, widgetType);
/* If NO_OP factory is registered then OS accessibility is not active */
if (ATK.ATK_IS_NO_OP_OBJECT_FACTORY(factory)) return;
String name = FACTORY_TYPENAME + getTypeName(widgetType);
byte[] factoryName = Converter.wcsToMbcs(null, name, true);
if (OS.g_type_from_name (factoryName) == 0) {
if (AccessibleObject.DEBUG) AccessibleObject.print("-->New Factory=" + name); //$NON-NLS-1$
/* register the factory */
GTypeInfo typeInfo = new GTypeInfo ();
typeInfo.base_init = GTypeInfo_base_init_factory.getAddress ();
typeInfo.class_size = (short)ATK.AtkObjectFactoryClass_sizeof ();
typeInfo.instance_size = (short)ATK.AtkObjectFactory_sizeof ();
long /*int*/ info = OS.g_malloc (GTypeInfo.sizeof);
OS.memmove (info, typeInfo, GTypeInfo.sizeof);
long /*int*/ swtFactoryType = OS.g_type_register_static (ATK.ATK_TYPE_OBJECT_FACTORY(), factoryName, info, 0);
long /*int*/ parentType = ATK.atk_object_factory_get_accessible_type(factory);
ATK.atk_registry_set_factory_type (registry, widgetType, swtFactoryType);
Factories.put (new LONG (widgetType), new LONG (parentType));
}
if (AccessibleObject.DEBUG) AccessibleObject.print("-->Register=" + accessible.control + " " + widget); //$NON-NLS-1$
Accessibles.put (new LONG (widget), accessible);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
static void registerAccessible (Accessible accessible) {
int /*long*/ widget = accessible.getControlHandle ();
int /*long*/ widgetType = OS.G_OBJECT_TYPE (widget);
int /*long*/ registry = ATK.atk_get_default_registry ();
int /*long*/ factory = ATK.atk_registry_get_factory (registry, widgetType);
/* If NO_OP factory is registered then OS accessibility is not active */
if (ATK.ATK_IS_NO_OP_OBJECT_FACTORY(factory)) return;
String name = FACTORY_TYPENAME + getTypeName(widgetType);
byte[] factoryName = Converter.wcsToMbcs(null, name, true);
if (OS.g_type_from_name (factoryName) == 0) {
if (AccessibleObject.DEBUG) AccessibleObject.print("-->New Factory=" + name); //$NON-NLS-1$
/* register the factory */
GTypeInfo typeInfo = new GTypeInfo ();
typeInfo.base_init = GTypeInfo_base_init_factory.getAddress ();
typeInfo.class_size = (short)ATK.AtkObjectFactoryClass_sizeof ();
typeInfo.instance_size = (short)ATK.AtkObjectFactory_sizeof ();
int /*long*/ info = OS.g_malloc (GTypeInfo.sizeof);
OS.memmove (info, typeInfo, GTypeInfo.sizeof);
int /*long*/ swtFactoryType = OS.g_type_register_static (ATK.ATK_TYPE_OBJECT_FACTORY(), factoryName, info, 0);
int /*long*/ parentType = ATK.atk_object_factory_get_accessible_type(factory);
ATK.atk_registry_set_factory_type (registry, widgetType, swtFactoryType);
Factories.put (new LONG (widgetType), new LONG (parentType));
}
if (AccessibleObject.DEBUG) AccessibleObject.print("-->Register=" + accessible.control + " " + widget); //$NON-NLS-1$
Accessibles.put (new LONG (widget), accessible);
}
内容来源于网络,如有侵权,请联系作者删除!